Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Adding System Variable via active directory ADM

Thread Tools
 
Search this Thread
 
Old 26 March 2009, 09:56 AM
  #1  
mike1210
Scooby Regular
Thread Starter
 
mike1210's Avatar
 
Join Date: Apr 2004
Location: Cardiff
Posts: 1,928
Likes: 0
Received 0 Likes on 0 Posts
Default 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
Old 26 March 2009, 11:29 AM
  #2  
hodgy0_2
Scooby Regular
 
hodgy0_2's Avatar
 
Join Date: Jul 2008
Location: K
Posts: 15,633
Received 21 Likes on 18 Posts
Default

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,
Old 26 March 2009, 11:50 AM
  #3  
mike1210
Scooby Regular
Thread Starter
 
mike1210's Avatar
 
Join Date: Apr 2004
Location: Cardiff
Posts: 1,928
Likes: 0
Received 0 Likes on 0 Posts
Default

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 ----
Old 26 March 2009, 03:49 PM
  #4  
hodgy0_2
Scooby Regular
 
hodgy0_2's Avatar
 
Join Date: Jul 2008
Location: K
Posts: 15,633
Received 21 Likes on 18 Posts
Default

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

Last edited by hodgy0_2; 26 March 2009 at 03:50 PM.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
crazyspeedfreakz
Wanted
17
05 October 2015 07:19 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM
timmy2take
Non Scooby Related
2
02 October 2015 08:09 AM
sedge69
Wanted
0
01 October 2015 09:44 PM
Wurzel
Computer & Technology Related
10
28 September 2015 12:28 PM



Quick Reply: Adding System Variable via active directory ADM



All times are GMT +1. The time now is 11:11 PM.