In powershell module 有個pswindowsUpdate module
給你可以用來做windows update
get-wulist
install-windowsupdate -acceptall -reboot
但是remote run as admin 會access denied
winrm over https? 好像也不成
後來發覺 JEA 可以.
首先可以用DSC deploy JEA ,
- 我現在是copy script and pswindowsupdate moduel 到 target Server
- 再invoke-command register-pssessionconfiguration
- 之後再invoke-command -configurationame 去做 windows update
- 之後再invoke-command unregister-pssessionconfiguration
中間有testing and check backup as well
留言
發佈留言