Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cant ping a windows 10 computer 12 56
Reinstall Putty Windows 7 5 47
iPhone excel activation issues 11 70
most reliable laptop brand in 2016~ 8 28
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
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 viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

920 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

13 Experts available now in Live!

Get 1:1 Help Now