PowerShell: Cannot Be Loaded Because Running Scripts is Disabled
Mar24

PowerShell: Cannot Be Loaded Because Running Scripts is Disabled

KB ID 0001417 Problem If you’ve arrived here, you are trying to run a script, and you cant; PS C:\Users\{User-name}> .\{script-name}.ps1 .\{script-name} : File C:\Users\{User-name}\{script-name} cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 + .\{script-name} + ~~~~~~~~~~~~~~~~~~ +...

Read More
Convert MBR Partitioned Drives to GPT
Mar12

Convert MBR Partitioned Drives to GPT

KB ID 0001407 Problem I got asked if I’d ever had to do this today, I vaguely remember having this problem in the past, but I can’t remember how I solved it. You set the ‘Partition Table Type‘ on a  disk in Windows, when the drive is first initialised, like so; And the default is MBR, so that usually gets ticked, the problem is MBR only supports disks up to 2TB in size. Now if it’s just a new disk, with...

Read More
Windows ‘Always On’ VPN Part 2 (NPS, RAS, and Clients)
Feb18

Windows ‘Always On’ VPN Part 2 (NPS, RAS, and Clients)

KB ID 0001403 Problem Back in Part One, we setup the AD (Groups,) and the Certificate services that will knit everything together. Now we need to configure an NPS server that acts as a RADIUS server for our remote clients, And a RAS Server that our remote clients will connect to. Step1: Network Setup Microsoft have an alarming habit of telling you to connect DMZ assets to the LAN. In their defence I’ve seen some documentation...

Read More
Windows 10: Remote VPN Client Cannot Resolve Domain DNS
Feb16

Windows 10: Remote VPN Client Cannot Resolve Domain DNS

KB ID 0001402 Problem I’ve been setting up a VPN solution on the test bench as I’m looking at Always On VPN. When I noticed that I had a problem with my remote VPN connections on Windows 10. They would connect fine but I could not resolve any FQDNs for my domain? Solution By default, all (Windows) VPN connections are ‘Force Tunnel’ (this means they have the option ‘Use default gateway on remote...

Read More
Remotely Log Users Off From CLI / PowerShell
Feb15

Remotely Log Users Off From CLI / PowerShell

KB ID 0001401 Problem I’ve not had to do this since the days we got “The terminal server has exceeded the maximum number of allowed connections” errors. Now thankfully Windows Server tells us who is logged on so we can ‘ask politely’ before we boot them off! Today though, my user session got all messed up, and I needed to kick ‘myself’ off remotely, (and have a fresh session.) Solution From a...

Read More
Windows ‘Always On’ VPN Part 1 (Domain and PKI)
Feb11

Windows ‘Always On’ VPN Part 1 (Domain and PKI)

KB ID 0001399 Problem Always On VPN was a bit of a misnomer when it was released, as it was only really ‘on’ when a user logged on. So when comparing it with ‘Direct Access‘ it didn’t have the capacity to ‘Manage Out’. With the release of Windows 10 (1709) this has been rectified with ‘Device Tunnels’, (more on that later). The solution uses RAS, NAP (NPS), and PKI (Certificate...

Read More