ps1

Test AD User Exists

If you’d need to find out whether a given Active Directory user exists, and provided you have installed the ActiveDirectory PowerShell module...

read more

WMI Quick Primer (Part 4)

Typically, WMI objects contain properties with valuable information. This line would retrieve all information about all running Notepad instances...

read more

WMI Quick Primer (Part 3)

In the previous tip we explained why Get-CimInstance may have advantages over the older Get-WmiObject cmdlet. Now here is another example that...

read more

WMI Quick Primer (Part 2)

There are two cmdlets you can use to retrieve WMI data: the older Get-WmiObject cmdlet, and the more modern Get-CimInstance cmdlet. When used...

read more

WMI Quick Primer (Part 1)

WMI is an awesome information source for admins. All you need is the name of a WMI class that represents something you find interesting. The easiest...

read more

Enabling Remoting

There are many ways how cmdlets can get remote information from another computer. Here are just a few: # try and connect to this computer # (adjust...

read more

Converting Error Records

Whenever PowerShell raises an error, an error record is written to $error which is an array storing the last errors that occurred. You can try and...

read more
1 29 30 31 32 33 128