Windows 10: PowerShell script to disable/enable usb storage in windows

Discus and support PowerShell script to disable/enable usb storage in windows in Windows 10 Gaming to solve the problem; Hello,can someone please help me with a PowerShell script, which will disable usb storage.requirements:1 everything should be done through PowerShell... Discussion in 'Windows 10 Gaming' started by Nis_1998, Jan 18, 2023.

  1. Nis_1998 Win User

    PowerShell script to disable/enable usb storage in windows


    Hello,can someone please help me with a PowerShell script, which will disable usb storage.requirements:1 everything should be done through PowerShell script2 already installed usb should not be accessible 3 not ready to install any 3rd party application4 Restarting pc is not recommendedi tried this "Set-ItemProperty -Path "HKLM:SYSTEMCurrentControlSetServicesUSBSTOR" -Name "start" -Value 4"but it is not working.

    :)
     
    Nis_1998, Jan 18, 2023
    #1

  2. USB removable storage disable by powershell script

    Hello All,

    I want to disable the usb removable storage of the network computers (domain and non-domain) from my computer. But i need powershell script which will disable the usb removable storage of mentioned computer list but through the local group policy not thorough
    regedit of that computer also not through the GPO which is in server OS.

    Please help me. Thank You.
     
    JagdishPatil_4994, Jan 18, 2023
    #2
  3. [CarlS] Win User
    USB removable storage disable by powershell script

    Hi JadishPatil_4994,

    My name is Carl and I am an independent Windows 10 advisor.

    What you want is not possible with those constraints without using third-party software.

    Group Policy is basically a front end and all it does is add or modifies registry entries. So if you are saying you want to do it without modifying the registry then you'd have to go on to each PC and disable the USB controller in the BIOS.

    If you created a powershell script with the following:

    Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR\" -Name "start" -Value 4

    That would disable USB on the machine but, as you can see, it modifies the registry which is exactly what Group Policy would do.

    Hope this helps.

    Kind regards,

    Carl.
     
    [CarlS], Jan 18, 2023
    #3
  4. [CarlS] Win User

    PowerShell script to disable/enable usb storage in windows

    USB removable storage disable by powershell script

    Hi

    You’d need credentials for the remote machines (at an administrative level) and then you could use a command to remotely connect to the PowerShell:

    Enter-PSSession Computername_Here

    I’ve attached a link below that will explain it better than I can:

    https://docs.microsoft.com/en-us/powershell/scr...

    Hope this helps

    Kind regards,

    Carl.
     
    [CarlS], Jan 18, 2023
    #4
Thema:

PowerShell script to disable/enable usb storage in windows

Loading...
  1. PowerShell script to disable/enable usb storage in windows - Similar Threads - PowerShell script disable

  2. PowerShell script to disable/enable usb storage in windows

    in Windows 10 Software and Apps
    PowerShell script to disable/enable usb storage in windows: Hello,can someone please help me with a PowerShell script, which will disable usb storage.requirements:1 everything should be done through PowerShell script2 already installed usb should not be accessible 3 not ready to install any 3rd party application4 Restarting pc is not...
  3. PowerShell script to disable/enable usb storage in windows

    in Windows 10 Drivers and Hardware
    PowerShell script to disable/enable usb storage in windows: Hello,can someone please help me with a PowerShell script, which will disable usb storage.requirements:1 everything should be done through PowerShell script2 already installed usb should not be accessible 3 not ready to install any 3rd party application4 Restarting pc is not...
  4. Enabling/Disabling USB

    in Windows 10 Gaming
    Enabling/Disabling USB: Hello, I am trying to find the status of my USB ports and then disable the port. The command I have used is: Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR\" -Name "start" -Value 4 This command is not disabling the USB port, but the registry is being...
  5. Enabling/Disabling USB

    in Windows 10 Software and Apps
    Enabling/Disabling USB: Hello, I am trying to find the status of my USB ports and then disable the port. The command I have used is: Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR\" -Name "start" -Value 4 This command is not disabling the USB port, but the registry is being...
  6. Enabling/Disabling USB

    in Windows 10 Drivers and Hardware
    Enabling/Disabling USB: Hello, I am trying to find the status of my USB ports and then disable the port. The command I have used is: Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR\" -Name "start" -Value 4 This command is not disabling the USB port, but the registry is being...
  7. PowerShell script

    in Windows 10 Support
    PowerShell script: The code below tests a series of IPs in a txt file.The result is as follows and is written in a txt file. 19.191.12.161 - online 19.191.12.162 - offline 19.191.12.163 - offline 19.191.12.164 - offline 19.191.12.165 - offline also see the scrennshot Code: $Output= @()$GetIP =...
  8. USB removable storage disable by powershell script

    in Windows 10 Drivers and Hardware
    USB removable storage disable by powershell script: Hello All, I want to disable the usb removable storage of the network computers domain and non-domain from my computer. But i need powershell script which will disable the usb removable storage of mentioned computer list but through the local group policy not thorough...
  9. WINDOWS DEFENDER EXPLOIT PROTECTION POWERSHELL SCRIPTS TO ENABLE OR DISABLE PROCESS...

    in AntiVirus, Firewalls and System Security
    WINDOWS DEFENDER EXPLOIT PROTECTION POWERSHELL SCRIPTS TO ENABLE OR DISABLE PROCESS...: I am sharing some PowerShell scripts to enable migration process components at system level Just open WINDOWS POWERSHELL run as administrator and enter the following commands to enable Set-ProcessMitigation System -enable AllowStoreSignedBinaries...
  10. WINDOWS DEFENDER EXPLOIT PROTECTION POWERSHELL SCRIPTS TO ENABLE OR DISABLE PROCESS...

    in AntiVirus, Firewalls and System Security
    WINDOWS DEFENDER EXPLOIT PROTECTION POWERSHELL SCRIPTS TO ENABLE OR DISABLE PROCESS...: I am sharing some PowerShell scripts to enable migration process components at system level Just open WINDOWS POWERSHELL run as administrator and enter the following commands to enable Set-ProcessMitigation System -enable AllowStoreSignedBinaries...