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 moreAWS Workspaces – Clean up orphaned Managed AD objects

Bulk add devices to Azure AD Group

A simple script, which takes a list of device names in a text file and adds them to the specified Azure AD group. Requires the AzureAD PowerShell module, the script will check for its existence and offer to install it if it is not found. This script can cope with MFA for Azure AD admins. …

Read moreBulk add devices to Azure AD Group

O365 Shared Mailbox sent items

By default, when “sending as” a shared mailbox, the sent items go into the users sent items folder. Unfortunately, it is not possible to change this to be the shared mailbox, but it is possible to put a copy in the shared mailbox’s sent items folder. The below script will enable this for all shared …

Read moreO365 Shared Mailbox sent items

O365 Shared Mailboxes – sent items go into users folder

The default behaviour for items sent from a shared mailbox is to go into the users sent items. We had a requirement to save a copy in the shared mailbox sent items folder. this script modifies the mailbox so that email sent either “on behalf” or “as” the mailbox get copied into the shared mailbox’s …

Read moreO365 Shared Mailboxes – sent items go into users folder

AWS Workspaces – Count of machine state

Just a quick 1 liner of powershell to work this one out: get-wksworkspace | Group-Object state | Select-Object name,count | Sort state -Descending Which will give you something like: Name Count —- —– AVAILABLE     279 UNHEALTHY  30 PENDING       72 REBOOTING 2 ERROR          3 Amazon Auto Links: No products …

Read moreAWS Workspaces – Count of machine state

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 moreTidy up Always on VPN Connections

Kemp Loadmaster Config for Windows Always on VPN with IKEv2

Like many of you out there, we were suddenly in a position where we needed to ramp up out remote connectivity to cope with the demand driven by Covid-19, after some research, we decided the easiest path was to build some more RAS servers and load-balance them with a pair of Kemp Loadmasters. We followed …

Read moreKemp Loadmaster Config for Windows Always on VPN with IKEv2

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 moreAlways on VPN – RAS service hangs with no errors in Event log

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 moreRemoving Always On VPN Tunnels

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 moreRobocopy – Throttle bandwidth