[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

08/03/2007 at 07:03AM PDT, ID: 22740072
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

How to remotely list the full member-names of an localgroup

Asked by joachim.claeys@teleatlas.com in VB Script, Visual Basic Programming, Microsoft Windows Operating Systems

Tags: lnss_monitor_usr

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

my Script:

[code]
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
Next
[/code]

this script returns:
[b]
Checking Administrators Members of: .
      Administrator
      LNSS_MONITOR_USR
      Admini
      Domain Admins
      wilfy
      SYSTEM
      NETWORK SERVICE
      Domain Admins
      LOCAL_IT
[/b]
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
[b]
Members
-----------------------------------
Administrator
LNSS_MONITOR_USR
NT AUTHORITY\NETWORK SERVICE
NT AUTHORITY\SYSTEM
TA\Domain Admins
TA\LOCAL_IT
EU\Domain Admins
EU\wilfy
[/b]

any solutions to show the complete member-names in the vbscript?

thx
[+][-]08/03/07 08:52 AM, ID: 19626085

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/03/07 09:06 AM, ID: 19626247

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/04/07 09:02 PM, ID: 19633073

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Script, Visual Basic Programming, Microsoft Windows Operating Systems
Tags: lnss_monitor_usr
Sign Up Now!
Solution Provided By: RobSampson
Participating Experts: 2
Solution Grade: B
 
 
[+][-]08/05/07 12:12 AM, ID: 19633445

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 / EE_QW_1_20070628