Forum Discussion
Werner2024
Jan 25, 2024Copper Contributor
Intune
good day Hope someone can assist me, I want to create a intune package that copy a folder from a network server to the local C drive of the computer, after the copy has finish I want it to automat...
Jan 25, 2024
Uhh... how are you deploying that app? I assume in the system context? as the system account will probably not have access to that file share on the server...
Werner2024
Jan 25, 2024Copper Contributor
Hi Rudy
Yes that's my thoughts also but was not sure if that could be the cause or is the script the issue, hens the logs did not show anything weird I figured maybe that might be an access issue.
any suggestions what we can do to test the access? intune does run with a services account and I doubt that you can create a separate folder only allowing that account to the folder.
Yes that's my thoughts also but was not sure if that could be the cause or is the script the issue, hens the logs did not show anything weird I figured maybe that might be an access issue.
any suggestions what we can do to test the access? intune does run with a services account and I doubt that you can create a separate folder only allowing that account to the folder.
- James_PedersenJan 25, 2024Brass ContributorHi Werner,
You can test the access by running your script locally as SYSTEM. You can do that by downloading PSEXEC.EXE from Microsoft (SysInternals Tools) and running "psexec.exe -accepteula -s -i cmd.exe" or "start \\live.sysinternals.com\tools\psexec.exe -accepteula -s -i cmd.exe"
In the scenario you describe you would probably need to delegate Read rights on the source folder to something like "Everyone" to make this work.- Werner2024Jan 26, 2024Copper ContributorHi James,
Will definitely test the access, the other problem we also facing is that policy rules does not allow us to give "everyone" access to any folder, I will test the access if thats the case I will see what we can do from there or get a work around.
Thanks for all the advice really appreciate it.