Windows 10: Trouble Opening Shared Files Over Local Intranet

Discus and support Trouble Opening Shared Files Over Local Intranet in Windows 10 Network and Sharing to solve the problem; Stuck on developing a local intranet for a client's small business enterprise network. OS: Windows 2019 Database Server Active Directory: Accessed... Discussion in 'Windows 10 Network and Sharing' started by SethBennett, Aug 4, 2020.

  1. Trouble Opening Shared Files Over Local Intranet


    Stuck on developing a local intranet for a client's small business enterprise network.


    OS: Windows 2019 Database Server

    Active Directory: Accessed through LDAPS

    Web Server: XAMPP v3.2.4

    Web Server Language: PHP

    Hosting Machine: HOST virtual server


    Goals:

    1 Provide an "Employee Center" where all the employee and company data can be found in a single place. Apache and MySQL are working to maintain company data provided by employees and admins. Users can access these features from their local machines, when they click the hyperlink and log into the intranet.

    2 Provide access to their company's shared drives, through the intranet. PHP accomplishes this by running the file access command through the command line. This is where we are getting STUCK. When the user uses the intranet to select a file from a shared drive, and open it, the file is opening in the HOST machine, where the Apache server is running, and not the user's local machine!


    Let me tell you, it was weird watching random files open up while I was working on the HOST. I thought we'd been hacked! Then a co-worker called, wanting to know why their desired files weren't showing up when they tried to access them on the intranet, from their local machine.


    Since the virtual HOST server is where the Apache web server is running the show, I assume that Apache is reflexively opening the desired file from a shared drive on it's own server. The hyper link we are using is connecting the user to the intranet, but the web server is opening files on the HOST, rather than sending the "open file" commands back to the user's local machine.


    My question is, is there a way to qualify the Command Line request so that the desired file is opened on a specific machine or better yet for a specific user? I have access to the active directory to identify a current user and their current machine, for example.


    I'm currently accessing shared network files by creating, running and closing a scheduled task. This is the code PHP is currently running through the command line. It works on the HOST machine, but continues to fire on the HOST machine, even if the user is logged in from their local machine.


    Note: "$escapedLogPath" is the path to the user's desired file.


    Create the task:

    - SCHTASKS /F /Create /TN MyTasks\_notepad /TR "\\'.$escapedLogPath.'\\" /SC DAILY /RU INTERACTIVE


    Run the task:

    - SCHTASKS /RUN /TN "MyTasks\_notepad"


    Delete the task:

    - SCHTASKS /DELETE /TN "MyTasks\_notepad" /F


    This code works if launched while logged into the HOST, opening the file right on the HOST, but when the user logs in from their local machine, the desired file path is still activated on Apache's HOST machine. It's not opening on the user's local machine.


    Can this be accomplished by modifying the above commands?


    If PHP is not an option, could this accomplished in a batch file? With arguments fed to it by PHP calling up the command line?


    Another option could be that the client handles most of their business on their local IIS server. I could probably migrate the intranet from Apache to IIS, but I haven't worked with IIS much and want to know for sure that IIS can meet our intranet goals, before configuring IIS for PHP and migrating the entire intranet over.


    Any advice, links to tutorials or guidance would be greatly appreciated.


    I've build online websites before, but inter-connecting shared drives over a local intranet is way more complicated than that!

    :)
     
    SethBennett, Aug 4, 2020
    #1

  2. SHARING FILES WITH WINDOWS 7

    Hello,

    Thank you for writing to Microsoft Community Forums.

    • Have you made any changes on your PC?
    • Did you perform any Windows update recently?
    • Are you connected to Domain network?

    I suggest you to try the below steps and check if that helps.

    1. To share files over file explorer refer the following

      article
      .
    2. Refer article for
      file sharing
      over a network.

    Hope it helps.

    Let us know if you got the help you needed by clicking, Yes or No.

    Sandeep Kumar M

    Microsoft Community - Moderator
     
    Sandeep_KM, Aug 4, 2020
    #2
  3. Ferdz Amp Win User
    Sharing folders over network - access denied

    Hello,

    To troubleshoot your concern with sharing files over the network using your Windows 10 device, we suggest that you run the Shared folders troubleshooter and check if it helps. Kindly refer to the steps below:

    • Type in Troubleshooting in the search box and press
      Enter.
    • Click View all.
    • Click Shared Folders.
    • Click Next and follow on-screen instructions.

    Hope it helps.
     
    Ferdz Amp, Aug 4, 2020
    #3
  4. Trouble Opening Shared Files Over Local Intranet

    File sharing over local network

    In the troubleshooting of network adapters, nothing was found, yet I still cannot share files over my local network! And this just recently happened. Help! First, when I try to share a folder with a user on another computer - it cannot find that user!
    grrrr -- what is happening with networks now with Win10?
     
    KathyChandonais, Aug 4, 2020
    #4
Thema:

Trouble Opening Shared Files Over Local Intranet

Loading...
  1. Trouble Opening Shared Files Over Local Intranet - Similar Threads - Trouble Opening Shared

  2. File Sharing Over a local network

    in Windows 10 Network and Sharing
    File Sharing Over a local network: I am trying to access my old PC which is on my home network. The system is detected but when I click it it asks for credentials and will not accept my Microsoft password. I use the same account to sign into both systems and it works fine to sign in to either one individually...
  3. Trouble Granting User File Access in Windows Based Intranet

    in Windows 10 Network and Sharing
    Trouble Granting User File Access in Windows Based Intranet: Stuck on developing a local intranet for a client's small business enterprise network. OS: Windows 2019 Database Server Active Directory: Accessed through LDAPS Web Server: XAMPP v3.2.4 Web Server Language: PHP Hosting Machine: HOST virtual server Goals: 1 Provide an...
  4. permission to open local internet shared files.

    in Windows 10 Network and Sharing
    permission to open local internet shared files.: I don't have permission to open local internet shared files. I have turned on sharing and permissions in security and settings and allowed in media streaming....
  5. Safest Way to Share Folders & Files oVer Local Network

    in Windows 10 Network and Sharing
    Safest Way to Share Folders & Files oVer Local Network: I have 4 Win 10 PCs on my local network and want to be able to share folders & files over my local network allow full control to all users on the network, and all of the users are administrators. In looking into it I have several choices. I can choose Everyone,...
  6. File sharing problem in the Intranet

    in Windows 10 Network and Sharing
    File sharing problem in the Intranet: We have a shared folder in the Intranet. And most of us can access it without any problem. But some of the people just can't access it. The run \\10.*.*.* in Run and there comes the error message. Seems it's trying to find the link on local PC. [ATTACH] And I also tried...
  7. File sharing over LAN

    in Windows 10 Network and Sharing
    File sharing over LAN: I am wondering if it is possible to share files over the LAN for specific users on 2 computers in my network? I can't seem to do what I need to do. Anyhow, this is the setup: 2 Windows 10 computers connected by ethernet cables to the same modem / router. (I am at home and...
  8. Shared files over wifi

    in Windows 10 Network and Sharing
    Shared files over wifi: Have 2 pcs running Windows 10 pro. The once with router & LAN cable can see shared files on the other but the one which uses wifi can't see shared files on the other, although it can connect to the internet. Help!...
  9. Edge cannot open local IP addresses (e.g. camera, intranet, 192.168. *)

    in Windows 10 Installation and Upgrade
    Edge cannot open local IP addresses (e.g. camera, intranet, 192.168. *): In other browsers Chrome, IE everything is OK. This problem may have occurred after you update KB4480966. When I return the system back before these updates (9.1.2019) Everything goes OK. I have not yet found a description of how to fix this problem....
  10. Trouble sharing drives over ethernet

    in Windows 10 Network and Sharing
    Trouble sharing drives over ethernet: I am trying to share hard drives between my desktop and laptop, which are connected directly with an ethernet cable. I can see and access hard drives connected to my desktop from my laptop, but I can't view drives connected to my laptop on my desktop. I've followed all the...