Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: 562 user name invalid wNTMemberGrps
I am trying to get information about the local user, to see if it is associated with the administrator group.
I am using wntGetUser to obtain the username, and plugging that into wntMemberGrps, yet I am still
getting error 562 error: Invalid user.
AddExtender("WWWNT34I.DLL") username=wNTGetUser(@default) ;gets username with wntGetUser Message("Current User is",username) groups=wNTMemberGrps("",username,@LOCALGROUP,1);error occurs here 562 invalid user name AskItemList("%username% is associated with",groups,@tab,@sorted,@single)
AddExtender("WWWNT34I.DLL") server="servername" username=wNTGetUser(@default) ;gets username with wntGetUser Message("Current User is",username) groups=wNTMemberGrps("","%server%\%username%",@LOCALGROUP,1) AskItemList("%server%%username% is associated with",groups,@tab,@sorted,@single)OR
AddExtender("WWWNT34I.DLL") server="\\servername\" username=wNTGetUser(@default) ;gets username with wntGetUser Message("Current User is",username) groups=wNTMemberGrps(server,username,@LOCALGROUP,1) AskItemList("%username% is associated with",groups,@tab,@sorted,@single)
Also, my experience is that making a change to the network information on a workstation (like changing the domain) through Control Panel always makes Windows want to reboot for the changes to take effect, and there is probably a reason for this.
Article ID: W13575
Filename: wntMemberGrps wntMemberSet - 562 invalid user name.txt
File Created: 2001:03:01:14:19:50
Last Updated: 2001:03:01:14:19:50