Powershell template

From roonics
Revision as of 11:28, 5 April 2024 by Jlambert (talk | contribs)
Jump to navigation Jump to search

Basic template for use when creating a script:

<#
.SYNOPSIS

.DESCRIPTION

.EXAMPLE

.OUTPUTS

.NOTES

#>

# START TRANSCRIPT LOGGING
Start-Transcript -Path $PathLogs"log_"$(get-date -f yyyy-MM-dd_HH-mm-ss)".txt" -Append




# STOP TRANSCRIPT LOGGING
Stop-Transcript