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 […]

Create a custom install USB stick using DISM

Install a windows laptop and setup everything according to your wishes. On Windows 10 you will need to remove all the apps from MarketPlace before capturing the image with the following command in PowerShell: Get-AppxPackage | Remove-AppxPackage After you have done this open run: sysprep /oobe /generalize /shutdown Once this is done, boot into the […]

Delete OEM partitions in Windows

The awnser: diskpart.exe! Hit “Windows Key” + “R” to open the run dialogue box and type “diskpart” and hit “OK” to open a command prompt window. Type “list disk”. Type “select disk n”. Type “list part”. Type “select part n”. Type “delete partition override”. Type “exit”. Thanks to http://www.disk-partition.com/blog/how-to-delete-an-oem-partition/

Secure your PHP (on Windows)

Although alot of people will be running PHP on an Apache environment I have several reasons to be running mine on Windows, specifically 2012 R2. Lately I’ve been seeing alot of activity of people trying to inject mallicious code into several of my clients websites and so have begun drilling down into securing PHP. To […]

Installing .NET 3.5 on Windows 10 in offline mode

With Windows 10 alot of people run into the problem that when they, or some software, needs to install .NET 3.5 it claims it cannot download the files. There is a “simple” fix to this issue by running the installer directly from the Windows CD using an Elevated command prompt with the following command: Dism […]

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         […]

How to get an A grade on SSLLabs with IIS 8.5 on Windows Server 2012 R2

After having some serious problems trying to find proper documentation for how to fix some of the bigger leaks in IIS (such as logjam, FREAK, POODLE) I became frustrated with the lack of documentation. Microsoft itself will point you to Nartac IIS Crypto which is a great tool, but I needed to roll these fixes out […]