Disabling USB ports using PowerShell by modifying registry
values.
How to user PowerShell to modify an existing value in
Windows Registry?
PowerShell code below modifies the registry value and
disable USB ports in Windows.
The code must be run in an elevated mode to modify the
registry.
Here's the code:
Modify the registry key value using PowerShell:
Set-ItemProperty -Path
"HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR\" -Name
"start" -Value 4
To enable the USB ports, change the value to 3:
Set-ItemProperty -Path
"HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR\" -Name
"start" -Value 3
Disabling USB ports is quite annoying of course, but if security is a concern then I guess it is justifiable especially computers that can easily be accessed by unwanted guests or individuals.
It will also protect the network or computers from getting malware's or viruses that is transferred or copied via USB storage.
http://quickbytesstuff.blogspot.sg/2014/09/how-to-recite-rosary.html
It will also protect the network or computers from getting malware's or viruses that is transferred or copied via USB storage.
Cheers! Till next time.
================================
Free Android Apps:
Click on links below to find out more:
Multiplication Table for early learners
https://play.google.com/store/apps/details?id=com.TableMultiplication
Catholic Rosary Guide for Android:
Pray the Rosary every day, countless blessings will be showered upon your life if you recite the Rosary faithfully.
https://play.google.com/store/apps/details?id=com.myrosaryapp
https://play.google.com/store/apps/details?id=com.myrosaryapp
Comments
Post a Comment