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 Mar 26, 2009 | 09:56 AM
  #1  
mike1210's Avatar
mike1210
Thread Starter
Scooby Regular
 
Joined: Apr 2004
Posts: 1,928
Likes: 0
From: Cardiff
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
Reply
Old Mar 26, 2009 | 11:29 AM
  #2  
hodgy0_2's Avatar
hodgy0_2
Scooby Regular
15 Year Member
Liked
Loved
Community Favorite
 
Joined: Jul 2008
Posts: 15,634
Likes: 22
From: K
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,
Reply
Old Mar 26, 2009 | 11:50 AM
  #3  
mike1210's Avatar
mike1210
Thread Starter
Scooby Regular
 
Joined: Apr 2004
Posts: 1,928
Likes: 0
From: Cardiff
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 ----
Reply
Old Mar 26, 2009 | 03:49 PM
  #4  
hodgy0_2's Avatar
hodgy0_2
Scooby Regular
15 Year Member
Liked
Loved
Community Favorite
 
Joined: Jul 2008
Posts: 15,634
Likes: 22
From: K
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; Mar 26, 2009 at 03:50 PM.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
crazyspeedfreakz
Wanted
17
Oct 5, 2015 07:19 PM
Ganz1983
Subaru
5
Oct 2, 2015 09:22 AM
timmy2take
Non Scooby Related
2
Oct 2, 2015 08:09 AM
sedge69
Wanted
0
Oct 1, 2015 09:44 PM
Wurzel
Computer & Technology Related
10
Sep 28, 2015 12:28 PM




All times are GMT +1. The time now is 06:15 AM.