?
Solved

VBScript to disable write access for USB and CD-ROM drives for Windows 7

Posted on 2012-04-11
4
Medium Priority
?
1,469 Views
Last Modified: 2012-06-21
I am looking for a VBScript to disable write access only for USB and CD-ROM drives for Windows 7

Thanks.
0
Comment
Question by:rogersgw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 14

Expert Comment

by:shahzoor
ID: 37835325
you can do it easily using group policy
gpedit.msc
0
 

Author Comment

by:rogersgw
ID: 37835369
Yes, but I am trying to automate this process and not use Group Policy for each machine.  We cannot add this to the domain.
0
 
LVL 2

Accepted Solution

by:
antlowe earned 2000 total points
ID: 37835861
do you want them to still be able to read from the devices?

The below text if copied into notepad and saved as a .reg should achieve that for you.
as for pushing it out, im assuming you have a list of computers you want to run it on.

in which case its a simple script to run though each computer and apply the regkey.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
“WriteProtect”=dword:00000001
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoCDWriting"=dword:00000001
0
 

Author Closing Comment

by:rogersgw
ID: 37836124
Great work, thanks.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

752 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