Click here to Skip to main content
16,012,468 members
Home / Discussions / C#
   

C#

 
GeneralRe: Newline in constant error Pin
Dave Kreskowiak21-Jun-04 9:04
mveDave Kreskowiak21-Jun-04 9:04 
GeneralRe: Newline in constant error Pin
vcorn21-Jun-04 9:19
vcorn21-Jun-04 9:19 
GeneralRe: Newline in constant error Pin
Dave Kreskowiak21-Jun-04 9:27
mveDave Kreskowiak21-Jun-04 9:27 
GeneralRe: Newline in constant error Pin
vcorn21-Jun-04 9:31
vcorn21-Jun-04 9:31 
GeneralRe: Newline in constant error Pin
Heath Stewart21-Jun-04 9:54
protectorHeath Stewart21-Jun-04 9:54 
GeneralRe: Newline in constant error Pin
the last free name21-Jun-04 21:37
the last free name21-Jun-04 21:37 
Generalenumerating groups a user belongs to using WinNT:// Pin
inyoursadachine21-Jun-04 6:58
inyoursadachine21-Jun-04 6:58 
GeneralRe: enumerating groups a user belongs to using WinNT:// Pin
Dave Kreskowiak21-Jun-04 8:12
mveDave Kreskowiak21-Jun-04 8:12 
Well, in VBScript, it looks something like this:
strComputer = "."   ' Use a '.' to denote the local machine.
Set colGroups = GetObject("WinNT://" & strComputer & "")
colGroups.Filter = Array("group")
For Each objGroup In colGroups
    For Each objUser in objGroup.Members
        If objUser.name = "username" Then
            Wscript.Echo objGroup.Name
        End If
    Next
Next

You go through each group on the machine and check to see if the username exists in that group.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

Generalserializing in c#.net Pin
fatidarya21-Jun-04 6:18
fatidarya21-Jun-04 6:18 
GeneralRe: serializing in c#.net Pin
Heath Stewart21-Jun-04 6:38
protectorHeath Stewart21-Jun-04 6:38 
GeneralRe: serializing in c#.net Pin
fatidarya21-Jun-04 21:31
fatidarya21-Jun-04 21:31 
GeneralRe: serializing in c#.net Pin
thomasa21-Jun-04 22:42
thomasa21-Jun-04 22:42 
GeneralRe:thanks &deserializing in c#.net Pin
fatidarya22-Jun-04 0:43
fatidarya22-Jun-04 0:43 
GeneralRe: serializing in c#.net Pin
Heath Stewart22-Jun-04 2:38
protectorHeath Stewart22-Jun-04 2:38 
GeneralRe: deserializing in c#.net Pin
fatidarya22-Jun-04 3:00
fatidarya22-Jun-04 3:00 
GeneralRe: deserializing in c#.net Pin
Heath Stewart22-Jun-04 4:07
protectorHeath Stewart22-Jun-04 4:07 
GeneralRe: deserializing in c#.net Pin
fatidarya22-Jun-04 19:12
fatidarya22-Jun-04 19:12 
GeneralRe: deserializing in c#.net Pin
Heath Stewart22-Jun-04 19:19
protectorHeath Stewart22-Jun-04 19:19 
GeneralRe: serializing in c#.net Pin
Stefan Troschuetz21-Jun-04 20:44
Stefan Troschuetz21-Jun-04 20:44 
GeneralJava script in c# Pin
_Searcher_21-Jun-04 5:53
_Searcher_21-Jun-04 5:53 
GeneralRe: Java script in c# Pin
Dave Kreskowiak21-Jun-04 6:10
mveDave Kreskowiak21-Jun-04 6:10 
GeneralAttempting to implement Keyed MD-5 Hash Pin
selil21-Jun-04 5:29
selil21-Jun-04 5:29 
GeneralRe: Attempting to implement Keyed MD-5 Hash Pin
Heath Stewart21-Jun-04 5:42
protectorHeath Stewart21-Jun-04 5:42 
GeneralRe: Attempting to implement Keyed MD-5 Hash Pin
selil21-Jun-04 6:00
selil21-Jun-04 6:00 
GeneralRe: Attempting to implement Keyed MD-5 Hash Pin
Heath Stewart21-Jun-04 6:34
protectorHeath Stewart21-Jun-04 6:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.