How deploy a script to add "domain users" in local group ?
I would like to deploy a script to add "domain users" group in local group.
I tried everything to deploy.
It's working in local but not with Kace, i don't know why.
I tried also to disable UAC
I tried "run as" with
Here are my scripts :
net localgroup "group" /add
net localgroup "group" "domain\domain users" /add
New-LocalGroup -Name "group"
$DomainGroup = "domain users"
$LocalGroup = "group"
$Computer = $env:computername
$Domain = $env:userdomain
Maybe someone get the answer
Works for me in scripting. I upload the ps1 file as a dependency to the script and then use "Launch a program..." with these settings:
Parameters: -nologo -executionpolicy bypass -WindowStyle hidden -file $(KACE_DEPENDENCY_DIR)\add-user-to-group.ps1