mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-08 20:54:38 +02:00
Add new-script.ps1
This commit is contained in:
@ -177,6 +177,7 @@ pull-repo.ps1, pulls updates for the current/given Git repository (including sub
|
||||
pull-repos.ps1, pulls updates for all Git repositories under the current/given directory (including submodules)
|
||||
query-smart-data.ps1, queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory
|
||||
new-email.ps1, starts the default email client to write a new email
|
||||
new-script.ps1, creates a new PowerShell script
|
||||
reboot.ps1, reboots the local computer (needs admin rights)
|
||||
reboot-fritzbox.ps1, reboots the FRITZ!box device
|
||||
remove-empty-dirs.ps1, removes empty subfolders within the given directory tree
|
||||
@ -217,7 +218,6 @@ switch-shelly1.ps1, switches a Shelly1 device in the local network
|
||||
sync-repo.ps1, synchronizes a Git repository by push & pull (including submodules)
|
||||
take-screenshot.ps1, takes a single screenshot
|
||||
take-screenshots.ps1, takes multiple screenshots
|
||||
template.ps1, copy this template PowerShell script to write a new one
|
||||
translate-file.ps1, translates the given text file into another language
|
||||
translate-files.ps1, translates the given text files into any supported language
|
||||
translate-text.ps1, translates the given text into other languages
|
||||
|
Can't render this file because it has a wrong number of fields in line 86.
|
32
Data/template.ps1
Executable file
32
Data/template.ps1
Executable file
@ -0,0 +1,32 @@
|
||||
#requires -version 4
|
||||
<#
|
||||
.SYNOPSIS
|
||||
← enter overview of script here
|
||||
.DESCRIPTION
|
||||
← enter brief description of script here
|
||||
.INPUTS
|
||||
← enter inputs here (if any, otherwise state None)
|
||||
.OUTPUTS
|
||||
← enter outputs here (if any, otherwise state None)
|
||||
.EXAMPLE
|
||||
PS> .\template.ps1 ← enter example here (repeat this attribute for more than one example)
|
||||
.NOTES
|
||||
Author: ← enter full name here
|
||||
License: ← enter license here
|
||||
.LINK
|
||||
← enter URL here
|
||||
#>
|
||||
|
||||
param() # ← enter script parameters here
|
||||
|
||||
# ← enter functions here
|
||||
|
||||
try {
|
||||
# ← enter instructions here
|
||||
|
||||
"✔️ Done."
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Reference in New Issue
Block a user