I have seen the code you have done
so I was hoping that you could help me
I need from the login script the user that is logging in
to connect to AD find the upn prefix for the user that is logged in
and map a drive to a folder that has the same name
as the upn as the user (the user portion of the UPN does not match the samAccountName)
as an example
samAccountName = JohSmit35
UPN = John Smith
Folder Name = John Smith
Drive Mapping = H:\users\John Smith