powertips

How Linux protects SecureStrings (Not)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Identifying Group Memberships

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Finding System Paths

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Working with NTFS Streams (Part 5)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Working with NTFS Streams (Part 4)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Working with NTFS Streams (Part 3)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Working with NTFS Streams (Part 2)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Working with NTFS Streams (Part 1)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Watching German TV Shows

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Finding Last Logged-on User

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Using BITS to Download Files (Part 2)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Using BITS to Download Files (Part 1)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Investigating PowerShell Console Output

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Identifying Origin of Network Access

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Exploring Folder Structures (Part 2)

In the previous tip we introduced the PowerShell “SmbShare” module which comes with Windows and enables you to manage file shares. We looked at the...

Silencing Write-Host Statements

Write-Host is an extremely useful cmdlet to output information to a user because this output cannot be discarded: function Invoke-Test {...

Discarding Streams

PowerShell outputs information via different streams. Warnings are written to a different stream than output, and errors again go to a different...

Discarding (Any) Output

There are (a few) commands in PowerShell that output information to the console no matter what you do. Neither redirection of streams nor assigning...

Identifying Operating System Details

WMI returns a cryptic number when you ask for operating system details: PS> Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object...

Changing Operating System Description

Each Windows operating system has a description, and you can view (and change) this description with the following command: PS> control sysdm.cpl...

Removing Empty Properties

WMI and Get-CimInstance can provide you with a lot of useful information but the returned objects often contain a number of empty properties: PS>...

Using Assertions

Often, your code needs to assert certain prerequisites. For example, you may want to ensure that a given folder exists, and use code like this: #...

Wake On LAN

There is no need for external “Wake On LAN” tools. If you want to wake up a network machine, simply tell PowerShell the MAC address of...

Converting Hex Numbers

PowerShell can interactively convert hexadecimal numbers when you prefix “0x”: PS> 0xAB0f 43791 If the hex number is stored in a...

Auto-Learning Argument Completion

Argument completion is awesome for a user because valid arguments are always suggested. Many built-in PowerShell commands come with argument...

1 5 6 7 8 9 98