Tips and Tricks (Page 3/59)

#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…

Read More

#PSTip Access remote registry using PowerShell

Using the Microsoft.Win32.Registry class it is possible to access both–the local registry and, more importantly, the registry of a remote…

Read More

#PSTip Validate if an Active Directory Organizational Unit exists or not

For some recent scripting work, I needed to find if an AD OU existed or not from a computer that…

Read More

PSTip: Connect to Azure Virtual Machines without being prompted for credentials

When working with Azure it can be useful to quickly connect to a number of Azure VMs. Unfortunately this might…

Read More

PSTip: Change a drive letter using Win32_Volume class

Changing a drive letter of a removable drive or DVD drive is an easy task with Windows PowerShell. Using the…

Read More

PSTip: Save untitled tabs in PowerShell ISE to clipboard

When working with the PowerShell ISE it can occur that there are a lot of untitled scripts left at the…

Read More