diff --git a/profiles/DerGeret/config.nix b/profiles/DerGeret/config.nix index b7c3ae8a..4c8926da 100644 --- a/profiles/DerGeret/config.nix +++ b/profiles/DerGeret/config.nix @@ -13,6 +13,7 @@ users.Manuel = { microsoftAccount = true; + groups = ["Administrators"]; }; }; diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index b875382d..abe191de 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -527,6 +527,10 @@ $null = New-Module { $configure = { Deploy-SoftwareAction -Action ([InstallerAction]::ConfigureUser); Remove-LocalGroupMember -Member "$user" @adminGroup -ErrorAction SilentlyContinue; + + foreach ($group in Get-UserConfig -UserName "$user" "groups") { + Add-LocalGroupMember -Member "$user" -Name "$group"; + } } if ($msAccount) {