Solved

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

Posted on 2012-04-11
4
1,446 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
  • 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 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
This collection of functions covers all the normal rounding methods of just about any numeric value.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now