How do I start the Workstation Service so I can use `net use`?

1

I have a Windows 7 machine that logs into a domain. The machine can net view and see the different shares, but when I try to use, net use * \\name\share, I get an error stating that the service is not started. Yet when I issue a net start, it states the service is already started. My other win7 machines work fine; they can see and use any of the shares.

Is there a security setting that needs to be disabled or enabled? I really need to get this working, and I have no other ideas as the other machines have no problem accessing the shares on different systems.

The error I am getting is , "The Workstation Service Has Not Been Started", but like I said other machines can connect fine, and when I issue a, "net start workstation", it states the service is already started. In addition the error number I am receiving is 2138.

UPDATE: On the machine that is having issues.

From the troubled machine if I issue a

Net View \\name

I can see all the shares on the machine I want to connect to. When I try to

net use * \\name\sharename

I get the error The Workstation service has not started.

I have set both settings

sc config lanmanworkstation start = auto

and

sc config lanmanserver start = auto

on the Windows7 computer that is having issues. I have rebooted the computer and still no dice. I can net view any computer on the network and see all shares, but I cannot access any of the shares in which I can see.

In the registry under the HKLM\System\CurrentControlSet\Services

Both LanmanServer and LanmanWorkstation start is set to 2.

Screen capture of net use and view:

enter image description here

The Services:

enter image description here

enter image description here

This is really weird. What am I missing? It has to be a security setting...

nitefrog

Posted 2012-02-13T00:26:17.340

Reputation: 111

1Just updated. There are no errors in the event log. – nitefrog – 2012-02-13T01:30:50.597

good, because there are specific things that might be. – Psycogeek – 2012-02-13T01:35:45.473

Sounds like the error message is misleading and maybe there is some corruption in the network stack. Did you try running the network 'troubleshoot problems' wizard. Also can you compare your registry settings for HKLM,SYSTEM\CurrentControlSet\Control\NetworkProvider on this machine with a working machine. – sgmoore – 2012-11-30T12:25:53.310

Answers

3

I had the same issue (Win8). Registry was looking like this:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider] @="" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\HwOrder] "ProviderOrder"=",npnotes64" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order] @="" "ProviderOrder"=",npnotes64"

Compared it to another system and found my entries are different. So I changed my registry to:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\HwOrder] "ProviderOrder"="RDPNP,LanmanWorkstation,webclient" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order] "ProviderOrder"="RDPNP,LanmanWorkstation,webclient"

That solved it. UNC paths worked again immediately.

A_S

Posted 2012-02-13T00:26:17.340

Reputation: 31

I would upvote this answer a million times if I could. I was getting ready to reinstall Windows when I read this. Turns out a crappy virtual filesystem driver broke this registry key when it was installing. – smitelli – 2017-04-23T04:27:14.510

I had tried restarting workstation service multiple times without help. This solution helped me too. Thanks. – anishsane – 2014-02-12T08:44:58.227

1

First things first. The best way to troubleshoot is to take one problem at the time.

A) Services started mode

Check if the services LanmanServer and LanmanWorkstation are started in automatic mode... If they are in manual the delay to start them may be the source of the error msg you're talking about.

B) Services Dependencies

I agree with the Psycogeek comment: the dependancies must be checked. If the service on which LanmanServer and LanmanWorkstation failed to start or are not started automatically this may add a delay in these services startup and so on...

C) Services setup comparison

Compare the services setup of a working workstation with the services setup of the problematic one...

D) Packet sniffing between the workstation and the LAN

Also check the packets transfers between this workstation and the Local Area Network to see what's really happen (or not...)

Suggested tools:

a) For services:

services.msc or mmc.exe and add services.msc (to keep your display setup) or NirSoft's ServiWin (also for drivers...)

b) For Packets sniffing:

Wireshark or Microsoft Network Monitor

If the problem comes from the services setup you have the solution.

If not, you eliminate this possibility and we can look for somethings else...

Hope this help. Let us know.

climenole

Posted 2012-02-13T00:26:17.340

Reputation: 3 180

Don't agree with me to quickly :-) I was looking into the Crasy stuff that can happen, that make the errors meaningless. Weird stuff like Checking for %systemroot% to be working proper? Checking DCOM services (like what does that have to do with it?) and Checking Drivers themselves. Some disabled drivers can give a "service not started" that IS started. I figured everyone else would have any normal things covered :-) – Psycogeek – 2012-02-13T02:12:15.287

1That's right! I confess that I'm too quick too often!:D With one of the suggested tools (serviwin) it's possible to check drivers (start mode and so on)... – climenole – 2012-02-13T02:47:55.070

I tried all this and I looked at the service against a machine that works and all the same. The problem machine can net view and see everything from any computer, but cannot net use. It states the Workstation service has not been started on an net use command, even though the ACTUAL service shows started! And there are 0 errors in the event log. – nitefrog – 2012-02-13T05:59:55.843

@nitefrog Cross compare the Drivers in device manager, with all of them showing. that means do the hidden devices tweak, and view show hidden devices on. with all that showing finnaly, look in the network devices area first. even though there could be other things. I have no idea what the problem is, it is just one more place to look. – Psycogeek – 2012-02-13T06:50:52.550

Open in Administrator mode cmd.exe Paste in the following line: SET DEVMGR_SHOW_NONPRESENT_DEVICES=1 Then type in devmgmt.msc to start up Device Manager: in Device Manager, go to the View menu and choose Show Hidden Devices, to show all the device drivers including things that aren’t currently installed. Right-click on the driver and then choose Uninstall to remove the drivers for that old hardware. – climenole – 2012-02-13T17:29:54.943

Which ones should I remove under Network Adapters, as there are a myriad of Network Adapters. Cisco VPN Client, Intel Gigabit Network, Intel Centrino Ultimate, Microsoft ISATAP, RAS Async Adapter, Virtual Box Host-Only, WAN Miniport... – nitefrog – 2012-02-13T18:20:43.133

Select an adapter, right click, properties, and check for error code 45 Device not actually connected. You can easily spot them: they are displayed in pale color. Remove only the adapter you're sure they was uninstalled... – climenole – 2012-02-13T18:41:24.463

@nitefrog just a note, don't remove , compare with the other one, for disabled or non-operational items, especially the original MS items. it could be possible that there is an item that conflicted, or changed something, but first would be to check for any odd failures or disables. – Psycogeek – 2012-02-14T15:56:14.290

0

The Workstation (LanmanWorkstation) service must be started on the client machine (the one you are trying to connect from). On the server, LanmanServer is needed.

user1686

Posted 2012-02-13T00:26:17.340

Reputation: 283 655

1All the services are started. That is the issue. It makes no sense. I can NET VIEW from the machine, but I cant NET USE from the machine. – nitefrog – 2012-02-13T01:43:10.257

even when I type sc config lanmanworkstation start = demand and get the success response, still no dice. Remember the SERVER can be accessed by other win7 machines. – nitefrog – 2012-02-13T01:47:57.867

@nitefrog: Right, and I wasn't asking about the server either. I was asking about that single machine that cannot access it. – user1686 – 2012-02-13T05:01:00.307

Yes the machine that is trying to access the machine that the other can has the two services started. – nitefrog – 2012-02-13T05:09:38.140

0

I had exactly the same issue and after following the tips provided here I went to check on MS support and found the link https://support.microsoft.com/en-us/kb/314543 this one applied only for XP.However, it game a hint to resolved the problem and basically what I did was to follow answer #2 advice and it fixed the issue.

I compare another colleague laptop export this entry from the register HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvide and import it to my laptop and it work no need to restart you system

Alejadro Torres

Posted 2012-02-13T00:26:17.340

Reputation: 1

What did you export exactly? This answer assumes that the author has a colleague or another computer. It would be helpful to have all relevant information in the answer itself, Microsoft has a nasty nabit, of moving knowlege base articles without notice or redirection. – Ramhound – 2015-07-07T17:23:17.060