I believe using WMI and the WqlObjectQuery stuff you can get it using
Win32_Group and Win32_UserAccount, but I haven't tried. That's where I'd
start, though.
> Does Anyone know how to get the Windows user and group names?
> Thanks.
MajorTom - 20 Jan 2005 20:03 GMT
Use the static class
Environment.UserName;
Environment.UserDomainName;
and
SystemInformation...
MajorTom
> I believe using WMI and the WqlObjectQuery stuff you can get it using
> Win32_Group and Win32_UserAccount, but I haven't tried. That's where I'd
> start, though.
>
> > Does Anyone know how to get the Windows user and group names?
> > Thanks.
Pete Davis - 20 Jan 2005 22:19 GMT
You're making it too easy for him ;-)
Pete
> Use the static class
>
[quoted text clipped - 14 lines]
> > > Does Anyone know how to get the Windows user and group names?
> > > Thanks.