Solved

Issue create user variables to mass users

Posted on 2014-03-18
6
204 Views
Last Modified: 2014-07-22
I am a site administrator. I have a package on some workstations that require the following variables for the current user thats logged in. Can anybody write me a script that creates

Under Advanced > Environment Variables click on edit and input as per below:

User Variable > NEW > 
variable name: TZ
Variable value GMT0
 
System Variable > NEW > 
variable name:TZ
Variable value GMT0

I want a script that takes a list of hostnames and creates these variables for anybody that has a profile with that workstation.

Please let me know :) Final machines are windows 7 64bit.

Dan"
0
Comment
Question by:ottersond
6 Comments
 
LVL 7

Expert Comment

by:BT15
ID: 39937079
are the machines in a domain? you can do this with GPO, I believe. Furthermore, what is your reasoning behind creating a user variable AND a system variable of the same name?
0
 

Author Comment

by:ottersond
ID: 39937100
yeah, they are on a domain but I'm not sure if I can release that to you. The program has to been coded to look for these 2 variables or it will just crash out.. So Group policies should do the trick??
0
 
LVL 62

Expert Comment

by:gheist
ID: 39940962
You can import a .reg file to remote registry (or 10 remote registries at once)
0
 
LVL 7

Accepted Solution

by:
BT15 earned 500 total points
ID: 39942843
yes GPO would do it.

make a new GPO (or modify one attached you the AD container your computers are in) If you open it for editing you will see an item called ENVIRONMENT under ComputerConfiguration/Preferences/Windows Settings.

There is one under User Configuration/Preferences/Window Settings called environment also.

Creating your entries there and refreshing GPO should work. (GPUPDATE /force)
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 40211064
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question