diff --git a/profiles/DerGeret/config.nix b/profiles/DerGeret/config.nix index 21ef87a3..f6a3d133 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 7de42953..ee643b7b 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -530,6 +530,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) {