ps1

Loading PowerShell Modules

All cmdlets live in modules or snap-ins. To see which modules are currently loaded, use Get-Module. In PowerShell 3.0 or better, most modules are...

read more

Managing NTFS Permissions

In a previous tip we showed how you can add NTFS permission rules to a folder. To find out what kind of permissions are assignable, take a look at...

read more

Splitting Long Lines

To improve readability, you can break PowerShell lines into separate lines. Get-Service | Where-Object { $_.Status -eq 'Running' }...

read more

Finding Executable

Many file extensions are associated with executables. You can then use Invoke-Item to open a document with this executable. Finding out just which...

read more

Test Nested Depth

When you call a function, PowerShell increases the nest level. When a function calls another function, or script, this will again increase the nest...

read more

Aborting Pipeline

Sometimes you might want to abort a pipeline when a certain condition is met. Here is a creative way of doing this. It works all the way back to...

read more

"Continue" and Labels

When you use the "Continue" statement inside a loop, you can skip the remainder of this loop iteration, and continue with the next....

read more
1 60 61 62 63 64 128