Update SharePoint STS certificate

Renew the current self-signed certificate using IIS via “Server Certificates”, right-clicking on the current certificate and running the “Create Self-Signed Certificate”. Export this new certificate by right-clicking it. Then run the following PowerShell script using PowerShell ISE with Administrator rights; .’C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\CONFIG\POWERSHELL\Registration\SharePoint.ps1′ $pfxPath = “your file here.pfx” $pfxPass = “your password […]

Script to remove AutoMapping from select or all users in Exchange

An adeptation of the script by Matthias R Jessen. # Get all mailboxes in the forest $Mailboxes = Get-User -OrganizationalUnit “Employees” | Get-Mailbox -ResultSize unlimited -IgnoreDefaultScope $ConfirmPreference = “None” # Iterate over each mailbox foreach($Mailbox in $Mailboxes) {     try     {         # Try to run the example fix against the current $Mailbox         […]

Using PowerShell to change DNS servers

  Using PowerShell to change DNS servers automatically EXAMPLE 1 PS C:\>Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses (“″,””) This example sets the DNS server addresses on a specified interface with the index value of 12. EXAMPLE 2 PS C:\>Set-DnsClientServerAddress –InterfaceIndex 12 -ResetServerAddresses This example resets the DNS client to use the default DNS server addresses specified by […]

Installing Lync 2013 IIS features via PowerShell

Based on my experiance with installing Lync 2013 you have to select a whole lot of features in IIS. I rarely like to just select all features in IIS as this is prone to making your server less secure. So I used this script; $features = (‘Web-Default-Doc’, ‘Web-Dir-Browsing’, ‘Web-Http-Errors’, ‘Web-Static-Content’, ‘Web-Http-Logging’, ‘Web-Log-Libraries’, ‘Web-Http-Tracing’, ‘Web-Stat-Compression’, ‘Web-Dyn-Compression’, […]

Exchange 2010 SP1 PST Export via Command Line (Powershell)

With the new features that came out in SP1 for Exchange 2010 there finally is access directly on the server to export mailboxes into PSTs from the Exchange Server itself without the need for Office or ExMerge. I wrote a simple batch-job that will run the entire export into a local (or network) directory. I […]