docs(iiscontrol): added in an example how to run i t
This commit is contained in:
@@ -4,6 +4,9 @@ param (
|
||||
[string]$StopOrStart
|
||||
)
|
||||
|
||||
# Example string to run with the parameters in it.
|
||||
# .\iisControls.ps1 -ServerName "usmcd1vms036" -AppPoolName "LogisticsSupportTool" -StopOrStart "stop"
|
||||
|
||||
write-host $StopOrStart
|
||||
if ($StopOrStart -eq "stop") {
|
||||
Invoke-Command -ComputerName $ServerName -Credential $cred -ScriptBlock {
|
||||
|
||||
Reference in New Issue
Block a user