networking win 10 desktop & win 11 laptop

Networking, connecting to the internet, wi-fi and home entertainment
User avatar
stuck
Panoramic Lounger
Posts: 8705
Joined: 25 Jan 2010, 09:09
Location: retirement

networking win 10 desktop & win 11 laptop

Post by stuck »

Despite having both a desktop PC and a laptop for many years I've never bothered to try and access one from the other, mainly because the laptop has always been a lower spec. machine than the desktop. Now though the reverse is true, my new laptop is superior to my desktop machine. Given that I thought it might be interesting to see if I could access stuff (like all my photos) that are on the desktop PC from the comfort of my sofa. I've had mixed success.

It seems that my desktop PC only appears in File Explorer on the laptop if I:
1) run 'services.msc'
2) find 'Function Discovery Resource Publication'
3) restart that service
even though that service has a startup type of 'Automatic (delayed start)' and says it is running.

Any suggestions?

Ken

User avatar
StuartR
Administrator
Posts: 12939
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

I have had this problem through many updates. I have a BAT file that runs from task scheduler whenever I log on.

Code: Select all

NET STOP FDResPub
ping -n 2 -w 1000 16.1.1.0
NET START FDResPub
StuartR


User avatar
stuck
Panoramic Lounger
Posts: 8705
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

I'm guessing the ping is some sort of pause?

Ken

User avatar
StuartR
Administrator
Posts: 12939
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

Yes the ping is a two second pause.-n 2 says do it twice. -w 1000 says wait 1000 milliseconds for a response 16.1.1.0 is a private IP address which I don't use on my home network (I suspect nobody does)
StuartR


User avatar
stuck
Panoramic Lounger
Posts: 8705
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

Thank you for the extra detail.

I've created a task to run an identical BATch file...

Ken

User avatar
stuck
Panoramic Lounger
Posts: 8705
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

...and it hasn't helped.

At the moment, on my desktop PC the laptop is shown under Network in File Explorer but the desktop machine is MIA. While on the laptop top, neither the laptop nor the desktop are shown under Network.

Whereas, earlier this afternoon both machines showed both machines and Everything Was OKTM

I might just not bother, this is looking like waaay too much hassle.

Ken

User avatar
StuartR
Administrator
Posts: 12939
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

You need to run that batch file on BOTH systems every time they restart.
StuartR


User avatar
John Gray
PlatinumLounger
Posts: 5564
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: networking win 10 desktop & win 11 laptop

Post by John Gray »

stuck wrote:
13 Aug 2023, 16:19
I'm guessing the ping is some sort of pause?
Ken
Yes - PING's "-n" parameter indicates "the number of seconds to wait - 1", so "-n 2" would cause a wait of 1 second.

The most common form of a wait (here of 6 seconds) without any console output or other action is
PING -n 7 127.0.0.1 > nul

Actually, PING sends 'n' packets to the indicated IP address, separated by (very approximately) 1 second. Thus 2 packets would be separated by a single second, 11 packets would be separated by 10 seconds. I hope I don't need to say why the local IP address 127.0.0.1 is used...!
John Gray

The family is nature's way of passing inequality down through the generations.​​

User avatar
stuck
Panoramic Lounger
Posts: 8705
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

The 'NET STOP FDResPub' is giving an 'access denied' error on my Win 11 Pro laptop. I'm the only user on that machine and I have admin rights.

Any suggestions?

Ken

User avatar
StuartR
Administrator
Posts: 12939
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

Tell task scheduler to run the bat file with full privileges
StuartR


User avatar
stuck
Panoramic Lounger
Posts: 8705
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: networking win 10 desktop & win 11 laptop

Post by stuck »

OK, I'll try that.

Thanks!

User avatar
hlewton
PlatinumLounger
Posts: 4114
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: networking win 10 desktop & win 11 laptop

Post by hlewton »

If I am reading this and understanding it correctly, I would like to ask a question. First let me tell you what I do when I don't see a machine if Windows File Explorer that I should see. I believe it is very similar to the batch file mentioned above. I have a desktop batch file that I run with admin privileges. It is this:
net stop "Function Discovery Resource Publication"

net start "Function Discovery Resource Publication"

I believe it is the same thing without the ping, which I can easily add.
My question is how do I get the batch file to run with admin privileges every time when I start the machine? I am not familiar about how to use the Task Scheduler.
Regards,
hlewton

User avatar
StuartR
Administrator
Posts: 12939
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

The ping may not be necessary, depending on the speed of your computer and what else is going on. Basically it just causes a short delay to allow the NET STOP to finish before the NET START.

I run this at log in, rather than when the machine starts.

To create the job you need in Task scheduler:
  • Start task scheduler from the windows start button
  • Click Create Task...
  • On the general tab give the task a name and click "Run with highest privileges"
  • On the Triggers tab click New...
  • Begin the task: At log on - OK
  • On the Actions tab click New...
  • Action: Start a program
  • Browse... to your BAT file and select it
  • OK your way back out of all dialog boxes
  • Test your new task by right clicking it in Task Scheduler and choosing Run
  • If that worked then test it again by logging out and back in again
StuartR


User avatar
hlewton
PlatinumLounger
Posts: 4114
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: networking win 10 desktop & win 11 laptop

Post by hlewton »

StuartR wrote:
09 Feb 2025, 12:12
The ping may not be necessary, depending on the speed of your computer and what else is going on. Basically it just causes a short delay to allow the NET STOP to finish before the NET START.

I run this at log in, rather than when the machine starts.

To create the job you need in Task scheduler:
  • Start task scheduler from the windows start button
  • Click Create Task...
  • On the general tab give the task a name and click "Run with highest privileges"
  • On the Triggers tab click New...
  • Begin the task: At log on - OK
  • On the Actions tab click New...
  • Action: Start a program
  • Browse... to your BAT file and select it
  • OK your way back out of all dialog boxes
  • Test your new task by right clicking it in Task Scheduler and choosing Run
  • If that worked then test it again by logging out and back in again
Thank you very much. I will give this a try.
Regards,
hlewton

User avatar
hlewton
PlatinumLounger
Posts: 4114
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: networking win 10 desktop & win 11 laptop

Post by hlewton »

StuartR, I have a couple questions. First how do you open the Task Scheduler? Maybe it is because I am running a third party program called Start11 but the only way I found to open it was using the search icon on the taskbar.
Next, I believe I followed your instructions and I checked the active tasks as can be seen in this attachment under Task Name.
Function.jpg
I named the new task Function Discovery, as can be seen. In this attachment is where I think you wanted me to try to run the new task and it isn't there.
Task.jpg
Can you tell me what I may have done wrong since I can't test it to run?
You do not have the required permissions to view the files attached to this post.
Regards,
hlewton

User avatar
StuartR
Administrator
Posts: 12939
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

To run Task Scheduler I click the start button and start typing Task Scheduler until the option appears, then I click it.

When I open Task Scheduler I see this Window, I then click on Create Task...
CreateTask.png
Then you can follow the remainder of my instructions above.
You do not have the required permissions to view the files attached to this post.
StuartR


User avatar
hlewton
PlatinumLounger
Posts: 4114
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: networking win 10 desktop & win 11 laptop

Post by hlewton »

Thanks for that information. I can see exactly what you see after I highlight Task Scheduler Library. My task did work when I tested it by restarting the machine. Again, thanks for your help.
Regards,
hlewton

User avatar
hlewton
PlatinumLounger
Posts: 4114
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: networking win 10 desktop & win 11 laptop

Post by hlewton »

Sorry but I have another question. I did what your instructions said and all worked well except on one machine. After I ran the new task to make sure it worked, I restarted the machine to make sure the task ran at Log On. On all machines except one it did. I checked the task to make sure all was set as it is supposed to be and it is. Why didn't it run at log on and is there anything I can do to fix that? By the way, that machine did not appear in File Explorer on my main machine. So, I ran Function Discovery from within the task scheduler and then it did appear in the Network in File Explorer. Apparently the task is correct, it just doesn't run at Log On as it should.
Regards,
hlewton

User avatar
hlewton
PlatinumLounger
Posts: 4114
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: networking win 10 desktop & win 11 laptop

Post by hlewton »

OK, I decided to create the task on my oldest Win 10 Home laptop. It too does not run the task either on log on or on Start Up. The funny thing about the 2 computers that won't run this task is they are both Laptops. The old one I just identified but the other Laptop is new to me, about 5 months old and it is running Windows 11 Pro. I don't know if being laptops is significant but all 4 of my desktops run the task as they should. Any idea how to get the laptops to run the task?
Regards,
hlewton

User avatar
StuartR
Administrator
Posts: 12939
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: networking win 10 desktop & win 11 laptop

Post by StuartR »

It works fine on my laptop. Do you have a username and password on all of these computers, or do some of them have no password?
StuartR