Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows 7 sharing: required services

25 Feb 2014   #1
jonnyhotchkiss

Windows 7 Ultimate 64bit
 
 
Windows 7 sharing: required services

Hi guys,

I followed black viper's tweaked guide for Win 7 Ultimate. Everything works, but (when optimised) I can't use network sharing. The symptoms are that

- My Computer isn't visible on the network (even in network on My Computer!)
- Network error msg when trying to connect to any other network computer.

I've restored my default service profile, using a handy BackupServices batch I found online

Code:
TITLE Services Start State Backup Script by My Digital Life
@echo off
@echo ========================================================================
@echo Windows Services Start State Backup Script (C) 2008 My Digital Life 2008
@echo ========================================================================
@echo.
@echo This script will backup all services with current state of Startup Type
@echo.
pause

REM Get current date and time
for /f "tokens=1, 2, 3, 4 delims=-/. " %%j in ('Date /T') do set FILENAME=Services_%%j_%%k_%%l_%%m
for /f "tokens=1, 2 delims=: " %%j in ('TIME /T') do set FILENAME=%FILENAME%_%%j_%%k.bat

REM Get all service name
sc query type= service state= all| findstr /r /C:"SERVICE_NAME:" >tmpsrv.txt
echo Saving Service Start State In %FILENAME% ...

REM save service start state into batch file 
echo @echo Restore The Service Start State Saved At %TIME% %DATE% >"%FILENAME%" 
echo @pause >>"%FILENAME%"

for /f "tokens=2 delims=:" %%j in (tmpsrv.txt) do @( sc qc %%j |findstr  START_TYPE >tmpstype.txt &&  for /f "tokens=4 delims=:_ " %%s in (tmpstype.txt) do @echo sc config  %%j start= %%s >>"%FILENAME%")
echo @pause >>"%FILENAME%"

del tmpsrv.txt
del tmpstype.txt

echo Services Start State Saved in %FILENAME%.
pause

This generates a batch file that will (attempt to) set all services to the state at the time of the 'snapshot'.

So when I run defaultservices.bat, all services (installed at that time) are set to automated|delayed|manual|disabled|whatever...

I modified (rem) 3 entries that generated an error (access denied on task scheduler, rpcendpointmapper, and rpc

Which service is required for network sharing?

Here's my (manual) log of changes

Win7 30GB - Optimised.

********************************************** Removed (wINDOWS Features)
IE9
Media Center
Fax and scan
tablet components
GADGET PLATFORM
XPS SERVICES/VIEWER

********************************************** svcs: disabled
AxInstSV (ACTIVEX iNSTALL)
ALG (if no ics)
BITS
BDESVC (bitlocker)
bthserv
PeerDistSvc (branchcache, for corp remote)
CertPropSvc (cert. for smartcards)
VaultSvc (cred. mgr)
TrkWks (dltc)
hkmsvc (NET! x509 key / cert mgmt svc, aka health key)
IKEEXT (NET! vpn)
iphlpsvc !!!!!!!
PolicyAgent
lltdsvc
MSiSCSI
Netlogon !!!
napagent
NvNetworkService
Stereo Service
NvStreamSvc
CscService (offline files)
WPCSvc (parents)
p2psvc
PNRPsvc
p2pimsvc
PNRPAutoReg
IPBusEnum (vnet bus connector, daemon?)
...
HomeGroupProvider
HomeGroupListener
fdPHost (homegroup)
hidserv (human interface)
W32Time
wuauserv
WinHttpAutoProxySvc

wired...
dot3svc
WwanSvc
Wlansvc

Thanks


My System SpecsSystem Spec
.
25 Feb 2014   #2
jonnyhotchkiss

Windows 7 Ultimate 64bit
 
 

I did a test, and noticed that, if I ran tweaked.bat, but didn't reboot, functionality was not impacted.

It turns out that, although the batch files generated by backupServices do set the startup type of each service, they don't necessarily change the state. If a service is started and is disabled, it's not stopped... until reboot.

So, is one of these the culprit?


Thanks
My System SpecsSystem Spec
25 Feb 2014   #3
jonnyhotchkiss

Windows 7 Ultimate 64bit
 
 

I stopped each one by one, restarted explorer, and discovered the inverse - my computer is the only computer showing on the network (until I search for other computers, ie \\asussed works)

My System SpecsSystem Spec
.

25 Feb 2014   #4
LMiller7

Windows 7 Pro 64 bit
 
 

Setting a services startup type does not effect it's current running state. This is by design.

You are not the first member of this forum to run into trouble following Black Vipers guides. This is all a lot of work for virtually no gain. Unless you are desperately short on memory the savings in disabling services will be insignificant. The savings in CPU time will be less than insignificant.

Incidentally, setting a service startup to Manual is NOT a safe alternative to disabling it. In this state the system or application can start the service. But don't assume that this will actually happen.

My advice would be to leave services on default configuration.
My System SpecsSystem Spec
25 Feb 2014   #5
jonnyhotchkiss

Windows 7 Ultimate 64bit
 
 

thanks for the advice. it's more to do with morbid curiosity, and super-turbo-charged OS's.

Given it seems so hard to diagnose and troubleshoot, I'm tempted to agree. IF the impact of applying a change were evident immediately... that'd be manageable. but with dozens of services it's hard to see what impacts what.

If you have a wireless LAN (wi-fi) you might need Wlansvc (I do). If you don't have lmhosts running, you can't navigate the network

without tcp/ip helper (lmhosts)


So the problem that prevented "network sharing" (accessing other shares on this windows 7 optimised build) seems to be resolved by running tcp/ip helper.. but the issue causing the absence of this computer (delhiboy) in network (fixed by accessing networkpath \\delhiboy) still remains... fixable by restoring default services and rebooting.

Microsoft Weird.
My System SpecsSystem Spec
25 Feb 2014   #6
jonnyhotchkiss

Windows 7 Ultimate 64bit
 
 

OK, so it seems that I forgot that MS Services are "special": some Manual services will not start, unless instructed to do so, ie

C:\Users\Jonny>sc start Wlansvc

SERVICE_NAME: Wlansvc
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x7d0
PID : 728
FLAGS :

I think I'll just set this one to Automatic.
Similarly, IP Helper (iphlpsvc) won't start unless instructed, but doesn't seem to be needed for my LAN NAS needs. Note Homegroup is not needed. Personally, I don't see the point (is there a 'best' re streaming? I can access media remotely using VLC as if the media are local, but the load time is sometimes a factor. I'm wondering if there's a best, be it Bonjour or WMP, perhaps VNC... or even Homegroup with QWAVE configured... Not sure how to benchmark these tasks. MediaMonkey Media Sharing is the only thing I think I want / need....
My System SpecsSystem Spec
25 Feb 2014   #7
LMiller7

Windows 7 Pro 64 bit
 
 

Quote:
OK, so it seems that I forgot that MS Services are "special": some Manual services will not start, unless instructed to do so, ie
That is what I said in my previous post. That is the way Manual startup services work. Nowhere has it ever been documented by Microsoft that such a service will start automatically if needed and it is not reasonable to assume that it will. Something must explicitly start the service, either the system or an application, or the user. But except for services that are Manual startup by default this will usually not happen. If the service is Automatic startup by default just about anything that relies on it will simply assume it is running and quietly fail if it is not, making no attempt to start the service before doing so.

That is what manual startup means. Unfortunately there are guides all over the Internet that do not understand this and have led many unsuspecting users astray.

The problem with disabling services (or setting them to manual) is that there is no publicly available documentation that fully describes what each service does. Many do more than the available documentation describes.

When you start altering service startup you are in uncharted territory and you must expect that things may go wrong.
My System SpecsSystem Spec
25 Feb 2014   #8
jonnyhotchkiss

Windows 7 Ultimate 64bit
 
 

All issued now resolved. One of these may have been the culprit


I found it much easier to troubleshoot with the amazing Advanced Uninstaller Pro.

It takes a while to apply the change (as oppose to running a batch of sc config commands directly but it compares the changes between profiles - exactly what I needed.

IF your PC is OK when it's installed, it's like a safety net against inadvertent (and undesired) service changes, as there are several protected profiles, that can't be deleted

I think the problem might have been with the source (netbook, bad wifi adapter) all along.
My System SpecsSystem Spec
Reply

 Windows 7 sharing: required services




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows Services required to attend a webinar
I have disabled many Windows Services corresponding to connecting with remote networks, remote registry etc., to maximize security. Running WIN7 64. I would like to know which services need to be turned on automatically or manually, before attending a webinar. Thanks in advance.
General Discussion
Win7 Sharing Problem (Windows Services Issue?)
Hello SevenForums! I have a problem with filesharing in my home network and hope you can help me :) Until a recent windows re-installation everything worked just fine. This, however, is no longer the case. My network consists of: HomeBox Win x64 Pro (fresh install SP1 + current updates) ...
Network & Sharing
What Windows 7 Services are required for iCloud to work?
I disabled a number of Services in Windows 7 as an optimization step using services.msc Doing so stopped iCloud synchronization with my iPhone 4s. Rather than reset them all, I'd like to see if anyone knows exactly which services are needed for iCloud to function. Thanks in advance.
General Discussion
Assisstance required with network and sharing
Hey, i have windows 7 on 2 computers, one has windows 7 ultimate 32 and other has windows 7 home premium 32. both are connected to my router using wireless network, one is desktop and the other is laptop. the thing is have shared some folder and drives, but i had to set permissions to everyone. so...
Network & Sharing
Which services enable homegroup, sharing etc
I fair while go I went though and disabled a TONNE of services. Some of them were my sharing ones I thinking. I'm unable to share anything on the network or network map. So I'm just assuming its the services a lot of problems seem to be with them... Also whats the service which tells me if I'm...
Network & Sharing
Restart network sharing services
Hello, I was searching for a way to restart all network services. I don't know all of them, I tried about 10 and no one did what I wanted. I'll give a little bit more information. Sometimes, my XP laptop stops being able to access my shared folders on my Win7 desktop. I didn't have this...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App