search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Exchange Server, Windows Powershell | 7 Comments | 13,086 views | 09/11/2009 02:02

You need to create an Autodiscover directory in IIS and configure it. What I do with this script is creating that directory and configuring for redirection.

Attention: You don’t need Autodiscover configuration after Exchange Server 2010 SP1. Please check:
http://www.yusufozturk.info/tag/hosted-exchange

For Exchange Server 2010:

1
2
3
4
5
6
7
8
New-Item "C:\inetpub\Autodiscover_redirect" -type Directory
New-Item "C:\inetpub\Autodiscover_redirect\Autodiscover" -type Directory
New-Item "C:\inetpub\Autodiscover_redirect\Autodiscover\Autodiscover.xml"type File
Import-Module WebAdministration
Remove-WebBinding -Name “Default Web Site” -BindingInformation *:80:
New-ItemProperty IIS:\Sites\”Default Web Site” -name bindings -value @{protocol="http";bindingInformation="*:80:mail.yusufozturk.info"}
New-Item IIS:\Sites\Autodiscover -bindings (@{protocol="http";bindingInformation="*:80:"}) -PhysicalPath “C:\inetpub\Autodiscover_redirect"
Set-WebConfiguration -filter /system.webServer/httpRedirect -value (@{enabled="True"; destination="https://autodiscover.yusufozturk.info"}) -PSPath IIS:\ -location Autodiscover

You won’t get any SSL error on Outlook after changes.


Posted in Exchange Server, Windows Powershell | No Comment | 8,826 views | 09/11/2009 01:56

An easy way to enable Outlook Anywhere on Microsoft Exchange Server 2010 with Powershell:

Enable-OutlookAnywhere –ExternalHostname ‘mail.yusufozturk.info’ –SSLOffloading $false
-DefaultAuthenticationMethod ‘Basic’

You can set authentication method as Basic or NTLM.


Posted in Exchange Server, Windows Powershell | No Comment | 3,373 views | 08/11/2009 23:18

Bildiğiniz gibi ilk kurulum sonrası Exchange’i dışarıya açabilmek için Send Connector eklemeniz lazım. İşte otomatik kurulum gibi bir şey yapmak istiyor ya da en basitinden Exchange arabirimini kullanmak istemiyorsanız, Powershell deneyebilirsiniz. Microsoft Exchange Server 2010 Powershell Manager’a bağlanarak ya da Exchange Server Modülünü Powershell’e import ederek, aşağıdaki komutu çalıştırabilirsiniz.

New-SendConnector –Name ‘External’ –Usage ‘Internet’ –AddressSpaces ‘SMTP:*;1’
–DNSRoutingEnabled $true –UseExternalDNSServersEnabled $false –Fqdn ‘mail.yusufozturk.info’

FQDN’i belirlerken, external domain yazmanız gerektiğini unutmayın.


Posted in Hosting & IIS7 | No Comment | 2,781 views | 08/11/2009 23:12

IIS7.5 üzerinde açtığınız bir siteyi domain user ile çalıştırmak istiyorsanız:

1) AD üzerinde IIS için bir group yaratın.
2) AD üzerinde site için bir user yaratın.
3) IIS User’ı IIS Group’a join edin.
4) IIS grubunu ise IIS’in olduğu makinanın local IIS_IUSRS grubuna üye yapın.
5) Siteyi açacak kullanıcıyı “DOMAIN\User” şeklinde girin.

Tadaaaaa! Artık IIS’iniz Domain User ile çalışmakta.


Posted in Hosting & IIS7 | Enter your password to view comments. | 2,969 views | 08/11/2009 22:12

This content is password protected. To view it please enter your password below:


Posted in Hosting & IIS7 | No Comment | 44,225 views | 08/11/2009 10:02

If you use domain users for IIS, you may get this write access error.

The current identity (VPOOL\iusr_yusufozturkinfo) does not have write access to ‘C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files’.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The current identity (VPOOL\iusr_yusufozturkinfo) does not have write access to ‘C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files’.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The current identity (VPOOL\iusr_yusufozturkinfo) does not have write access to ‘C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files’.]
System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +11336505
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +356

[HttpException (0x80004005): The current identity (VPOOL\iusr_yusufozturkinfo) does not have write access to ‘C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files’.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11301302
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4338644

Solution: Create a new active directory user group named “IIS_IUSERS” in Users OU. Then join your iis users to this group. After that, adding that user group to local IIS_IUSRS group solves your problem.


Posted in Exchange Server, Windows Powershell | No Comment | 7,587 views | 08/11/2009 02:57

You can’t receive email from external address if you don’t add receive connector to Exchange Server 2010. I will show you how you can easily add receive connector with Powershell:

Get-ReceiveConnector "Default *" | Set-ReceiveConnector 
-PermissionGroups:AnonymousUsers,ExchangeUsers,ExchangeServers

You may change “PermissionGroups”. Please use Get-help for extra information.