Powershell Examples
Personal collection of basic examples / scripts.
Name | Description |
---|---|
Format-Relative | Diffrent methods for displaying relative path. |
Get-ImageData | Get image information. |
Get-LastAccess | Retreive a timestamp of when an item was accessed.. |
Get-ModuleCount | Measure the amount of loaded modules.. |
Hide-Item | Change item attributes, i.e. 'Hidden'. |
Invoke-BSOD | Invokes a Blue Screen of Death from remote script; w/o admin privileges.. |
Measure-Filesize | Determine human readable filesize. |
Select-GridView | GUI listview of symbolic links, selection opens path in explorer.. |
Show-AnsiColorGradient | Display a color gradient in the terminal. Just for fun.. |
Show-Confirmation | Prompt user for [y/n] confirmation.. |
Show-MessageBox | Make a GUI Message Box visible to the user. |
Test-AppendPerformance | Comparing the performance of two serperate appending methods. |
Test-Interrupt | Continue script action after interuption.. |
Test-Pipeline | Does something with paths supplied via pipeline.. |
Test-ProgressBar | Display & update progress bar. |
Test-WhatIf | Example function for '-WhatIf' parameter support.. |
Write-HostCenter | Display text in the center of the terminal window.. |