Link to home
Create AccountLog in
Windows 2000

Windows 2000

--

Questions

--

Followers

Top Experts

Avatar of virzone
virzone

How to add user to Power User group?
Anyone can assist me on how do i add all my network users to the default local power user group on their desktop with simplest and less administrative method?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of darrenburkedarrenburke

no easy way.  The way I do it it

Deploy the Switch User utility to all desktops.  This will allow to to script the change using an account with admin rights.  Then using the SU service run this line in your logon script (the account needs to be a domain admin.


SU <account> "net localgroup "power users" "DOMAIN-NAME\domain users" /ADD" DOMAIN-NAME<\\server\share\password.txt


Use a logon Script to Do it...With tha ADSI Functions.
Put this Code in a .VBS File and call it as a Logon Script.


Dim wshNW
Dim pdcName, ComputerName,UserName
Set wshNw = WScript.CreateObject("Wscript.network")


PdcName = wshNW.UserDomain
ComputerName = wshNW.ComputerName
UserString = wshNW.UserName
GroupString = "Power Users"

Set GroupObj = GetObject("WinNT://" & ComputerName & "/" & GroupString)
GroupObj.Add ("WinNT://" & PdcName & "/" & UserString)
Set DomainObj = Nothing
Set GroupObj = Nothing




Question: in what security context does your scheduler run. Default as SYSTEM or did you change it?
If it is either as local administrator or SYSTEM then you could add the "net localgroup" command to all computers in your network.
All Active copmuters will be stored in machines.txt. If you habe a list of all the computers then comment-out the "net view"-line.
Carefull, in the FOR line there are double spaces and double "%". They are needed... copy carefully.

Regards,
Eric


---- script 1 ----

@echo off
set MACHINES=c:\temp\machines.txt
set LOGFILE=c:\temp\logfile.txt
set ERRORLOG=c:\temp\errorlog.txt
net view >%MACHINES%
FOR /F "eol=  tokens=1 delims=\ " %%a IN (%MACHINES%) DO start /w AddUsers.cmd %%a >%LOGFILE% 2>%ERRORLOG

---- end script 1 -----

---- script 2 ----

@echo off
AT \\%1 HH:MM net localgroup Powerusers Domain\Username1 /add
AT \\%1 HH:MM net localgroup Powerusers Domain\Username2 /add
.....
.....

---- end script 1 -----


Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- PAQ'd and points removed

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

PaShA

ASKER CERTIFIED SOLUTION
Avatar of SpideyModSpideyMod

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account
Windows 2000

Windows 2000

--

Questions

--

Followers

Top Experts

Windows 2000 is an operating system for use on both client and server computers. It is the successor to Windows NT 4.0, and is the last version of Microsoft Windows to display the "Windows NT" designation. Four editions of Windows 2000 were released (Professional, Server, Advanced Server, and Datacenter Server) that shared a core set of features, including many system utilities such as the Microsoft Management Console. All versions of the operating system support NTFS 3.0, Encrypting File System, as well as basic and dynamic disk storage. The Windows 2000 Server family includes support for Active Directory services, Distributed File System and fault-redundant storage volumes.