Advertisement
Rick0

REGRAS_FIREWALL

Apr 1st, 2020
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $Rules=(New-object –comObject HNetCfg.FwPolicy2).rules
  2. $Rules | export-csv test.csv -Delimiter ',' -Nti
  3.  
  4. ::bloquear usb usuario local
  5. REG ADD "HKCU\Software\Policies\Microsoft\Windows\RemovableStorageDevices" /v "Deny_All" /t REG_DWORD /d 1 /f > nul
  6. REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices" /v "Deny_All" /t REG_DWORD /d 1 /f > nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement