From c524380a2df2f909d3b64afcf437836604e5ec55 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 12 Nov 2025 00:28:05 +0100 Subject: [PATCH 1/2] Feature: Group Policy (ADMX/ADML) --- GPO/NETworkManager.admx | 37 +++++++++++++++++++++++++++++++++++ GPO/en-US/NETworkManager.adml | 16 +++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 GPO/NETworkManager.admx create mode 100644 GPO/en-US/NETworkManager.adml diff --git a/GPO/NETworkManager.admx b/GPO/NETworkManager.admx new file mode 100644 index 0000000000..e8346821f0 --- /dev/null +++ b/GPO/NETworkManager.admx @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GPO/en-US/NETworkManager.adml b/GPO/en-US/NETworkManager.adml new file mode 100644 index 0000000000..2c6790195f --- /dev/null +++ b/GPO/en-US/NETworkManager.adml @@ -0,0 +1,16 @@ + + + NETworkManager Policy Settings + Policy settings for NETworkManager + + + At least NETworkManager 2025.11.11.0 + Disable Update Check + When enabled, this policy prevents NETworkManager from checking for updates on startup. When disabled or not configured, update checks are performed. + + + \ No newline at end of file From c5f2e34050f4e7c032e26481932b8a0b15fc9636 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Wed, 12 Nov 2025 00:36:21 +0100 Subject: [PATCH 2/2] Feature: Update local GPO via ps script --- Scripts/Update-LocalGroupPolicy.ps1 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Scripts/Update-LocalGroupPolicy.ps1 diff --git a/Scripts/Update-LocalGroupPolicy.ps1 b/Scripts/Update-LocalGroupPolicy.ps1 new file mode 100644 index 0000000000..351ce82579 --- /dev/null +++ b/Scripts/Update-LocalGroupPolicy.ps1 @@ -0,0 +1,24 @@ +# Check for administrative privileges and rerun as administrator if needed +if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) +{ + Write-Host "Script is not running with administrative privileges. Restarting with elevated rights..." + Start-Process -FilePath "powershell.exe" -ArgumentList "-NoProfile -ExecutionPolicy Bypass -NoExit -File `"$PSCommandPath`"" -Verb RunAs + exit +} + +# Update local group policy files for NETworkManager +[string]$GpoFolderPath = Join-Path -Path (Split-Path $PSScriptRoot -Parent) -ChildPath "GPO" +[string]$AdmxFilePath = Join-Path -Path $GpoFolderPath -ChildPath "NETworkManager.admx" +[string]$AdmlFolderPath = Join-Path -Path $GpoFolderPath -ChildPath "en-US" +[string]$AdmlFilePath = Join-Path -Path $AdmlFolderPath -ChildPath "NETworkManager.adml" + +# Copy ADMX file to local policy store +$LocalAdmxPath = Join-Path -Path "$env:SystemRoot\PolicyDefinitions" -ChildPath "NETworkManager.admx" +Copy-Item -Path $AdmxFilePath -Destination $LocalAdmxPath -Force + +# Copy ADML file to local policy store +$LocalAdmlPath = Join-Path -Path "$env:SystemRoot\PolicyDefinitions\en-US" -ChildPath "NETworkManager.adml" +Copy-Item -Path $AdmlFilePath -Destination $LocalAdmlPath -Force + +# End of script +Write-Host "Local Group Policy files for NETworkManager have been updated."