Archive for October, 2010


Back Again…

Ok, i have be absent for a while i know… but i did start a new job Smile

and have been busy building labs and training environments and pulling content together and learning the in’s and out’s of my new job…

i will be actively blogging again little bits and pieces to start!

Advertisements

here is a powershell script to configure the internal / external and outlook anywhere settings in one swoop Smile

 

copy and paste the following code into a txt file and call it something.ps1

 

#This script will set the values need for proper operation within exchange 2010

 

write-host "Script Part 1 Set Internal URLS" – Foregroundcolor Yellow
$urlpath = Read-Host "Type internal CAS FQDN starting with http:// or https://" -Foregroundcolor Yellow
Set-AutodiscoverVirtualDirectory -Identity * –internalurl “$urlpath/autodiscover/autodiscover.xml” 
Set-ClientAccessServer –Identity * –AutodiscoverServiceInternalUri “$urlpath/autodiscover/autodiscover.xml” 
Set-webservicesvirtualdirectory –Identity * –internalurl “$urlpath/ews/exchange.asmx” 
Set-oabvirtualdirectory –Identity * –internalurl “$urlpath/oab” 
Set-owavirtualdirectory –Identity * –internalurl “$urlpath/owa” 
Set-ecpvirtualdirectory –Identity * –internalurl “$urlpath/ecp” 
Set-ActiveSyncVirtualDirectory -Identity * -InternalUrl "$urlpath/Microsoft-Server-ActiveSync"

#get commands to  to doublecheck the config 

get-AutodiscoverVirtualDirectory | ft identity,internalurl 
get-ClientAccessServer | ft identity,AutodiscoverServiceInternalUri 
get-webservicesvirtualdirectory | ft identity,internalurl 
get-oabvirtualdirectory | ft identity,internalurl 
get-owavirtualdirectory | ft identity,internalurl 
get-ecpvirtualdirectory | ft identity,internalurl 
get-ActiveSyncVirtualDirectory | ft identity,internalurl

 

write-host "Script Part 2 Set External URLS" – Foregroundcolor Yellow
$urlpath = Read-Host "Type External FQDN starting with http:// or https://" -Foregroundcolor Yellow
Set-AutodiscoverVirtualDirectory -Identity * –externalurl “$urlpath/autodiscover/autodiscover.xml” 
Set-webservicesvirtualdirectory –Identity * –externalurl “$urlpath/ews/exchange.asmx” 
Set-oabvirtualdirectory –Identity * –externalurl “$urlpath/oab” 
Set-owavirtualdirectory –Identity * –externalurl “$urlpath/owa” 
Set-ecpvirtualdirectory –Identity * –externalurl “$urlpath/ecp” 
Set-ActiveSyncVirtualDirectory -Identity * -externalurl "$urlpath/Microsoft-Server-ActiveSync"

#get commands to  to doublecheck the config 

get-AutodiscoverVirtualDirectory | ft identity,externalurl 
get-ClientAccessServer | ft identity,AutodiscoverServiceInternalUri 
get-webservicesvirtualdirectory | ft identity,externalurl 
get-oabvirtualdirectory | ft identity,externalurl 
get-owavirtualdirectory | ft identity,externalurl 
get-ecpvirtualdirectory | ft identity,externalurl 
get-ActiveSyncVirtualDirectory | ft identity,externalurl

write-host "Script Part 3 Enable Outlook Anywhere"
$outlookanywherepath = Read-Host "Type in FQDN for outlook anywhere (i.e. mail.contoso.com)"
$casserver = Read-Host "Type in the NETBIOS name of the Internal Cas server you wish to enable it on"
Enable-OutlookAnywhere -Server $casserver -ExternalHostname $outlookanywherepath -ExternalAuthenticationMethod "Basic" -SSLOffloading:$False

Update….

so i finished with CDSoft Limited last week and have now moved to Microsoft 🙂
to me a dream job and dying to get started…. as for this blog i will keep on updating it regularly with things i come across….