Forum Discussion
PhilPreece1010
Jan 16, 2024Copper Contributor
AAD joined laptops - mapped drive script not working
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 p...
- Jan 17, 2024Mmmm as mentioned in the blog post.... when you are using the admx ...
To make sure you can use the %username% you will need to add this expandable=”true” to each element in the ADMX you ingested!
The last time i used it, it worked?
Jan 16, 2024
You could switch to importing an admx to mount those driveletters?
https://call4cloud.nl/2021/03/willy-wonka-and-the-drive-letter-factory/
To get back to the question and The error you are referring, i have seen some weird stuff in which the local user is a local admin on the device... so... is the user a local admin?
https://call4cloud.nl/2021/03/willy-wonka-and-the-drive-letter-factory/
To get back to the question and The error you are referring, i have seen some weird stuff in which the local user is a local admin on the device... so... is the user a local admin?
PhilPreece1010
Jan 17, 2024Copper Contributor
Thanks for the reply.
We have tried importing the admx template and pushed out the drive mappings via a Config Policy. It works for the standard drive mappings, ie:
M:\ > \\server1\marketing (works)
S:\ > \\server1\CompanyData (works)
T:\ > \\server1\User Redir\%username%\Documents (does not work)
It seems Intune has trouble with the %username% and/or $Env:UserName variable.
We have tried importing the admx template and pushed out the drive mappings via a Config Policy. It works for the standard drive mappings, ie:
M:\ > \\server1\marketing (works)
S:\ > \\server1\CompanyData (works)
T:\ > \\server1\User Redir\%username%\Documents (does not work)
It seems Intune has trouble with the %username% and/or $Env:UserName variable.
- Jan 17, 2024Mmmm as mentioned in the blog post.... when you are using the admx ...
To make sure you can use the %username% you will need to add this expandable=”true” to each element in the ADMX you ingested!
The last time i used it, it worked?- PhilPreece1010Jan 17, 2024Copper Contributor
Thank you, i completely overlooked that part of the article.
That seems to have done the trick.