Typically, WMI objects contain properties with valuable information. This line would retrieve all information about all running Notepad instances...
powertips
Categories
- Free tools
- SQL Admin Toolset
- SQL Compliance Manager
- SQL Defrag Manager
- SQL Diagnostic Manager for MySQL
- SQL Diagnostic Manager for SQL Server
- SQL Diagnostic Manager Pro
- SQL Doctor
- SQL Enterprise Job Manager
- SQL Inventory Manager
- SQL Query Tuner for SQL Server
- SQL Safe Backup
- SQL Secure
- SQL Workload Analysis for SQL Server
- Uptime Infrastructure Monitor Formerly Uptime
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,...
Downloading Information from Internet (Part 5)
In the previous tip we illustrated how Invoke-WebRequest can be used to download JSON or XML data from a web page. This example downloads the...
Downloading Information from Internet (Part 4)
In the previous tip we explained how you can use Invoke-WebRequest to download data from webpages, and for example retrieve excuses from a webpage...
Downloading Information from Internet (Part 3)
In previous tips, we showed how to use Invoke-WebRequest to download data from webpages, and process data delivered in JSON or XML format. Most...
Downloading Information from Internet (Part 2)
Invoke-WebRequest can download any type of information, and it is up to you to convert it into the format of choice. In the previous tip, we...
Downloading Information from Internet (Part 1)
PowerShell comes with two powerful cmdlets that you can use to retrieve information from the internet. Today, we focus on Invoke-WebRequest. This...
Purging Kerberos Tickets for All Accounts
In the previous tip we covered klist.exe and how it can be used to purge all Kerberos tickets for the current user so that new permissions will take...
Purging Kerberos Tickets for the Current User
No need to reboot a system just to apply new permission settings. Instead, purge your Kerberos tickets so that you will get a new ticket based on...
Creating Hexadecimal Values
Here are a couple of ways to convert decimal to hexadecimal notation: $value = 255 [Convert]::ToString($value, 16) '{0:x}' -f $value...
Installing PowerShell 6 with Chocolatey
In the previous tips, we explained how you can download and install Chocolatey, a free Windows package manager that can install software for you....
Using Chocolatey with PowerShell
Chocolatey is a free package manager for Windows that can be used to download and install software. Before you can use Chocolatey from PowerShell,...
Examining Digital Signature Signers
When you download a script from the internet, it may contain a digital signature that can help you find out where the script comes from. We looked...
Trusting Downloaded Scripts
Scripts downloaded via Internet have a great potential of being infected with malware, or originate from illegitimate sources. Digital signatures...
Execution Policy and Downloaded Script Files
When you download a file from the internet, it may be tagged by Windows (via NTFS stream), and PowerShell may refuse to execute it: PS> &...
The Best Ways to Download Script Files
Occasionally, PowerShell scripts are made available via direct download. Let’s find the most efficient way to download text-based files via...
Colorizing Cmdlet Output
Starting in PowerShell 5.1, the PowerShell console supports VT escape sequences that can be used to position and format console text. Note that this...
Using Colors in PowerShell Console
Starting in PowerShell 5.1, the PowerShell console supports VT escape sequences that can be used to position and format console text. Note that this...
Positioning the PowerShell Console Cursor
Starting in PowerShell 5.1, the PowerShell console supports VT escape sequences that can be used to position and format console text. Note that this...