PowerShell 学习笔记-- 3 -- 格式化输出,文件系统

来源:互联网 发布:打开php页面 下载文件 编辑:程序博客网 时间:2024/05/05 23:42

四个cmdlet用户格式化输出。

 

Format-List

Format-Custom

Format-Table

Format-Wide

 

例如:  get-service | format-list  -property  *         gwmi win32_share | format-table -property name,status,Path

(get-service schedule).stop()  ---- 这是调用 schedule 这个服务的一个方法

 

 

 

文件系统

Set-Location,  Get-Item, Get-Childitem, New-Item, Remove-Item, Set-Item, Move-Item, and Copy-Item

原创粉丝点击