Last active
August 23, 2024 20:06
-
-
Save jeffeuxMartin/ad701b3a2a8e48272d923cfbd3234a06 to your computer and use it in GitHub Desktop.
Powershell Learning.ps1
This file contains hidden or 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
| pqr |
This file contains hidden or 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
| function Install-Software { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Mandatory)] | |
| [ValidateSet('1', '2')] | |
| [string] $Version | |
| ) | |
| # Get-ChildItem -Path \\SRV1\Installers\SoftwareV$Version | |
| Write-Host "Installing Version $Version..." | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment