Monday, February 26, 2018

Re-join Domain Without Restarting

“The trust relationship between the workstation and the primary domain failed”.

to fix this without restart


use this powershell command :

CD C:\Windows\System32\WinddowsPowershell\v1.0

Test-ComputerSecureChannel –credential Yourdoamin\Administrator –Repair

Enter admin password

to test relation ship use :

Test-ComputerSecureChannel 

If True - it works !!!


Friday, February 16, 2018

You are unable to choose the OU in EAC when creating a new Mailbox, Groups or Contacts

Exchange Control Panel (ECP) can display no more than 500 OUs. When there are more than 500 OUs, a new window is generated, and this window is either blank or contains a "There are more items to show in this view" message.
  1. On the Exchange Server 2013 (2016 ) mailbox server, go to the following folder:
     
    C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp
  2. Add the following lines in the web.config file just above </appsettings>:
    
    <add key="GetListDefaultResultSize" value="5000" /> 
  3. Restart MSExchangeECPAppPool.

Monday, February 12, 2018

Enabling Disk Performance Counters in Windows Server 2012 R2 Task Manager

  1. Ensure Task Manager is closed.
  2. Launch the Command Prompt using the "Run as Administrator" option. 
  3. Enter the following at the Command Prompt:  diskperf -Y

Friday, February 9, 2018

Get proxy settings using PowerShell

Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' `| Select-Object *Proxy*

TMG Allow SSL request on an additional port

“12204 The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests.”

To add non SSL port:

Create vbs scrript

For example 8455 port, change this on your port

Dim root 
Dim tpRanges 
Dim newRange 
Set root = CreateObject("FPC.Root")
Set tpRanges = root.GetContainingArray.ArrayPolicy.WebProxy.TunnelPortRanges
set newRange = tpRanges.AddRange("SSL 8455", 8455, 8455)

tpRanges.Save

run this script from cmd  running as Administrator using cscript command.