More Related Content
Similar to Power shell – object 篇
Similar to Power shell – object 篇 (7)
More from LearningTech (20)
Power shell – object 篇
- 5. 取得 array 資料
• 可以用 [index], [StartIndex..EndIndex] 取得資料
• 以上例,$array[3] 的輸出是什麼
• 以上例,$array[0,-1] 的輸出是什麼
- 9. Dictionary method
• 移除元素 Remove()
• Contains(), ContainsKey() 查找是否有存在給定的 Key
• ContainsValue 查找是否有存在的 Value
• Keys, Values 列舉資料
- 21. Q1
• 列出你 pc 中的 service 列表
•
•
get-service
其中狀態是「執行中」且 名稱是「Win 開頭」,再按照「名稱」降幂排序。
Editor's Notes
- Key 值,不限定一定要字串