Jan 16 2024 08:47 AM - edited Jan 16 2024 08:58 AM
All our company laptops (Win10/11) are currently AD Hybrid joined and each users has an AOVPN to allow remote working. User document folders are redirected to a central file share. Via GPO, we also push out some mapped drives. We are looking to move away from the AD Hybrid Joined workstation model and want to use Azure AD joined laptops (ie: slowly moving to full cloud).
We have deployed a bunch of new Windows 11 laptops (AAD joined) using Autopilot. All the necessary apps, config profiles, scripts, etc have been pushed out to these new laptops via Intune. Everything appears to be working well, with exception to one of the drive mappings (T:\ drive which points to the users redirect documents folder). All other mapped drives, ie: S:\ > Company Shared, M:\ > Marketing, etc are allow working via a Intune ps script.
The user powershell script we're using (in Intune) to map the T:\ drive is as follows, however, its not working.
New-PSDrive -Name "T" -Root "\\server1.domain.local\User Redir\$Env:UserName\Documents" -Persist -PSProvider FileSystem
If we manually run this on the laptop, via powershell and while logged in as the user, the command complete successfully. The Intune ps script is set to 'user' and 'script signature checking' is disabled.
For reference purposes, the older AD hybrid joined workstations use a GPO (ie: net use T: \\server1.domain.local\User Redir\%username%\Documents ).
Can anyone see where we have gone wrong or suggest how we can map the T: drive, to the users redirected folder, via Intune?
PS - Eventually, we will be moving user document folders to OneDrive but the company isn't ready for this yet.
Jan 16 2024 11:44 AM
Jan 17 2024 01:11 AM
Jan 17 2024 01:20 AM
SolutionJan 17 2024 05:35 AM
Thank you, i completely overlooked that part of the article.
That seems to have done the trick.
Jan 17 2024 01:20 AM
Solution