In on-prem scenarios you might want to use Temporary user profiles and still be able to access data on UNC paths on other servers
There are two scenarios:
There are two scenarios:
- You map an UNC share with one single user account for all users (pw visible in script or UI variable):With this solution the drive is mapped with the same special user for all user sessions. You either have to specify the password in the script like above or create a variable in PowerTags like
and then in the script above use
- You map an UNC share per user:This opens a Windows login dialog:
Both scripts go into StartupBeforeSync.ps1 (Session scripting (Windows))
You might wonder why net use is used in a PowerShell script and not New-PSDrive. That is because New-PSDrive is buggy when it comes to persistence and net use just works fine.
After mapping, you can add the mapped drive or path into your Cameyo dialog using the following PowerTag:
see: Cameyo File Dialog