Adding System Variable via active directory ADM
#1
Scooby Regular
Thread Starter
Join Date: Apr 2004
Location: Cardiff
Posts: 1,928
Likes: 0
Received 0 Likes
on
0 Posts
Adding System Variable via active directory ADM
Hi all,
I am trying to add a system variable via group policy with the name "AVTEST" and value "KASPERSKYLAB". This must be permanently added on the machine, so far I've found this on the net
; http://www.gruppenrichtlinien.de/adm/temp.txt
; you have to edit policy, part and valuename
; you can extend the ADM by adding further parts
CLASS USER
CATEGORY "Userspecific Environment Variables (SET)"
POLICY "Rename it to your settings ..." Kasper
KEYNAME "Environment"
PART "Set Name of your var =" AVTEST
VALUENAME KASPERSKYLAB
END PART
END POLICY
END CATEGORY
But I think this is a user variable, importing gives me errors
anyone know the changes to make or have made one in the past
I am trying to add a system variable via group policy with the name "AVTEST" and value "KASPERSKYLAB". This must be permanently added on the machine, so far I've found this on the net
; http://www.gruppenrichtlinien.de/adm/temp.txt
; you have to edit policy, part and valuename
; you can extend the ADM by adding further parts
CLASS USER
CATEGORY "Userspecific Environment Variables (SET)"
POLICY "Rename it to your settings ..." Kasper
KEYNAME "Environment"
PART "Set Name of your var =" AVTEST
VALUENAME KASPERSKYLAB
END PART
END POLICY
END CATEGORY
But I think this is a user variable, importing gives me errors
anyone know the changes to make or have made one in the past
#2
Scooby Regular
don't you need it adding to the computer section of the adm not the user section
cant you test the syntax outside the delivery mechanism
i.e ADM and GP is just the delivery mechanism you should be able to confirm the actual syntax by running it from a workstation,
cant you test the syntax outside the delivery mechanism
i.e ADM and GP is just the delivery mechanism you should be able to confirm the actual syntax by running it from a workstation,
#3
Scooby Regular
Thread Starter
Join Date: Apr 2004
Location: Cardiff
Posts: 1,928
Likes: 0
Received 0 Likes
on
0 Posts
good point yeah i think this is closer to the mark
---- set.adm ----
CLASS MACHINE
CATEGORY "Environment"
POLICY "Self dfined variables"
KEYNAME "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
PART "Set MyVar1 =" EDITTEXT
DEFAULT "MyValue1"
VALUENAME MyVar1 ; EXPANDABLETEXT
; add expandabletext if it can contain Variables itself
END PART
END POLICY
END CATEGORY
---- set.adm ----
---- set.adm ----
CLASS MACHINE
CATEGORY "Environment"
POLICY "Self dfined variables"
KEYNAME "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
PART "Set MyVar1 =" EDITTEXT
DEFAULT "MyValue1"
VALUENAME MyVar1 ; EXPANDABLETEXT
; add expandabletext if it can contain Variables itself
END PART
END POLICY
END CATEGORY
---- set.adm ----
#4
Scooby Regular
looks better
at the end of the day all the adm is doing is modifying a reg key
I always look at it as a two step process
i.e. how do I modify the key -- getting the delivery right
then getting the correct modification to work -- the payload
these can be looked at as two different pieces of work and delevoped independently of each other-- then when both work as expected you just combine them
at the end of the day all the adm is doing is modifying a reg key
I always look at it as a two step process
i.e. how do I modify the key -- getting the delivery right
then getting the correct modification to work -- the payload
these can be looked at as two different pieces of work and delevoped independently of each other-- then when both work as expected you just combine them
Last edited by hodgy0_2; 26 March 2009 at 03:50 PM.
Thread
Thread Starter
Forum
Replies
Last Post
crazyspeedfreakz
Wanted
17
05 October 2015 07:19 PM