Advertisement
saper_2

Windows 10 enable network discovery

Sep 17th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. @echo off
  2. echo ! Run this script as Administrator !
  3. echo SMBv1 is obsolote, until now the WinXP+ used SMBv1 for browsing network, because of it's flaws and holes M$ disabled by default the SMBv1.
  4. echo Now for the discovery and browse network M$ use WS-DISCOVERY protocol. Fot it to work 2 services must be started:
  5. echo 1. [FDResPub] Function Discovery Resource Publication (Publikacja zasobow odnajdowania funkcji)
  6. echo 2. [fdPHost] Function Discovery Provider Host (Host dostawcy odnajdowania funkcji)
  7. echo.
  8. echo Now enabling those 2 services and starting them...
  9. echo After each line with [SC].... if is line with "0" then command was exec with success.
  10. echo If u see "[SC] StartService FAILED 1056: An instance of the service is already running." (and followed by non-"0" line)
  11. echo then it's fine, because the service is already up and running.
  12. echo.
  13. echo.
  14.  
  15. echo Switching 'FDResPub' to startType=Automatic(Delayed)
  16. sc config FDResPub start=delayed-auto
  17. echo %errorlevel%
  18. echo.
  19.  
  20. echo Switching 'fdPHost' to startType=Automatic(Delayed)
  21. sc config fdPHost start=delayed-auto
  22. echo %errorlevel%
  23. echo.
  24.  
  25. echo Starting 'FDResPub'...
  26. sc start FDResPub
  27. echo %errorlevel%
  28. echo.
  29.  
  30. echo Starting 'fdPHost'...
  31. sc start fdPHost
  32. echo %errorlevel%
  33. echo.
  34.  
  35. echo.
  36. echo.
  37. echo [Script end. Hit Enter to terminate.]
  38. pause>nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement