mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-05 20:46:43 +02:00
Improve the comment-based section
This commit is contained in:
parent
b8d73c8cc7
commit
e85b2a5bd5
@ -1,8 +1,14 @@
|
|||||||
<#
|
<#
|
||||||
.SYNTAX add-firewall-rules.ps1 [<path-to-executables>]
|
.SYNOPSIS
|
||||||
.DESCRIPTION adds firewall rules for the given executables, administrator rights are required
|
add-firewall-rules.ps1 [<path-to-executables>]
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.DESCRIPTION
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
Adds firewall rules for the given executables (needs administrator rights)
|
||||||
|
.EXAMPLE
|
||||||
|
PS> .\add-firewall-rules.ps1 C:\MyApp\bin
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
#Requires -RunAsAdministrator
|
#Requires -RunAsAdministrator
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
<#
|
<#
|
||||||
.SYNTAX add-memo.ps1 [<text>]
|
.SYNOPSIS
|
||||||
.DESCRIPTION adds the given memo text to $HOME/Memos.csv
|
add-memo.ps1 [<text>]
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.DESCRIPTION
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
Adds the given memo text to $HOME/Memos.csv
|
||||||
|
.EXAMPLE
|
||||||
|
PS> .\add-memo.ps1 "Buy apples"
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Text = "")
|
param($Text = "")
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
<#
|
<#
|
||||||
.SYNTAX alert.ps1 [<message>]
|
.SYNOPSIS
|
||||||
.DESCRIPTION handle and escalate the given alert message
|
alert.ps1 [<message>]
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.DESCRIPTION
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
Handle and escalate the given alert message
|
||||||
|
.EXAMPLE
|
||||||
|
PS> .\alert.ps1 "Harddisk failure"
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param($Message = "")
|
param($Message = "")
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
<#
|
<#
|
||||||
.SYNTAX cd-desktop.ps1
|
.SYNOPSIS
|
||||||
.DESCRIPTION go to the user's desktop folder
|
cd-desktop.ps1
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.DESCRIPTION
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
Go to the user's desktop folder
|
||||||
|
.EXAMPLE
|
||||||
|
PS> .\cd-desktop.ps1
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$TargetDir = resolve-path "$HOME/Desktop"
|
$TargetDir = resolve-path "$HOME/Desktop"
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
<#
|
<#
|
||||||
.SYNTAX cd-docs.ps1
|
.SYNOPSIS
|
||||||
.DESCRIPTION go to the user's documents folder
|
cd-docs.ps1
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.DESCRIPTION
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
Go to the user's documents folder
|
||||||
|
.EXAMPLE
|
||||||
|
PS> .\cd-docs.ps1
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$TargetDir = resolve-path "$HOME/Documents"
|
$TargetDir = resolve-path "$HOME/Documents"
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
<#
|
<#
|
||||||
.SYNTAX cd-downloads.ps1
|
.SYNOPSIS
|
||||||
.DESCRIPTION go to the user's downloads folder
|
cd-downloads.ps1
|
||||||
.LINK https://github.com/fleschutz/PowerShell
|
.DESCRIPTION
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
go to the user's downloads folder
|
||||||
|
.EXAMPLE
|
||||||
|
PS> .\cd-downloads.ps1
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
$TargetDir = resolve-path "$HOME/Downloads"
|
$TargetDir = resolve-path "$HOME/Downloads"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user