Hi I created a vbscript to verify if a certain user is member of a local group.
This works fine except that some members aren't shown completely
my script leave everything in front of the backslash '\' and this is the problem
I need the full name because I want to know if "EU\Domain Admins" is a member of the
local administrators group
strComputer = "PCname"
strGroup = "Administrators"
WScript.Echo "Checking " & strGroup &" Members of: " & strComputer
Set objGroup = GetObject("WinNT://" & strComputer & "/" & strGroup & ",group")
For Each objMember In objGroup.Members
WScript.Echo vbTab & objMember.Name
this script returns:
Checking Administrators Members of: .
As you can see it doesn't show the complete member-names
with this info I can't check for the member "EU\Domain Admins"
while [b]"net localgroup administrators"[/b] results
NT AUTHORITY\NETWORK SERVICE
any solutions to show the complete member-names in the vbscript?