Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo ! Run this script as Administrator !
- 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.
- echo Now for the discovery and browse network M$ use WS-DISCOVERY protocol. Fot it to work 2 services must be started:
- echo 1. [FDResPub] Function Discovery Resource Publication (Publikacja zasobow odnajdowania funkcji)
- echo 2. [fdPHost] Function Discovery Provider Host (Host dostawcy odnajdowania funkcji)
- echo.
- echo Now enabling those 2 services and starting them...
- echo After each line with [SC].... if is line with "0" then command was exec with success.
- echo If u see "[SC] StartService FAILED 1056: An instance of the service is already running." (and followed by non-"0" line)
- echo then it's fine, because the service is already up and running.
- echo.
- echo.
- echo Switching 'FDResPub' to startType=Automatic(Delayed)
- sc config FDResPub start=delayed-auto
- echo %errorlevel%
- echo.
- echo Switching 'fdPHost' to startType=Automatic(Delayed)
- sc config fdPHost start=delayed-auto
- echo %errorlevel%
- echo.
- echo Starting 'FDResPub'...
- sc start FDResPub
- echo %errorlevel%
- echo.
- echo Starting 'fdPHost'...
- sc start fdPHost
- echo %errorlevel%
- echo.
- echo.
- echo.
- echo [Script end. Hit Enter to terminate.]
- pause>nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement