Last active
June 28, 2023 17:01
-
-
Save criscunhasantos/a9224a935ec91998ba333e5e0b629c42 to your computer and use it in GitHub Desktop.
PowerShell Cheat Sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
1/(1-1) | |
} | |
catch | |
{ | |
$PSCmdlet.ThrowTerminatingError($PSItem) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment