01 2022 档案
摘要:PowerShell - Loops If Statement # If statement with Zero else Statement $Number = 16 if ($Number -gt 10) { Write-Host "The value $Number is gerater th
阅读全文
摘要:PowerShell - Hashtable #### Hashtable #array $numbers = 1..9 $numbers $numbers[4] #Hashtable #1st Approach $HT = @{} #2nd Approach $HT = @{ Tony = 30
阅读全文
摘要:PowerShell - Arrays How to declare or create and operate an Array # Creating Array using Array Operator $fruits = @("Apple","Orange","KiWi") $fruits $
阅读全文
摘要:PowerShell - Pipelines Pipeline A series of commands connected by pipeline operators (|) Output of Preceding command becomes input of next command Obj
阅读全文
摘要:PowerShell - Operators # arithmetic operators (+, -, *, /, %) [int] $1stnumber = Read-host "Enter 1st number " [int] $2ndnumber = Read-host "Enter 2nd
阅读全文
摘要:PowerShell - Variables # variables are limited to Scope in which they are created $Console_Ctreated = 1 Invoke-Command -ScriptBlock {$Script_Created =
阅读全文

浙公网安备 33010602011771号