Access windows 10 (non-domain) network share from windows iot core

bcb44 31 Reputation points
2022-01-11T16:13:41.167+00:00

For the windows service I'm writing, I read from a windows share and pull files from it on another device. The windows share runs on Windows 10 and has sharing turned on for everybody. The Windows 10 computer is not on a domain and we cannot add it to one or create a new account

My host computer currently runs Windows 10 Enterprise (also not on a domain) and we solve access the network share with a user account that mimics one with minimal privileges (local user and read access to network share) on the other computer. What is the recommended method for accessing network shares on a windows 10 computer from Windows IoT Core? Is there a way to access that share as the 'mimicked' user without actually having that user account on the device running Windows IoT Core?

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
382 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sean Liming 4,511 Reputation points
    2022-01-11T17:06:39.95+00:00

    First, if I read this correctly, I would limit access to a share for security reasons rather than giving access to everybody.

    Second, using a script to access the share: How to map the network drive using PowerShell? or PowerShell Access Network Share In Script As Different User.

    0 comments No comments

  2. Seeya Xi-MSFT 16,436 Reputation points
    2022-01-12T03:10:31.037+00:00

    Hi @bcb44 ,

    Welcome to Microsoft Q&A!
    Please see this similar thread: https://stackoverflow.com/questions/33090669/how-to-access-network-share-from-raspberry-pi-running-iot-core-in-uwp-app
    Also, I'd like to put Microsoft's relevant documentation here.
    https://learn.microsoft.com/en-us/windows/iot-core/manage-your-device/windowsfilesharing

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.