Saturday, December 16, 2017

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:\

:end

http://www.petenetlive.com/KB/Article/0000036.htm

 

Solution

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 https://mail.publicdomain.co.uk/autodiscover/autodiscover.xml

Set-WebServicesVirtualDirectory -Identity "EXCHANGE-MAIL\EWS (Default Web Site)" –InternalUrl https://mail.publicdomain.co.uk/EWS/Exchange.asmx

Set-OABVirtualDirectory -Identity “EXCHANGE-MAIL\OAB (Default Web Site)” -InternalURL https://mail.publicdomain.co.uk/OAB

Set-ActiveSyncVirtualDirectory -Identity “EXCHANGE-MAIL\Microsoft-Server-ActiveSync (Default Web Site)” -InternalURL https://mail.publicdomain.co.uk/Microsoft-Server-Activesync

 

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

Things to remember when installing SRM as a service provider.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1014640

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

diskshadow
reset
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)
create
exit

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'