Here’s a quick one-liner to find out how old the administrator password age (in days) is on a remote machine. ([adsi]”WinNT://<COMPUTERNAME>/administrator”).passwordage.value/86400 This requires RPC/DCOM access to the remote computer. Or use PowerShell remoting with Invoke-Command: invoke-command { new-object PSObject -property @{ Computername = $env:computername AdminAge = ([adsi]”WinNT://$env:computername/administrator”).passwordage.value/86400 } } -ComputerName $computers | Select Computername,AdminAge
Day: April 1, 2013
Test Hyper-V VHD Folders with PowerShell
I’ve recently added a USB 3.0 Express Card adapter to my laptop to provide USB 3.0 functionality. The added performance is very useful in my Hyper-V setup. However, I am running into a glitch that I have yet to figure out where the external drives (the Express card has 2 ports) are still attached and…