01 2022 档案

摘要:PowerShell - Loops If Statement # If statement with Zero else Statement Number=16if(Number -gt 10) { Write-Host "The value $Number is gerater th 阅读全文
posted @ 2022-01-28 15:29 晨风_Eric 阅读(54) 评论(0) 推荐(0) 编辑
摘要:PowerShell - Hashtable #### Hashtable #array numbers=1..9numbers numbers[4] #Hashtable #1st ApproachHT = @{} #2nd Approach $HT = @{ Tony = 30 阅读全文
posted @ 2022-01-10 11:32 晨风_Eric 阅读(48) 评论(0) 推荐(0) 编辑
摘要:PowerShell - Arrays How to declare or create and operate an Array # Creating Array using Array Operator fruits=@("Apple","Orange","KiWi")fruits $ 阅读全文
posted @ 2022-01-07 16:08 晨风_Eric 阅读(27) 评论(0) 推荐(0) 编辑
摘要:PowerShell - Pipelines Pipeline A series of commands connected by pipeline operators (|) Output of Preceding command becomes input of next command Obj 阅读全文
posted @ 2022-01-05 10:49 晨风_Eric 阅读(41) 评论(0) 推荐(0) 编辑
摘要:PowerShell - Operators # arithmetic operators (+, -, *, /, %) [int] 1stnumber=Readhost"Enter1stnumber"[int]2ndnumber = Read-host "Enter 2nd 阅读全文
posted @ 2022-01-05 09:57 晨风_Eric 阅读(33) 评论(0) 推荐(0) 编辑
摘要:PowerShell - Variables # variables are limited to Scope in which they are created $Console_Ctreated = 1 Invoke-Command -ScriptBlock {$Script_Created = 阅读全文
posted @ 2022-01-04 17:44 晨风_Eric 阅读(37) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示