Hey , could someone please make a .bat or .reg that would turn these four services to enabled and start automatically. Windows 7 Pro 64X.. Thanks in advance! 1-) DHCP Client 2-) NET TCP Port Sharing Service 3-) SSDP Discovery 4-) UPnP Device Host
This may suit your request. Code: @FOR %%A IN (DHCP NetTcpPortSharing SSDPSRV upnphost) DO ( @FOR /F "TOKENS=1-3 DELIMS=: " %%B IN ('SC QC %%A 2^>NUL') DO ( @IF %%B==START_TYPE @IF %%C NEQ 2 SC CONFIG %%A START= AUTO @FOR /F "TOKENS=1,3 DELIMS=: " %%E IN ('SC QUERY %%A') DO ( @IF %%E==STATE IF NOT [%%F]==[RUNNING] SC START %%A))) I would however like to mention that the DHCP service should by default start automatically and both SSDPSRV and upnphost, (which has a dependency on SSDPSRV), should already by default run only when needed.