Modify GPO



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?

.



Relevant Pages

  • Re: A few questions
    ... > as a wallpaper over GPO. ... > Policy) not the GPO for domain controllers. ... > 1) I setup a mandatory profile for the library patrons. ... However, when I was trying to modify the GPO, I was ...
    (microsoft.public.windows.server.general)
  • Re: A few questions
    ... As to the GPO issue, I would like to check the policy applied through ... |> as a wallpaper over GPO. ... However, when I was trying to modify the GPO, I was ...
    (microsoft.public.windows.server.general)
  • RE: A few questions
    ... wallpaper will not load up when the user logs on. ... I would like the set up the Parent Control on the OU's GPO so that I can ... modify the GPO without changing the Server's IE setting? ... | wallpaper will not load up when the user logs on. ...
    (microsoft.public.windows.server.general)
  • RE: Disable XP firewall with GPO
    ... truncated" error message when you try to modify or to view GPOs in Windows ... > firewall on install using the GPO. ... > Microsoft Product Support Services to allow you to modify Group Policy ...
    (microsoft.public.win2000.active_directory)
  • A few questions
    ... I would like the set up the Parent Control on the OU's GPO so that I can ... modify the GPO without changing the Server's IE setting? ... Can I assign a user who does not belong to administrators to ...
    (microsoft.public.windows.server.general)