Search-mailbox -identity <alias> -SearchDumpsterOnly -DeleteContent
Microsoft: http://technet.microsoft.com/en-us/library/dd298173.aspx
Search-mailbox -identity <alias> -SearchDumpsterOnly -DeleteContent
Microsoft: http://technet.microsoft.com/en-us/library/dd298173.aspx
Show current settings
Powershell: get-ExchangeServer -identity <servername> -status | fl
Powershell: get-ADServersettings | fl
you can find info in the Event log/app id = 2080
———————————————————————————
Set Static GC Server
Powershell: Set-ExchangeServer -Identity <servername> -StaticGlobalCatalogs <FQDN of DC GC > „If you want to go back, change <FQDN of DC GC > to $Null “
———————————————————————————
Show key in Registry
[PS] C:\Windows\system32>$key=get-itemProperty „HKLM:\system\CurrentControlSet\services\MSExchange ADAccess\Profiles\Default\UserGC1“ | select -Property HostName | fl HostName
[PS] C:\Windows\system32>$key
———————————————————————————
For change , restart MS Exchange services or restart server
🙂
Get-Counter -ComputerName DAGNAME -Counter „\MSExchange Replication(*)\Continuous replication – block mode Active“
1 = block mode is active
0 = is not.
Active Database will always show „0“
Get-Counter -ComputerName NameOfServer „\MSExchange RpcClientAccess\User Count“
Je nutne vytvořit klíče viz transcript. / You need to create following keys
**********************
Windows PowerShell transcript start
Start time: 20131212112352
Username : FTSAMSVNB\masv
Machine : FTSAMSVNB (Microsoft Windows NT 6.3.9600.0)
**********************
Transcript started, output file is C:\Users\masv\Documents\PowerShell_transcript.20131212112352.txt
PS C:\Users\masv> Get-ItemProperty -path „HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client“
DisabledByDefault : 0
Enabled : 1
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityPro
viders\SCHANNEL\Protocols\TLS 1.1\Client
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityPro
viders\SCHANNEL\Protocols\TLS 1.1
PSChildName : Client
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
PS C:\Users\masv> Get-ItemProperty -path „HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server„
DisabledByDefault : 0
Enabled : 1
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityPro
viders\SCHANNEL\Protocols\TLS 1.1\Server
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityPro
viders\SCHANNEL\Protocols\TLS 1.1
PSChildName : Server
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
PS C:\Users\masv> Get-ItemProperty -path „HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client„
DisabledByDefault : 0
Enabled : 1
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityPro
viders\SCHANNEL\Protocols\TLS 1.2\Client
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityPro
viders\SCHANNEL\Protocols\TLS 1.2
PSChildName : Client
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
PS C:\Users\masv> Get-ItemProperty -path „HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server„
DisabledByDefault : 0
Enabled : 1
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityPro
viders\SCHANNEL\Protocols\TLS 1.2\Server
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityPro
viders\SCHANNEL\Protocols\TLS 1.2
PSChildName : Server
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
SessionName: PS C:\Users\masv> Stop-Transcript
**********************
Windows PowerShell transcript end
End time: 20131212112422
**********************