wmi script adds LOCAL user need Local Admin
From: Al (anonymous_at_discussions.microsoft.com)
Date: 03/18/04
- Next message: Jason: "Universal (US) Group"
- Previous message: Herb Martin: "Re: Running a specific program with Administrative rights."
- Next in thread: Paul Adare - MVP - Microsoft Virtual PC: "Re: wmi script adds LOCAL user need Local Admin"
- Reply: Bryston Nitta [MSFT]: "Re: wmi script adds LOCAL user need Local Admin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 17 Mar 2004 20:38:19 -0800
I was looking all day for a script that would add a user
to a LOCAL machine. I finally found one! The only problem
is that I need to create the user in the "Administrators
Group" I edited the script over 100 time and could not
find any documentation on what class to call or anything.
Here is the script:
************
strComputer = "."
Set colAccounts = GetObject("WinNT://" & strComputer
& ",computer")
Set objUser = colAccounts.Create("user", "Admin2")
objUser.SetPassword "sA2xpWh"
objUser.SetInfo
**************
seems simple enough>>
Can anyone help???
- Next message: Jason: "Universal (US) Group"
- Previous message: Herb Martin: "Re: Running a specific program with Administrative rights."
- Next in thread: Paul Adare - MVP - Microsoft Virtual PC: "Re: wmi script adds LOCAL user need Local Admin"
- Reply: Bryston Nitta [MSFT]: "Re: wmi script adds LOCAL user need Local Admin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|