remoting enabling execution of ps scripting


hello,

just couple of simple questions. i'm quite new powershell , need find way achieve this:

this scenario: windows 2003 ad. manage public pcs (with windows 7) have major restrictions (no control panel, no regisrty tools, no right click on computer, no way of modyfing anything). reasons cannot explain here there no possibility of using domain gpos. restrictions achieved local gpos have been set @ moment of creating master image of these pcs (that deployed sccm 2007 osd).

i need modify value in registry key enable features of network card (for wol purposes), but, since registry editing disabled, there no way of doing batch file or reg file. so, manually modify local gpo enable registry modification , that's it. need deploy these changes 200 or more pcs. powershell can achieve , manually worked fine. so, need is:

- script can deployed silently these pcs change executionpolicy of powershell, perfom necessary registry value change , restore original value of executionpolicy

- these windows 7 machine have uac disabled

what i'm asking it's not script, can manage on own, hint on how achieve need, maybe i'm missing something...

thank much,

 

powershell.exe has parameter executionpolicy, can specify policy when start powershell. in case perhaps helpful:
powershell.exe -executionpolicy bypass -file "script.ps1"

run powershell /? see available parameters. 

 


andreas hultgren
mcts, mcitp
http://ahultgren.blogspot.com/


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file