Created
May 12, 2022 15:15
-
-
Save JamesDBartlett3/9457cce880955a9279d4f3edbcfb21be to your computer and use it in GitHub Desktop.
Custom PowerShell Functions and Aliases
This file contains 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
<# | |
Custom PowerShell Functions and Aliases | |
Author: @JamesDBartlett3 | |
#> | |
################################################################################################## | |
<# | |
Stop-ProcessName | |
Alias: spn | |
Example 1: Stop-ProcessName explorer | |
Example 2: spn slack | |
#> | |
Function Stop-ProcessName {Param([string]$processName) Stop-Process -Name $processName} | |
Set-Alias -Name spn -Value Stop-ProcessName | |
################################################################################################## | |
<# | |
#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment