The objective here is to get a Windows 10 computer to map a network folder only if the user belongs to a particular security group using a login script.
I have a .bat file that used to work for Windows 7 computers using the following code:
ifmember "Security group name" THEN
NET USE F: /DELETE /YES
NET USE F: \\SERVERNAME\FOLDERNAME /persistent:yes
But I just try it with a Windows 10 computer and came back with:
'ifmember' is not recognized as an internal of external command
Just in case it makes any difference my domain is Windows Server 2012.
So I guess I'm moving to VBS or PowerShell whatever works.
Can you please give me a login script that works to map a shared folder in a Windows 10 computer?
Thanks in advance.