Re: Script to create GPO link on OU

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 10/22/04


Date: Fri, 22 Oct 2004 17:33:10 +0200

Rodolphe Capodicasa wrote:

> Hi,
>
> Someone knows how to create a GPO link on a specified OU in AD.
> I know that is not complicate with WSH, but I don't find how to...
Hi

Go to http://rallenhome.com/books.html and select "Download Code"
under the "Active Directory Cookbook" title.

See script example "9.12. Creating a GPO link to an OU"

You need to have Group Policy Management Console (GPMC) installed
for that script to work.

http://www.microsoft.com/windowsserver2003/gpmc/default.mspx

Note this one:

Frequently Asked Questions About the Group Policy Management Console
http://www.microsoft.com/windowsserver2003/gpmc/gpmcfaq.mspx

<quote>
Q.
What are the system requirements?

A.
The GPMC can manage both Windows 2000 and Windows Server 2003
domains with Active Directory. In either case, the computer on
which the tool itself runs must have:

Windows Server 2003 or

Windows XP Professional with Service Pack 1 (SP1)
and the Microsoft .NET Framework.

</quote>

WinXP SP2 will of course also work fine.

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Relevant Pages

  • Re: Printer Admin Object
    ... and ports on local and remote computers. ... Add and delete a local or remote printer. ... Instrumentation scripts in Windows Server 2003, ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: auto shutdown
    ... script will do a reboot of the remote computer. ... If you want a forced shutdown, ... You can find peer-to-peer support for Scripting technologies in the Windows Server Scripting newsgroup. ...
    (microsoft.public.windowsxp.basics)
  • Re: Disabling old account script needed
    ... When the domain functional level has been set to Windows Server 2003, a new lastLogonTimestamp attribute is used to track the last logon time of a user or computer account. ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windows.server.active_directory)
  • Re: ~~Auto logoff when Inactivates for 5 mins
    ... Windows Server 2003 Resource Kit Tools ... off or shuts the computer down after a set amount of idle time (the ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.win2000.general)
  • Re: Timed log off
    ... Windows Server 2003 Resource Kit Tools ... How can I use the WinExit screen saver without granting Admin rights? ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.win2000.general)