In the previous tip we explained how you can get PowerShellGet up and running with your PowerShell version. Now let’s see how easily the...
ps1
PowerShell Gallery: Creating QR Codes
In the previous tip we explained how you can get PowerShellGet up and running with your PowerShell version. Now let’s see how easily the...
Accessing Free PowerShell Gallery (Part 2)
PowerShellGet is a new free extension for PowerShell that enables you to download and install free extensions and commands. It comes with PowerShell...
Accessing Free PowerShell Gallery (Part 1)
PowerShell is an extensible framework, and there are tons of free and very useful command extensions available on the PowerShell Gallery...
Printing Tables from PowerShell (using WPF)
Whenever you would like to display, print, or save as PDF in a tabular form, WPF (Windows Presentation Foundation) may be a good way. Originally,...
Creating PowerShell Command Cheat Sheets (Part 4)
In the previous tip, we created cheat sheets for PowerShell commands. We used command names and their synopsis to create cheat sheets like this:...
Creating PowerShell Command Cheat Sheets (Part 3)
In the previous tip, we created cheat sheets for PowerShell commands and turned them into HTML reports that could be opened in a browser, and...
Creating PowerShell Command Cheat Sheets (Part 2)
In the previous tip, we created cheat sheets for PowerShell commands, and as a reminder, this line would create a sheet for network commands...
Creating PowerShell Command Cheat Sheets (Part 1)
Here is a clever trick to create cheat sheets for your favorite PowerShell commands. Any PowerShell command ships via a module, so if you have a...
Quickly Open PowerShell via Windows 10 Start Menu
In Windows 10, PowerShell can be launched via WIN+X (or by right-clicking the start menu icon). If your Windows 10 offers to open the outdated...
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...
WMI Quick Primer (Part 4)
Typically, WMI objects contain properties with valuable information. This line would retrieve all information about all running Notepad instances...
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...
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...
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...
Listing Properties with Values (Part 3)
When you want to inspect individual objects and their properties, piping an object to Out-GridView is of limited use: the grid view window will...
Listing Properties with Values (Part 2)
In the previous tip we introduced a new function called Remove-EmptyProperty that removes properties that have no value. Let’s expand it a bit so...
Listing Properties with Values (Part 1)
Objects are filled with rich information, yet objects may contain empty properties. This is especially true for objects retrieved from Active...
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...
Using ConvertFrom-ErrorRecord in try/catch
In the previous tip we created a function called ConvertFrom-ErrorRecord that makes it easy to retrieve all relevant error information from...
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...
Downloading Information from Internet (Part 8)
In the previous tip we illustrated how to download files from the internet using Invoke-WebRequest. However, this works for HTTP addresses only....
Downloading Information from Internet (Part 7)
In this part of this mini-series, we are showing you how Invoke-WebRequest can download files from the internet for you. Simply use the parameter...
Downloading Information from Internet (Part 6)
In the previous tip we explained how you can retrieve XML data from webpages using either Invoke-WebRequest or Invoke-RestMethod. For XML data,...