PC Review


Reply
Thread Tools Rate Thread

Add path via Group Policy

 
 
=?Utf-8?B?SmFuTGlzYmplcmc=?=
Guest
Posts: n/a
 
      10th Nov 2006
Hi

I need to add an extra path to the path on all my domain computers.

The computers allready have a path:
"%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem"
(Found in registry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment] )

I need to add an extra path (c:\pctools) to that.

I tried with a .reg file, but I can't get it to add to what is allready in
the key - it replaces the old value with the new, but I need it to add the
new to the old

..reg file that sets the path to c:\pctools:
"REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment]
"Path"= hex(2):63,3a,5c,70,63,74,6f,6f,6c,73"

Is there an easier way of doing this by GP, or how can I get it to add my
path instead of replacing it via the .reg file ?

 
Reply With Quote
 
 
 
 
Mark Heitbrink [MVP]
Guest
Posts: n/a
 
      10th Nov 2006
Hi,

JanLisbjerg schrieb:
> I need to add an extra path to the path on all my domain computers.
> [...]


http://www.gruppenrichtlinien.de/adm/Beispiele.htm
6. Path – Erweiterung der vorhandenen Pfadangabe, computerspezifisch

Replace the Text to your Language ;-)

Mark
--
Mark Heitbrink - MVP Windows Server - Group Policy

Homepage: www.gruppenrichtlinien.de - deutsch
Blog: gpupdate.spaces.live.com - english
 
Reply With Quote
 
=?Utf-8?B?SmFuTGlzYmplcmc=?=
Guest
Posts: n/a
 
      10th Nov 2006
Hi Mark

My german is not so good, but dosen't:
"Achtung! Vorhandene Pfade werden durch diese Angabe komplett ersetzt"
mean, that my existing path will be replaced ?

Also I get an error when trying to import the text to a GP via an .inf file.

Regards

Jan

"Mark Heitbrink [MVP]" wrote:

> Hi,
>
> JanLisbjerg schrieb:
> > I need to add an extra path to the path on all my domain computers.
> > [...]

>
> http://www.gruppenrichtlinien.de/adm/Beispiele.htm
> 6. Path – Erweiterung der vorhandenen Pfadangabe, computerspezifisch
>
> Replace the Text to your Language ;-)
>
> Mark
> --
> Mark Heitbrink - MVP Windows Server - Group Policy
>
> Homepage: www.gruppenrichtlinien.de - deutsch
> Blog: gpupdate.spaces.live.com - english
>

 
Reply With Quote
 
=?Utf-8?B?SmFuTGlzYmplcmc=?=
Guest
Posts: n/a
 
      10th Nov 2006
Couldn't wait, so I found the answer myself.

Script:

strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery _
("Select * From Win32_Environment Where Name = 'Path'")

For Each objItem in colItems
strPath = objItem.VariableValue & ";C:\Scripts\"
objItem.VariableValue = strPath
objItem.Put_
Next

located here:
http://www.microsoft.com/technet/scr...6/hey0828.mspx
 
Reply With Quote
 
Mark Heitbrink [MVP]
Guest
Posts: n/a
 
      10th Nov 2006
Hi,

JanLisbjerg schrieb:
> My german is not so good, but dosen't:
> "Achtung! Vorhandene Pfade werden durch diese Angabe komplett ersetzt"
> mean, that my existing path will be replaced ?


Absulotly, yes.

> Also I get an error when trying to import the text to a GP via an .inf file.


It´s an ADM you can import on "Admininstrative Templates"

Mark
--
Mark Heitbrink - MVP Windows Server - Group Policy

Homepage: www.gruppenrichtlinien.de - deutsch
Blog: gpupdate.spaces.live.com - english
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Group Policy: Default Download Path =?Utf-8?B?RGVyZWsgRGEgU2lsdmE=?= Windows XP Security 1 11th Sep 2007 09:10 PM
change My documnets path in Group Policy =?Utf-8?B?Um9i?= Microsoft Windows 2000 1 8th Nov 2004 04:55 PM
Group Policy cannot set desktop icon path =?Utf-8?B?TWF0dGhldyBXb29kcnVmZg==?= Microsoft Windows 2000 Terminal Server Applications 3 30th Oct 2004 10:15 PM
Modify installation path SW Group policy WADE Microsoft Windows 2000 Group Policy 1 4th Nov 2003 11:34 PM
Profile Path with Group Policy Problem kwtsui Microsoft Windows 2000 Active Directory 0 26th Aug 2003 03:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 AM.