powershell ps1 startup script doesn't work
hi friends
in test lab , have dc (win2008 r2) , member servers ( win2008 r2) , need install roles , features on servers centrally ( via domain group policy startup scripts )
in gpmc.msc--> default domain policy--> startup scripts--> powershell scripts , assigned myscript.ps1 contains cmdlets :
import-module servermanager
add-windowsfeature telnet-server,telnet-client,wireless-networking
but after restart member servers , features (telnet-server,telnet-client,wireless-networking) haven't been installed.
even have ran command in member servers : set-executionpolicy unrestricted
what problem plz ?
thanks in advance
try set-executionpolicy bypass.
this make sure script started unc path work.
---
tompa
http://tompaps.blogspot.com
Windows Server > Windows PowerShell
Comments
Post a Comment