Hi!
I have tried this and it does work for the computers and servers that are in English Windows versions.
We have most Swedish windows versions and where the local administrator group is named 'Administatörer' so it do not match the script commands. Will there be any support to add own administrators group by name in the script or other solution for this?
Regards,
Peter
Only working with English Windows, Administrators
-
- Posts: 7
- Joined: Thu Jan 05, 2017 12:46 am
- 7
Re: Only working with English Windows, Administrators
Check the "Admon Maintenance Service" script in the Maintenance folder. I think you might be able to modify the Powershell script to grab the Swedish administrators group as well. You could probably make another line such as:
The notmatch "command completed successfully" might have to change based on the output of the command.
Just a suggestion, I'm not the developer and don't know if this will break anything else. I can't imagine it would, unless there are some Swedish characters it does not like.
Code: Select all
$myadmins += net localgroup swedishadmins | where {$_ -AND $_ -notmatch "command completed successfully"} | select -skip 4 -ErrorAction SilentlyContinue
Just a suggestion, I'm not the developer and don't know if this will break anything else. I can't imagine it would, unless there are some Swedish characters it does not like.