?
Solved

How to add a global group to a remote workstation?

Posted on 2003-02-21
11
Medium Priority
?
307 Views
Last Modified: 2013-12-19
I am local admin on all the workstations on my domain. The domain is a mix of NT4 and Windows 2000 without an Active Directory.

I need to add a global group into the local administrators group on some of the machines in my domain. I need to be able to do this remotely as the machines are spread throughout a huge building.

Any ideas how to do this?

Thanks
0
Comment
Question by:dominicb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 10

Expert Comment

by:AndresM
ID: 7992998
you should use User Manager. Go to start/run, and type usrmgr.exe \\wks_name
0
 
LVL 10

Expert Comment

by:AndresM
ID: 7993009
Or if your wks is Windows 2000, right-click My Computer, select manage, right-click computer managment, and select connect to another computer.

BTW, if your wks is Windows NT Workstation, you should copy usrmgr.exe from a Windows NT Server, or execute it directly from the NT Server.
0
 

Author Comment

by:dominicb
ID: 7993519
Sorry I didn't quite phrase my question exactly right. I know how to operate user manager on NT4 and 2000.

What I want to do is add a global group into a local group on a large number of machines in the fastest way possible.

Ideally by running a script, not by using the gui.

I found cusrmgr.exe in the Windows 2000 resource kit which I used to update the local admin password on all these pc's but I can't find anything to add a global group to the local administrators group on the pc's.

Thanks
Dominic
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

Author Comment

by:dominicb
ID: 7993553
Sorry I didn't quite phrase my question exactly right. I know how to operate user manager on NT4 and 2000.

What I want to do is add a global group into a local group on a large number of machines in the fastest way possible.

Ideally by running a script, not by using the gui.

I found cusrmgr.exe in the Windows 2000 resource kit which I used to update the local admin password on all these pc's but I can't find anything to add a global group to the local administrators group on the pc's.

Thanks
Dominic
0
 

Author Comment

by:dominicb
ID: 7993727
Sorry I didn't quite phrase my question exactly right. I know how to operate user manager on NT4 and 2000.

What I want to do is add a global group into a local group on a large number of machines in the fastest way possible.

Ideally by running a script, not by using the gui.

I found cusrmgr.exe in the Windows 2000 resource kit which I used to update the local admin password on all these pc's but I can't find anything to add a global group to the local administrators group on the pc's.

Thanks
Dominic
0
 
LVL 85

Expert Comment

by:oBdA
ID: 7994715
Assuming that the time on your servers is not completely out of sync (in which case the command would be executed a day later), this should do the trick; since you mentioned the resource kit, you have "soon.exe".
This takes either a computer name as a single argument ("addlocal ServerName"), or you can use /L to give it a list with computer names to work it's way through ("addlocal /L Serverlist.txt"). In the list, you just specify one computername per line.

===addlocal.cmd======8<--------snip--------------------------
@echo off
setlocal
rem *** The local group you want to add your global group to:
set LGroup=YourLocalGroup
rem *** The global group that should be added to the local group above:
set GGroup=YourGlobalGroup
rem *** The delay in seconds before the job starts on the remote computer:
set Delay=300

if "%1"=="" goto leave
if /i not %1==/L goto process
for /f %%a in (%2) do call :process %%a
goto leave

:process
soon \\%1 %Delay% "net localgroup %LGroup% %GGroup% /add"

:leave
=========8<--------snip--------------------------

The usual disclaimer: Test it before you apply it in earnest.
0
 

Author Comment

by:dominicb
ID: 8027869
Thankyou for your help. Sorry to take a while to reply again, been busy working on this!

I don't want to use the soon command because it relies on the clocks being correct on all the PC's and I have 6000 to do!

I have worked out a way to do this using a few tools from the resource kit. I am finishing off my VB app which will encompass all the commands. Once it's done I'll post it on my website and leave the link here.

Thanks
Dominic

0
 

Expert Comment

by:CleanupPing
ID: 9158547
dominicb:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 

Author Comment

by:dominicb
ID: 11866200
Oh dear, it's taken me ages to update this, apologies everyone!

Here's a link to the tool I wrote in VB to accomplish this task for me:

http://www.busfield.com/lcladmpwd.zip

It's very straightforward and easy to use, I put a little readme in there as well. Basically it reads the names of the PC's from a text file, attempts password change, if it fails it dumps the name into a failure text file.

It takes about 3 hours to change the password on 6000 PC's .

Hope this helps some people out.


Cheers
DominicB
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11893384
PAQed, with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question