Category Archives: Windows

Collect user and group SIDs and names from Active Directory

Ever found yourself looking through the Access Control List of a file/folder/share and mixed in along with the group names (hopefully not user names!) you see some SIDs? These look something like S-1-5-21-0123456789-0123456789-0123456789-0123. These are the Security IDs of deleted … Continue reading

Rate this:

Posted in PowerShell, Security, Windows | Tagged , , , , , , | Leave a comment

Change BitLocker Recovery Password with PowerShell

When BitLocker detects certain changes to the computer it’ll trigger Recovery Mode, and prompt for the Recovery Password. Likewise, you also need the recovery password if you need to access the encrypted disk from another machine or via Windows Recovery … Continue reading

Rate this:

Posted in PowerShell, Security, Windows | Tagged , , , , , , , , , | Leave a comment

Get or update SysInternals tools with PowerShell

This is version 2 – the previous version relied on mapping a new PSDrive directly to \\live.sysinternals.com\tools which made things easy, but that no longer seems to work (or at least not for me, might be my web filtering blocking … Continue reading

Rate this:

Posted in PowerShell, Windows | Tagged , , , , , , | Leave a comment

Group Policy Preference Drive Maps closing

I’ve been dealing with an issue where users that leave Windows File Explorer windows open for extended periods find that they close now and then. This seems to be a common problem with later versions of Windows (8.1, 10) and … Continue reading

Rate this:

Posted in Windows | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Don’t display last username if C drive encrypted with BitLocker

I’m moving from encrypting laptops with a third party disk encryption product to BitLocker. The third party product uses a pre-boot username & password prompt, and only boots into Windows if the credentials are correct. Users then have to log … Continue reading

Rate this:

Posted in Security, Storage, Windows | Tagged , , , , | Leave a comment

PowerShell: BitLocker Encryption Progress Bar

When enabling Bitlocker I want to know how far through the process of encrypting the drive it has got. The script gets the encryption status from the manage-bde.exe command, parses it using a regular expression to get the percent complete, … Continue reading

Rate this:

Posted in PowerShell, Storage, Windows | Tagged , , , , , , , , | Leave a comment

Storage Replica in Windows Server 2016

What is Storage Replica? Block level synchronous or asynchronous, volume based data replication. What does it do? Replicates storage data from a disk attached to one instance of Windows Server to another disk attached to a different instance of Windows … Continue reading

Rate this:

Posted in Storage, Uncategorized, Windows | Tagged , , , , , , , , | 1 Comment

Fix PowerShell WinRM remote connection errors

I’ve had two annoying PowerShell errors today, both for the same server: Enter-PSSession : Connecting to remote server server-a.rcmtech.co.uk failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the … Continue reading

Rate this:

Posted in PowerShell, Windows | Tagged , , , , , , , , , , , | Leave a comment

Create a PFX file from separate private and public key certificate files

Whilst installing ADFS I needed to import my wildcard certificate. This proved fiddly as Microsoft need it to be in pfx format, and I only had separate private .key and public .crt files. PFX is a Microsoft certificate format that combines the … Continue reading

Rate this:

Posted in Security, Windows | Tagged , , , , , , , , , , , , , | 2 Comments

Connection State Announcer

I’ve been having some very annoying problems with my home broadband where the connection keeps dropping every few minutes. I wrote this quick script to monitor a site on the internet and tell me when it can’t be reached anymore, … Continue reading

Rate this:

Posted in Networking, PowerShell, Windows | Tagged , , , , | Leave a comment