Re: Modify GPO
- From: "asdf" <asdf@xxxxxxxx>
- Date: Sun, 21 Jan 2007 07:19:23 -0500
"I do not have access to the domain controller"
---------------
Don't use registry 'binary' inserts.
-----------------
Which is the most likely next affair of discussion,
should it fail to succeed across versions.
------------------
If this were the intend of the vendor,
he should be punished - again..
<chris.harrod@xxxxxxxxx> wrote in message
news:1169056645.328073.156410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I do not have access to the domain controller but I'm trying to modify
the GPO or assign a logoff script to all clients on my network.
I attempted to do this through the registry (assign a logoff script)
but was roadblocked when I found out I couldn't enter a QWORD value.
Apparently the function SetQWORDValue is built into WMI but it doesn't
work unless you're using Vista. So my ugly GPO registry hack won't
work. I know it's an ugly hack, but that's okay =]
const HKEY_CURRENT_USER = &H80000001
Set StdOut = WScript.StdOut
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &
strComputer & "\root\default:StdRegProv")
strKeyPath =
"SOFTWARE\Policies\Microsoft\Windows\System\Scripts\Logoff\1\1"
objReg.CreateKey HKEY_CURRENT_USER,strKeyPath
strValueName = "ExecTime"
strValue = "hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00"
objReg.SetQWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue
A also can't modify the machines' GPO through WSH/WMI to my knowledge.
Does anyone have a direction to point me in?
.
- References:
- Modify GPO
- From: chris . harrod
- Modify GPO
- Prev by Date: Re: WSF Format Specification?
- Next by Date: We are the greatest
- Previous by thread: Modify GPO
- Next by thread: WSF Format Specification?
- Index(es):
Relevant Pages
|