ps1

WMI Explorer

WMI (Windows Management Instrumentation) is a great information source: you can find almost any information about your computer somewhere. The hard...

read more

Object Magic (Part 4)

How about turning a single object into a hash table? This way, you can display one object property per line when you output the object in a grid...

read more

Object Magic (Part 3)

Let’s assume you want to hide all object properties that have no value (are empty). Here is a simple approach: # get any object $object =...

read more

Object Magic (Part 2)

Via the secret “PSObject” property, you can get detailed information about object members. For example, if you’d like to know...

read more

Object Magic (Part 1)

In PowerShell, most data are represented as PSObjects, a specific object “wrapper” added by PowerShell. To get to this specific wrapper,...

read more

Encrypting Text (Part 2)

This is the second part of our text encryption/decryption series. In the first part you learned how you can safely encrypt text on a machine. Now...

read more

Simple PowerShell Chat

Here’s a fun PowerShell script that you can use to create a simple multi-channel chat room. All you need is a network share where everyone has...

read more

Testing Password Strength

In previous tips, we already talked about services such as haveIbeenpwned.com. They harvest leaked passwords from previous hacker attacks so you can...

read more

Finding Public IP Address

Here is a one-liner that retrieves your current public IP address: PS> Invoke-RestMethod -Uri http://ipinfo.io ip : 87.153.224.209 hostname :...

read more

Real-Time Log Processing

PowerShell comes with a powerful yet simple way of monitoring file changes. Let’s assume you have a log file that changes every now and then....

read more

Detecting Storage Issues

In Windows 10 and Windows Server 2016, PowerShell can access storage reliability data so you can find out whether there is something wrong with one...

read more

Resetting Winsock

PowerShell can execute internal PowerShell commands and also regular console commands, so it’s not a bad thing to continue to use console...

read more
1 15 16 17 18 19 128