Avatar of PAGANED
PAGANED
Flag for United States of America asked on

GPO Edit Registry Script - Create a new Script

I want to make a script that edits the Registry of the user workstations
.
30 users = Win XP sp3
.
I am a VB programmer but have not ever tried to make a windows script
.
Objective1:  Desktop Display Proteries Window : Disable/Hide all tabs EXCEPT for 'Settings Tab'
Objective2: Place in a GPO to execute on workstation startup
.
I have confirmed that a manual entry of the registry works
.
Here are the registry parts:

--------  START SCRIPT  ----------------------------------
strKeyPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System"

strDWORDValueNameTheme = "NoDispThemesPage"
strDWORDValueNameDesktop = "NoDispBackgroundPage"
strDWORDValueNameScreenSaver = "NoDispScrSavPage"
strDWORDValueNameAppearance = "NoDispAppearancePage"

intDWORDValueData = 1
--------------  END SCRIPT  --------------
Windows Server 2008Windows XP

Avatar of undefined
Last Comment
PAGANED

8/22/2022 - Mon
NJComputerNetworks

you can use a STARTUP or shutdown script in a GPO to launch your VBS script...  Group Policy Scripts Extension Overview
The Group Policy infrastructure includes a Scripts extension that consists of the following components:

A Microsoft Management Console (MMC) server-side extension of the Group Policy Object Editor MMC snap-in that is used for administering and configuring scripts. The administrator uses the scripts extension to specify scripts policy settings in a Group Policy object (GPO), and then links the GPO to the site, domain, or organizational unit to which the administrator wants to assign the scripts.

The Group Policy Object Editor snap-in includes two extensions for script deployment:

Scripts (Startup/Shutdown). Administrators use this extension to specify scripts that run when the computer starts up or shuts down. These scripts run as Local System. Scripts (Startup/Shutdown) is located under the Computer Configuration\Windows Settings node of Group Policy Object Editor.

Scripts (Logon/Logoff). Administrators use this extension to specify scripts that run when the user logs on or logs off the computer. These scripts run as User, not as Administrator. Scripts (Logon/Logoff) is located under the User Configuration\Windows Settings node of Group Policy Object Editor.

A client-side extension, which is a dynamic-link library (DLL) on the client computer that interacts with the Group Policy infrastructure and implements Group Policy scripts on the client computer. A separate process called Userinit.exe runs the scripts.


something like this:  http://windows.stanford.edu/Public/Infrastructure/localgroup.html

http://technet.microsoft.com/en-us/library/cc179134.aspx

http://blogs.technet.com/odsupport/archive/2009/12/17/how-to-deploy-a-patch-using-a-startup-script-via-gpo.aspx

PAGANED

ASKER
.
I was not clear on what I am looking for
.
I know how to put a script into a GPO
But what I have never done is create a script.
.
I have the registry path
I have the registry DWORD items
I have the DWORD value
.
How do I make a script ?
Can you make a script out of the registry entries, so that I can see it and learn from it ?
.
NJComputerNetworks

in this case, I would not use vbscript... instead create a custom template and use GPO:  http://grouppolicy.editme.com/AdminTemplates

I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
johnb6767

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
NJComputerNetworks

true...
NJComputerNetworks

PAGANED

ASKER
.
Ok Johnb6767  :  thank you .  I will do that.
Works perfectly for GPO.
.
But could someone make a script out of my information so that I may still learn about creating them in the future ?
.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
NJComputerNetworks

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
PAGANED

ASKER
EXCELLENT !
.
I really LIke Sesame Script !
.
.
PAGANED

ASKER
First :  always look for a GPO , it's probably there

Second : Ask someone else to look for a GPO that you couldnt find

THIRS : Scripting is kinda fun. I'm so used to complicated VB code that Scripting seems so simple.