Code Snippets

dc01.techblog.local.inf

dc01.techblog.local.inf

;—————– request.inf —————– [Version] Signature= $Windows NT$ [NewRequest] Subject = "CN=dc01.techblog.local" KeySpec = 1 KeyLength = 4096 Hashalgorithm = sha256 Exportable = TRUE FriendlyName = dc01.techblog.local MachineKeySet = TRUE SMIME = False PrivateKeyArchive = FALSE UserProtected = FALSE UseExistingKeySet = FALSE ProviderName = "Microsoft RSA SChannel Cryptographic Provider" ProviderType = 12 RequestType = PKCS10 KeyUsage...

Move-ADDirectoryServerOperationMasterRole

Move-ADDirectoryServerOperationMasterRole

PS C:\Users\administrator> Move-ADDirectoryServerOperationMasterRole -Identity NBDC01 -OperationMasterRole SchemaMaster Move Operation Master Role Do you want to move role ‚SchemaMaster‘ to server ‚NBDC01.test.local‘ ? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y PS C:\Users\edert> netdom query fsmo Schema master NBDC01.test.local Domain naming master FRDC02.test.local PDC...

netdom query fsmo

netdom query fsmo

C:\Users\administrator>netdom query fsmo Schema master FRDC02.test.local Domain naming master FRDC02.test.local PDC FRDC02.test.local RID pool manager FRDC02.test.local Infrastructure master FRDC02.test.local The command completed successfully.

Exchange Installation – Enterprise Admins

Exchange Installation – Enterprise Admins

Error: The Active Directory Schema isn’t up-to-date, and this user account isn’t a member of the ‘Schema Admins’ and/or ‘Enterprise Admins’ groups. Error: Global updates need to be made to Active Directory, and this user account isn’t a member of the ‘Enterprise Admins’ group. Error: The local domain needs to be updated. You must be...

AutodiscoverExclude.reg

AutodiscoverExclude.reg

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Outlook\AutoDiscover] "ExcludeHttpsAutoDiscoverDomain"=dword:00000001 "ExcludeHttpsRootDomain"=dword:00000001 "ExcludeSrvRecord"=dword:00000001 "ExcludeExplicitO365Endpoint "=dword:00000001

ExcludeExplicitO365Endpoint.reg

ExcludeExplicitO365Endpoint.reg

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Outlook\AutoDiscover] "ExcludeExplicitO365Endpoint"=dword:00000001

Exchange SCP Autodiscover

Exchange SCP Autodiscover

[PS] C:Windowssystem32>Get-ClientAccessService | select Name, *autodiscover* Name : EX2016 AutoDiscoverServiceCN : ex2016 AutoDiscoverServiceClassName : ms-Exchange-AutoDiscover-Service AutoDiscoverServiceInternalUri : https://exchange.domain.com/Autodiscover/Autodiscover.xml AutoDiscoverServiceGuid : 77378f46-2c46-4aa9-a6a6-3e7a41b19596 AutoDiscoverSiteScope : {Vienna}

Set-RemoteMailbox ExchangeGUID

Set-RemoteMailbox ExchangeGUID

Set-RemoteMailbox user.cloud -ExchangeGuid 594fd053-1f81-4ad0-bc89-9f144c5a5183 -ArchiveGuid de702a74-29dd-46d8-a712-0d033e56a69c

Enable-RemoteMailbox

Enable-RemoteMailbox

Enable-RemoteMailbox user.cloud -RemoteRoutingAddress user.cloud@deinedomain.mail.onmicrosoft.com

Get-Mailbox ExchangeGUID

Get-Mailbox ExchangeGUID

PS C:\Users\kschweiger> Get-Mailbox user.cloud | select Name, ExchangeGUID, ArchiveGUID Name ExchangeGuid ArchiveGuid —- ———— ———– user.cloud 594fd053-1f81-4ad0-bc89-9f144c5a5183 de702a74-29dd-46d8-a712-0d033e56a69c