cmd:
解除powershell 脚本执行权限
powershell -noprofile Set-ExecutionPolicy Unrestricted
powershell 下载文件 执行文件
$client = new-object System.Net.WebClient
$client.DownloadFile(\'\\DW-PC\Users\sd\xx.msi\', \'D:\1.msi\')
D:\1.msi /q
部署到域中执行
cmd:
解除powershell 脚本执行权限
powershell -noprofile Set-ExecutionPolicy Unrestricted
powershell 下载文件 执行文件
$client = new-object System.Net.WebClient
$client.DownloadFile(\'\\DW-PC\Users\sd\xx.msi\', \'D:\1.msi\')
D:\1.msi /q
部署到域中执行
相关文章: