Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: Re: [ActiveDir] Adding local admin rights to non english native o s?
Prev Next
You are not authorized to post a reply.

AuthorMessages
kamleshapUser is Offline

Posts:58

10/11/2005 7:04 AM  
On Error Resume Next
strComputer = "."
strMember2Add = "Domain\OuAdmins"

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
    ("Select * from Win32_Group  Where LocalAccount = TRUE AND SID='S-1-5-32-544'")
For Each objItem in colItems
    StrLocalAdmins = objItem.Name
Next
strCMD = "cmd.exe /c net localgroup " & strlocalAdmins & " /add """ & strMember2Add & """"
iRet = createobject("wscript.shell").run (StrCMD,0,false)
On 10/10/05, Kamlesh Parmar wrote:
I assume, copying it locally on first run, will make the subsequent run bit faster.
Do correct me, if I am mistaken...On 10/10/05, joe wrote:
Can't you run sid2user from the netlogon share?-----Original Message-----From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Freddy HARTONOSent: Monday, October 10, 2005 4:08 AMTo: '
ActiveDir@xxxxxxxxxxxxxxxxxx'Subject: RE: [ActiveDir] Adding local admin rights to non english native o
s?Thanks for the replies guysJoe, converting the administrator wellknown sid to user seems like a greatidea - but then involves copying the .exe into the local machines first andexecuting it?

Havent work out how to do it without copying the sid converter program...ifso would have to copy it from the netlogon? For some reason I've done likebelow but just aint working out :( perhaps some variables like set L is not
avail yet on startup?for /F "tokens=2 delims==" %%i IN ('set l') do set gpodcname=%%i if notexist %systemroot%\system32\sid2user.exe copy\\%gpodcname%\netlogon\sid2user.exe %systemroot%\system32\sid2user.exe
for /F "tokens=3" %%i IN ('sid2user 5 32 544 ^|qgrep Name') do setgpoadminvar=%%i net localgroup %gpoadminvar% /add "domain\OUAdmins"Thank you and have a splendid day!Kind Regards,
Freddy HartonoGroup Support EngineerInternationalSOS Pte Ltdmail: freddy.hartono@xxxxxxxxxxxxxxxxxxxx
phone: (+65) 6330-9740 - temp-----Original Message-----
From: Brian Desmond [mailto:brian@xxxxxxxxxxxxxxxx]Sent: Saturday, October 08, 2005 9:17 AMTo:
ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: RE: [ActiveDir] Adding local admin rights to non english native os?In 9 years of Spanish, I didn't learn Administrator in Spanish.Thanks,Brian Desmond

brian@xxxxxxxxxxxxxxxxc - 312.731.3132-----Original Message-----From:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx[mailto:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of joeSent: Friday, October 07, 2005 9:02 PMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: RE: [ActiveDir] Adding local admin rights to non english native os?
Better make that "Powerum Tripum Maximum" or else Laura might get on yourabout only representing the masculine gender. :o)I knew 3 years of Latin would eventually come in useful.  ;o)

-----Original Message-----From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx[mailto:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx
] On Behalf Of Darren Mar-EliaSent: Friday, October 07, 2005 5:54 PMTo: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: RE: [ActiveDir] Adding local admin rights to non english native os?
"Powerus Tripus Maximus" ?-----Original Message-----From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Ed Crowley [MVP]Sent: Friday, October 07, 2005 2:03 PMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: RE: [ActiveDir] Adding local admin rights to non english native os?
What is "Administrators" in Latin?Ed Crowley MCSE+Internet MVPFreelance E-Mail PhilosopherProtecting the world from PSTs and Bricked Backups!(tm)-----Original Message-----From:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx[mailto:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of
deji@xxxxxxxxxxxxxxSent: Friday, October 07, 2005 11:29 AMTo: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: RE: [ActiveDir] Adding local admin rights to non english native os?
This is when your high school language classes come in handy. You will needto know what "administrators" translates to in the target language. Forexample, in German, it's "administratoren", so your code will look like
this:net localgroup administratoren blah blah blahHTHSincerely,Dèjì Akómöláfé, MCSE+M MCSA+M MCP+IMicrosoft MVP - Directory Services
www.readymaids.com
- we know ITwww.akomolafe.comDo you now realize that Today is the Tomorrow you were worried about
Yesterday?  -anon________________________________From:
ActiveDir-owner@xxxxxxxxxxxxxxxxxx on behalf of Freddy HARTONOSent: Fri 10/7/2005 8:51 AM
To: 'activedir@xxxxxxxxxxxxxxxxxx
'Subject: [ActiveDir] Adding local admin rights to non english native os?Hi all,Usually net localgroup administrators xxx /add would work fine on computerstartup gpo - but how about on non english native oses? Would this work as
well?Thank you and have a splendid day!Kind Regards,Freddy HartonoGroup Support EngineerInternationalSOS Pte Ltdmail:
freddy.hartono@xxxxxxxxxxxxxxxxxxxx
phone: (+65) 6330-9740 - tempList info   : http://www.activedir.org/List.aspxList FAQ    :
http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   :
http://www.activedir.org/List.aspxList FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/List info   : http://www.activedir.org/List.aspx
List FAQ    :
http://www.activedir.org/ListFAQ.aspxList archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   :
http://www.activedir.org/List.aspxList FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/List info   : http://www.activedir.org/List.aspx
List FAQ    :
http://www.activedir.org/ListFAQ.aspxList archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   :
http://www.activedir.org/List.aspxList FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/List info   : http://www.activedir.org/List.aspx
List FAQ    :
http://www.activedir.org/ListFAQ.aspxList archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~"Fortune and Love befriend the bold"~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~"Fortune and Love befriend the bold"~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > Re: [ActiveDir] Adding local admin rights to non english native o s?



ActiveForums 3.7
Friends

Friends

VisualClickButoton
Members

Members

MembershipMembership:
Latest New UserLatest:cajoe64
New TodayNew Today:0
New YesterdayNew Yesterday:0
User CountOverall:5291

People OnlinePeople Online:
VisitorsVisitors:67
MembersMembers:0
TotalTotal:67

Online NowOnline Now:

Ads

Copyright 2012 ActiveDir.org
Terms Of Use