Re: AD in Local Groups differente languajes?
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 05/09/04
- Next message: Jon: "Re: Regsitry"
- Previous message: Joe Richards [MVP]: "Re: How to determine last logon time for a computer account in a domain"
- In reply to: Emiliano G. Estevez: "AD in Local Groups differente languajes?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 09 May 2004 21:51:30 +0200
Emiliano G. Estevez wrote:
> I made a vbscript to add AD users (Administrators, Control Groups, etc.) to
> the local Administrators group on every workstation, the problem is that I
> have different languages on the workstation and the Administrators group
> works for the English language but not for the Spanish because in Spanish is
> administradores, so, anybody can suggest me a workaround for my script.
Hi
To run this WMI query against NT4 computers, WMI needs to be installed
on them (WMI comes default with WinME, Win2k, WinXP and Win2k3):
' Script is based on information in this article:
'
' Well Known Security Identifiers in Windows (Server) Operating Systems
' http://support.microsoft.com/?id=243330
strComputer = "." ' use "." for local computer
strGroupSID = "S-1-5-32-544" ' Well Known SID of the group
'On Error Resume Next
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_Group WHERE SID = '" & strGroupSID & "'")
For Each objItem in colItems
Wscript.Echo "Name of the Administrators group: " & objItem.Name
Next
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/community/scriptcenter/default.mspx
- Next message: Jon: "Re: Regsitry"
- Previous message: Joe Richards [MVP]: "Re: How to determine last logon time for a computer account in a domain"
- In reply to: Emiliano G. Estevez: "AD in Local Groups differente languajes?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|