I need some help with a logon script to map a network drive for a standalone windows computer in a workgroup setting (no domain, no GPO) based on logged in user’s membership in the local user groups.
The logon script should check, If a user is a member of local “Users” group, then M: drive gets mapped to [pc01folderA]
If not
M: drive gets mapped to [PC01folderB]
I suppose, the script can be .bat or in .ps1
maybe I need to have some other operator or checks in there instead of -contains
Thanks,