PowerShell基本使用
PowerShell基本使用
入门
1 | Get-Alias #输出内置别名 |
基本概念
1 | Set-StrictMode -Version Latest #启用严格模式 写脚本用 交互无所谓 |
组合命令
1 | $serviceName='wuauserv' |
控制流
1 | #远程计算机文件读取 |
错误处理
1 | #错误转换成中执行错误 |
函数
1 | function Install-Software{ |
模块
1 | Get-Module #查看导入的模块 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 The Blog of Monoceros406!