AWS Workspaces – Clean up orphaned Managed AD objects

If you manage a large number of AWS workspaces, chances are you will end up with orphaned computer AD objects cluttering up your domain. This script pulls a list of workspaces, compares it to the list of machines in AWS managed AD and removes any AD computer object without a corresponding workspace. This script requires …

Read more

Tidy up Always on VPN Connections

We recently moved from a test to live implementation of Always on VPN, and moved our servers behind a load balancer, ratifying out profiles down to a single user and device tunnel. We found that deleting the old connections from Settings still left a bunch of stuff in the registry, so I came up with …

Read more

Always on VPN – RAS service hangs with no errors in Event log

We hit a new issue this week, we were getting failed connections on our Always-on VPN RAS servers, and on checking the servers, it appeared the ras service had hung. No errors in the logs, existing clients dropped off and we couldn’t restart the service, a reboot was the only option. We tracked this down …

Read more

Removing Always On VPN Tunnels

Recently, we were in a situation where we needed to remove some left over Always-on VPN user tunnels from a lot of Windows 10 machines. (We had duplicate profiles, and this was a tidy up exercise) The following scripts address this issue, it gets a list of all the VPN connections and then removes all …

Read more

Robocopy – Throttle bandwidth

Ever thought how useful it would be to be able to throttle Robocopy to prevent it from hogging all your bandwidth when copying over a network, particularly a slow one? Well you can, using the /IPG (Inter packet Gap) command line option. Simply enter the values for your available bandwidth and how much of this …

Read more

WSUS Reset and Re-Authorize

Recently I came across  a customer site where a lot of the machines had stopped receiving updates from WSUS, despite being visible in the WSUS console and having shown as reported in. I decided to write a powershell script to parse all the machines in AD, stop the Windows Update service, delete the SoftwareDistribution folder, …

Read more

A sensible approach to Windows 10 Update Delivery Optimization

Sadly, there has been a lot of scaremongering and bad advice floating around following the release of Windows 10. One of those ‘concerns’ is centered around Microsoft’s new Windows Update Delivery Optimization (WUDO) which is initially designed to help users get faster software updates and in theory is a good idea, being able to handle massive internet traffic of …

Read more