#PSTip Get last login date for local account
Using the ADSI type accelerator in combination with WinNT provider we can retrieve the last logon time for a local account from the local SAM account database:
Read MoreUsing the ADSI type accelerator in combination with WinNT provider we can retrieve the last logon time for a local account from the local SAM account database:
Read MoreUsing the Microsoft.Win32.Registry class it is possible to access both–the local registry and, more importantly, the registry of a remote system.
Read MoreFor some recent scripting work, I needed to find if an AD OU existed or not from a computer that is not domain-joined.
Read MoreWhen working with Azure it can be useful to quickly connect to a number of Azure VMs. Unfortunately this might result in having to enter your password multiple times.
Read MoreChanging a drive letter of a removable drive or DVD drive is an easy task with Windows PowerShell. Using the Win32_Volume class and the Set-CimInstance cmdlet a drive letter can be reassigned.
Read MoreIn Windows files can have a lot of additional file attributes that are not shown when using the Get-ChildItem cmdlet. To reveal these the Shell.
Read More