Guest User

Untitled

a guest
Apr 3rd, 2016
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. rem ========================= Windows Network =========================
  2. rem To get adapter's index number use command:
  3. wmic nicconfig get caption,index,TcpipNetbiosOptions
  4.  
  5. rem Setup IP and Gateway (To Enable DHCP: wmic nicconfig where index=0 call enabledhcp)
  6. wmic nicconfig where index=0 call enablestatic("10.10.10.20"), ("255.255.255.0")
  7. wmic nicconfig where index=0 call setgateways("10.10.10.10")
  8.  
  9. rem ========================= Windows Desktop =========================
  10. rem Hide Network
  11. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d "1" /f
  12.  
  13. rem ========================= Windows Services =========================
  14.  
  15. rem DNS Client (Required by the internet connection, unless you set up DNS servers manually in IPv4/6's properties)
  16. sc config Dnscache start= demand
  17.  
  18. rem Network Store Interface Service (Required by the internet connection, unless you set up IP/DNS manually in IPv4/6's properties)
  19. sc config nsi start= disabled
  20.  
  21. rem TCP/IP NetBIOS Helper (Required by some internet connections like aDSL)
  22. sc config lmhosts start= disabled
  23.  
  24. rem ========================= Windows Privacy =========================
  25. rem 0 - Disable WiFi Sense (shares your WiFi network login with other people)
  26. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v "value" /t REG_DWORD /d "0" /f
  27. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v "value" /t REG_DWORD /d "0" /f
Advertisement
Add Comment
Please, Sign In to add comment