Remove Lync 2010 system from AD (with orphaned servers)

1., Remove the following Groups from Active Directory :

CSAdministrator
CSArchivingAdministrator
CSHelpDesk
CSLocationAdministrator
CSResponseGroupAdministrator
CSServerAdministrator
CSUserAdministrator
CSViewOnlyAdministrator
CSVoiceAdministrator
RTCComponentUniversalServices
RTCHSUniversalServices
RTCProxyUniversalServices
RTCSBAUniversalServices
RTCUniversalConfigReplicator
RTCUniversalGlobalReadOnlyGroup
RTCUniversalGlobalWriteGroup
RTCUniversalReadOnlyAdmins
RTCUniversalSBATechnicians
RTCUniversalServerAdmins
RTCUniversalServerReadOnlyGroup
RTCUniversalUserAdmins
RTCUniversalUserReadOnlyGroup

2., Run ADSIEDIT and connect to the Configuration naming context.  Browse down to Configuration -> Services -> RTC Service and then delete the entire RTC Service container.

3., Also delete the Computer object(s) for any Lync Server you had previously installed.

Exchange max e-mail size settings

1. Organization Configuration:

Organization Configuration | Hub Transport | Global Settings tab | Transport Settings

2. Server Configuration:

Server Configuration | Hub Transport | select a HT server | Receive Connectors -> select a connector | Properties

3. Send Connector Configuration

Organization Configuration | Hub Transport | Send Connectors -> select connector | Properties

4. Recipients Configuration:

Recipients Configuration | Mailbox | select mailbox | properties | Mail Flow Settings | Message Size Restrictions

5. Recipients Group Configuration:

Recipients Configuration |Distribution Group | select Group | properties | Mail Flow Settings | Message Size Restrictions

6. Global Setting in ADSIEdit:

Configuration container | Services | Microsoft Exchange |YourOrgName| Global Settings | Message Delivery | Properties

7. Transport Rules:

Organization Configuration | Hub Transport | Transport Rules

 

List/remove/add Exchange Virtual Directory from Powershell

(more info coming soon, sorry, XXXXXXX is a web site name)

Open Exchange Management Shell with elevated permission

Get-AutodiscoverVirtualDirectory
Get-OABVirtualDirectory
Get-OWAVirtualDirectory
Get-WebServicesVirtualDirectory
Get-ActiveSyncVirtualDirectory
Get-UMVirtualDirectory

Remove-OWAVirtualDirectory -Identity "Owa (XXXXXXX)" -Confirm:$false
Remove-OWAVirtualDirectory -Identity "Exadmin (XXXXXXX)" -Confirm:$false
Remove-OWAVirtualDirectory -Identity "Exchange (XXXXXXX)" -Confirm:$false
Remove-OWAVirtualDirectory -Identity "Exchweb (XXXXXXX)" -Confirm:$false
Remove-OWAVirtualDirectory -Identity "Public (XXXXXXX)" -Confirm:$false
Remove-WebServicesVirtualDirectory -Identity "EWS (XXXXXXX)" -Confirm:$false
Remove-ActiveSyncVirtualDirectory -Identity "Microsoft-Server-ActiveSync (XXXXXXX)" -Confirm:$false
Remove-OabVirtualDirectory -Identity "OAB (XXXXXXX)" -Force:$true -Confirm:$false
Remove-UMVirtualDirectory -Identity "UnifiedMessaging (XXXXXXX)" -Confirm:$false
Remove-AutodiscoverVirtualDirectory -Identity "Autodiscover (XXXXXXX)" -Confirm:$false

New-OWAVirtualDirectory -WebsiteName "XXXXXXX" -OwaVersion "Exchange2007" ExternalAuthenticationMethods Fba
Set-OWAVirtualDirectory -InternalUrl "https://INTERNAL_FQDN_OF_EXCHANGE/owa/" ClientAuthCleanupLevel "Low" -LogonFormat "UserName" DefaultDomain “NETBIOSDOMAINNAME” Identity "Owa (XXXXXXX)"
New-OWAVirtualDirectory -WebsiteName "XXXXXXX" -OwaVersion "Exchange2003or2000" VirtualDirectoryType "Exadmin" ExternalAuthenticationMethods Fba
New-OWAVirtualDirectory -WebsiteName "XXXXXXX" -OwaVersion "Exchange2003or2000" VirtualDirectoryType "Mailboxes" ExternalAuthenticationMethods Fba
New-OWAVirtualDirectory -WebsiteName "XXXXXXX" -OwaVersion "Exchange2003or2000" VirtualDirectoryType "Exchweb" ExternalAuthenticationMethods Fba
New-OWAVirtualDirectory -WebsiteName "XXXXXXX" -OwaVersion "Exchange2003or2000" VirtualDirectoryType "PublicFolders" ExternalAuthenticationMethods Fba
New-WebServicesVirtualDirectory -WebsiteName "XXXXXXX" InternalUrl "https://INTERNAL_FQDN_OF_EXCHANGE/EWS/Exchange.asmx" -basicauthentication 1 windowsauthentication 1
New-ActiveSyncVirtualDirectory -WebsiteName "XXXXXXX" InternalUrl "https://INTERNAL_FQDN_OF_EXCHANGE/Microsoft-Server-ActiveSync" ExternalAuthenticationMethods Basic -InternalAuthenticationMethods Basic
New-OabVirtualDirectory -WebsiteName "XXXXXXX" -InternalUrl "https://INTERNAL_FQDN_OF_EXCHANGE/OAB"
Set-OabVirtualDirectory -PollInterval "30" -Identity "oab (XXXXXXX)"
New-UMVirtualDirectory -WebsiteName "XXXXXXX" InternalUrl "https://INTERNAL_FQDN_OF_EXCHANGE/UnifiedMessaging/Service.asmx"
New-AutodiscoverVirtualDirectory -WebsiteName "XXXXXXX" InternalUrl "https://INTERNAL_FQDN_OF_EXCHANGE/Autodiscover/Autodiscover.xml" BasicAuthentication 1 -WindowsAuthentication 1
Set-ClientAccessServer -Identity “Servername” AutoDiscoverServiceInternalUri "https://INTERNAL_FQDN_OF_EXCHANGE/Autodiscover /Autodiscover.xml"
Set-OfflineAddressBook "Default Offline Address Book" VirtualDirectories "Servername\OAB (XXXXXXX)" -Versions Version2,Version3,Version4)"

GPO and Firefox (install from MSI)

FrontMotion Firefox Community Edition is a customized Firefox with the ability to lockdown settings through Active Directory using Administrative Templates:
http://www.frontmotion.com/Firefox/fmfirefox.htm

MSI installers for Mozilla Firefox:
http://www.frontmotion.com/Firefox/index.htm