Guest User

Untitled

a guest
Mar 17th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. SC Config Servicename Type= own
  2.  
  3. SC Config Servicename Type= share
  4.  
  5. SC Config winmgmt Type= own
  6.  
  7. rem 1. "Automatic Updates"
  8. SC Config wuauserv Type= own
  9.  
  10. rem 2. "COM+ Event System"
  11. SC Config EventSystem Type= own
  12.  
  13. rem 3. "Computer Browser"
  14. SC Config Browser Type= own
  15.  
  16. rem 4. "Cryptographic Services"
  17. SC Config CryptSvc Type= own
  18.  
  19. rem 5. "Distributed Link Tracking"
  20. SC Config TrkWks Type= own
  21.  
  22. rem 6. "Help and Support"
  23. SC Config helpsvc Type= own
  24.  
  25. rem 7. "Logical Disk Manager"
  26. SC Config dmserver Type= own
  27.  
  28. rem 8. "Network Connections"
  29. SC Config Netman Type= own
  30.  
  31. rem 9. "Network Location Awareness"
  32. SC Config NLA Type= own
  33.  
  34. rem 10. "Remote Access Connection Manager"
  35. SC Config RasMan Type= own
  36.  
  37. rem 11. "Secondary Logon"
  38. SC Config seclogon Type= own
  39.  
  40. rem 12. "Server"
  41. SC Config lanmanserver Type= own
  42.  
  43. rem 13. "Shell Hardware Detection"
  44. SC Config ShellHWDetection Type= own
  45.  
  46. rem 14. "System Event Notification"
  47. SC Config SENS Type= own
  48.  
  49. rem 15. "System Restore Service"
  50. SC Config srservice Type= own
  51.  
  52. rem 16. "Task Scheduler"
  53. SC Config Schedule Type= own
  54.  
  55. rem 17. "Telephony"
  56. SC Config TapiSrv Type= own
  57.  
  58. rem 18. "Terminal Services"
  59. SC Config TermService Type= own
  60.  
  61. rem 19. "Themes"
  62. SC Config Themes Type= own
  63.  
  64. rem 20. "Windows Audio"
  65. SC Config AudioSrv Type= own
  66.  
  67. rem 21. "Windows Firewall/Internet Connection Sharing (ICS)"
  68. SC Config SharedAccess Type= own
  69.  
  70. rem 22. "Windows Management Instrumentation"
  71. SC Config winmgmt Type= own
  72.  
  73. rem 23. "Wireless Configuration"
  74. SC Config WZCSVC Type= own
  75.  
  76. rem 24. "Workstation"
  77. SC Config lanmanworkstation Type= own
  78.  
  79. rem End.
  80.  
  81. Get-Service | ForEach-Object `
  82. { SC.EXE config $_.Name type= own }
  83. ForEach ($svc in @("efs", "keyiso", "netlogon", "policyagent", "samss", "vaultsvc", `
  84. "was", "w3svc")) `
  85. { SC.EXE config $svc type= share }
Add Comment
Please, Sign In to add comment