• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

ATTN: W2K Server wizards!

RedRooster

Diamond Member
I could use a little help here, wondering if anyone can help.
Is there anyway to output the localgroups(net localgroup) and the users of each group(net localgroup groupname) to a nice simple textfile? I'm trying to work with taking the results of net localgroup from the command line and then split on the * in perl, and it's a great pain in the butt. 🙂

What I'm trying to accomplish is move all localgroups and users to a linux machine and re-create them all on the linux machine.

Anyone have any ideas?
 
Just use a redirect...

net localgroup > c:\localgroup.txt
net localgroup mygroup > c:\mygroup.txt

🙂

Dave
 
Hehe, I'm doing that right now, but parsing through the mess once it's in there is the hard part. 🙂
I wish the was an export or dump command which would output the localgroups and users to a text file in a different format.
As it is now, it comes out as:

LocalGroup:
-------------------------------------------------
*Admins *DNS Admins *Guests
*DHCP Users *Students *Other


And getting through that file by splitting on * and making the appropriate syscalls to get it to come out as "net localgroup Admins" as an example, is just tough. 🙂
 
Back
Top