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