Friday, March 23, 2018

I had a need to delete an outlook profile for hundreds of users upon login, so that they could re-run outlook wizard and connect to their new cloud exchange 2010 server.

Here's how I did it.

It assumes the user has a Home drive mapped as H:

IF EXIST H:\migrated.txt goto end
reg delete "HKCU\Software\Microsoft\WIndows NT\CurrentVersion\Windows Messaging Subsystem" /f
copy \\dc1\SYSVOL\malik.local\scripts\migrated.txt H:\




1. On the Exchange Server > Start > All Programs > Microsoft Exchange Server {version} > Exchange Management Console. Issue the following four commands;

Exchange 2010 and SBS 2011 (change the values in red)

Set-ClientAccessServer -Identity EXCHANGE-MAIL -AutodiscoverServiceInternalUri

Set-WebServicesVirtualDirectory -Identity "EXCHANGE-MAIL\EWS (Default Web Site)" –InternalUrl

Set-OABVirtualDirectory -Identity “EXCHANGE-MAIL\OAB (Default Web Site)” -InternalURL

Set-ActiveSyncVirtualDirectory -Identity “EXCHANGE-MAIL\Microsoft-Server-ActiveSync (Default Web Site)” -InternalURL


2. Then open the IIS Manager Expand Application Pools > MSExchangeAutodiscoverAppPool > Right Click > Recycle.

Things to remember when installing SRM as a service provider.

Need the CUSTOM_SETUP option switch when running the executable.

"C:\Documents and Settings\Administrator\My Documents\Software\SRM\VMware-srm-4.0.0-175235.exe" /V"CUSTOM_SETUP=1"

Then install the SRM server first, SRA's next, and restart the SRM service to make sure it registers the SRA's installed previously.

Install the plugin for SRM in Vi Client and configure all mappings, placeholders etc.


Diskshadow is a little utility to test the validity of VSS.

Here's some command

set verbose on
set option differential
set context volatile
add volume c: (if the system is on more than one disk, specify them separated by a space)

Firtsly create a new recieve connector, then run this from Exchange Shell.


Get-ReceiveConnector "Relay" Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"

This is assuming the connector created is called 'Relay'