PowerShell CheatSheet – Aliases
An alias is another name assigned to a cmdlet, function, script, executable file, etc. The main purpose is to speed up the …
An alias is another name assigned to a cmdlet, function, script, executable file, etc. The main purpose is to speed up the …
PowerShell is a command-line shell and scripting language, designed especially for system administrators. Most shells operate by executing a command or utility …
PowerShell uses the same console features as the old Command Prompt; so we have the function keys available: F1 Pastes the last …
PowerShell loves maths! By using System.Math .NET Framework class, PowerShell is a great calculator. Here are common examples of System.Math functions Returning …
Like in previous “educationnal” post, I consider that theory is bullshit; only an example is valuable! So here’s a few examples to …
Because we’re not “sexists”, here’s some common and usefull Bash to PS equivalents. Yes, *nixes pussies, you can now start to use …
To improve readability and to easily differentiate the items returned by the script to the user, the usage of color in the …
How to add an help section/function to your own powershell scripts. Here we are: you can add comment based help either to …
Here are the supported hotkeys by the PowerShell console Hotkey Explanation Up arrow Scan backward through your command history. Down arrow Scan …
When surrounded by single quotes, PowerShell accepts these characters as written.
Here’s a list of HTTP status codes 1xx Informational 2xx Success 3xx Redirection 4xx Client error 5xx Server error 1xx Informational 100 …
Not all, but the most usefull (and used) automatic variables.
Here is a regular expression list . matches any character except newline \ escape character \w word character [a-zA-Z_0-9] \W non-word character …
To check if a condition is true (or false…) one of the key is to compare values. Here are the most common …
Here are the PS loop operators As you can see, there is not really one type of loop faster than another. So …