Registry Group Policies - Programmatically Setting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I need to programmatically set a group policy value under the following path:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun

Can you point me to articles that describe a step-by-step procedure for
handling the security on this registry path?

Thanks
John H.S.
 
Hi John,

Disable CD AutoPlay for Home or Pro (Line 3)
http://www.kellys-korner-xp.com/xp_tweaks.htm

Enable CD Autorun for Pro (Line 10)
http://www.kellys-korner-xp.com/xp_tweaks.htm

If you are using TweakUI/My Computer/AutoPlay
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp

To Disable CD Autoplay in Windows XP Pro

[1] Start/Run/GPEDIT.MSC
[2] Computer Configuration/Administrative Templates/System.
[3] Locate the entry for Turn Off Autoplay and modify.

Added info:

To Disable CD autoplay, completely, in Windows XP Home

Click Start, Run and enter REGEDIT Then go to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer

Create a new value called: NoDriveTypeAutoRun
Type is: DWORD
Value is: 0x000000b5 (181)

HKEY CURRENT
USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

Name: NoDriveTypeAutoRun
Type: REG_DWORD

If NoDriveTypeAutoRun does not exist, create it and
set its value to 145 (decimal).

If it does exist, and its value is not set to 145 (decimal),
change it to that value.

OR

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:0x000000FF

Even more:

Start/Run/Regedit

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet\Services\Cdrom
AutoRun = 1

--

All the Best,
Kelly (MS-MVP)

Troubleshooting Windows XP
http://www.kellys-korner-xp.com
 
Hello Kelly,

Thanks for the information. However, my problem is getting around the
secuirty issues associated with the

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer

path. I need the steps for successfully navigating those security obstacles.
Any suggestions would be welcomed!

thanks
John H.S.




Kelly said:
Hi John,

Disable CD AutoPlay for Home or Pro (Line 3)
http://www.kellys-korner-xp.com/xp_tweaks.htm

Enable CD Autorun for Pro (Line 10)
http://www.kellys-korner-xp.com/xp_tweaks.htm

If you are using TweakUI/My Computer/AutoPlay
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp

To Disable CD Autoplay in Windows XP Pro

[1] Start/Run/GPEDIT.MSC
[2] Computer Configuration/Administrative Templates/System.
[3] Locate the entry for Turn Off Autoplay and modify.

Added info:

To Disable CD autoplay, completely, in Windows XP Home

Click Start, Run and enter REGEDIT Then go to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer

Create a new value called: NoDriveTypeAutoRun
Type is: DWORD
Value is: 0x000000b5 (181)

HKEY CURRENT
USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

Name: NoDriveTypeAutoRun
Type: REG_DWORD

If NoDriveTypeAutoRun does not exist, create it and
set its value to 145 (decimal).

If it does exist, and its value is not set to 145 (decimal),
change it to that value.

OR

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:0x000000FF

Even more:

Start/Run/Regedit

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet\Services\Cdrom
AutoRun = 1

--

All the Best,
Kelly (MS-MVP)

Troubleshooting Windows XP
http://www.kellys-korner-xp.com


John H. Smith said:
Hello,

I need to programmatically set a group policy value under the following
path:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun

Can you point me to articles that describe a step-by-step procedure for
handling the security on this registry path?

Thanks
John H.S.
 
John said:
Hello Kelly,

Thanks for the information. However, my problem is getting around the
secuirty issues associated with the

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer

path. I need the steps for successfully navigating those security obstacles.
Any suggestions would be welcomed!
Hi,

Different RunAs products listed here, some with encryption
option for the password:

http://groups.google.co.uk/[email protected]

Other ones not mentioned in the link above:

SUperior SU (free, has a command line iterface)
http://www.stefan-kuhr.de/supsu/main.php3

LSrunas/LSrunasE (the latter with password encryption)
http://www.linkselection.com/lsrunas.asp

You may also want to check out PolicyMaker Application Security
(previously NeoExec), the main difference is that it does not require
the use of a second account, as most other RunAs derivatives requires.

PolicyMaker Application Security
http://www.desktopstandard.com/PolicyMakerApplicationSecurity.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top