As a Systems Administrator I spend a lot of time working in PowerShell, and may be running multiple PS consoles simultaneously, or even generating child sessions from a parent. Keeping track of them all can be mind numbing if they are all named “Windows Powershell” or “Administrator : Windows Powershell.” So, to help quickly Alt-Tab …
Category: PowerShell
May 21
Synchronizing Time between a Domain Controller and a client or DC and NTP Server
Every once in awhile something happens that affects the time on the DC, which can have any number of spillover effects to other servers, RODCs, client workstations, even network equipment.This is the PowerShell script that I use to quickly resolve the issue. Note that it does need to be run in an elevated session.
Oct 20
PowerShell Inconsistency Frustrations
This will be updated over time as a location to note the various inconsistencies present in Windows PowerShell Remove-ADComputer the -Confirm switch is not a space $false but rather a :$false Remove-ADComputer -Identity “computername” -Confirm:$false
Jan 18
Powershell – Add-VpnConnection errors in Windows 10 Version 1909
This document is straight up for sysadmins and PowerShell junkies (and Microsoft, assuming anyone from stumbles across this). Beginning somewhere around Windows 10, Version 1909 (18363.1256), an error appeared making long standing PowerShell scripts suddenly begin to fail. The Commmand Add-VpnConnection -Name ($ikename=Read-Host “VPN Name”) -ServerAddress ($fqdnval=Read-Host “fqdn”) -TunnelType Ikev2 -EncryptionLevel Maximum -AuthenticationMethod EAP -RememberCredential …