Template repository for projects on posh
Go to file Use this template
2023-01-08 16:30:20 +03:00
.gitignore ignore IDE settings 2023-01-07 09:36:03 +03:00
LICENSE Initial commit 2023-01-07 09:34:47 +03:00
README.md add basic design 2023-01-08 16:30:20 +03:00
script.conf update template 2023-01-07 10:22:06 +03:00
script.ps1 exitcodes added 2023-01-07 16:52:01 +03:00

template-posh

Template repository for projects on posh


script.ps1

Description:

returning current username if privileged rights are exist
or
returning error, if privileged rights are not exist

Dependencies:

  • powershell (tested version 5.1)
PARAMETERS DESCRIPTION DEFAULT
[-show] "" - execution with pauses.
"qn" - execution without pauses.
[-conf] path to configuration file .\script.conf

Example usage in terminal with powershell:

powershell .\script.ps1
script.ps1 qn .\script.conf