How to add a User to Local Administrator Group all the ways (PowerShell,.....)
This article has not been completed yet. However, it may already contain helpful information and therefore it has been published at this stage.
Introduction:
# German:
Get-LocalGroupMember -Group "Administratoren"
# English
# Get-LocalGroupMember -Group "Administrators"
# Add a local user to the local administrator group
Add-LocalGroupMember -Group "Administratoren" -Member "TOMHOMEDESK\LokalAdmin"
# Check the result:
Get-LocalGroupMember -Group "Administratoren"
Conclusion:
Sources:
https://www.isunshare.com/windows-server/add-a-user-to-local-administrator-group.html