#43203 - 2003-07-23 11:01 AM
Add Domain group to a local Group
|
Robidog_dup1
Lurker
Registered: 2003-07-23
Posts: 3
|
Hello
I need to complete my script to put a Global Domain Group (Domain Users) to a local Group (Power Users) which is after a new Installation not like this. Need Power User Rights on the Clients to get Burning SW on Clients Working.
I tried like this but this script is only working with Users to Local Groups and not Groups to Local Groups
shell net localgroup "Power Users" "glion\Domain Users" /add
But I dont like Shells in my script...
I Tried also this:
AddUserToGroup (@OMAIN, "Domain Users", @HOSTNAME, "Guests")
Function AddUserToGroup ($DomainString, $DomainGroupString, $LocalString, $LocalGroupString) ? "Adding $UserName to $GroupName. Please Wait..."
$GroupObj = GetObject("WinNT://" + $LocalString + "/" + $LocalGroupString) $GroupObj.Add ("WinNT://" + $DomainString + "/" + $DomainGroupString) $DomainObj = "" $GroupObj = ""
EndFunction
But this is only working with Users...
What can I do?
banz@glion.ch
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2233 anonymous users online.
|
|
|