Disable/Enable Downloading on Windows 11.


Recommended Posts

Hi, so my son keeps downloading stuff without permission. I found a simple solution to curb this is just to not allow downloads via group policy. This works well. But my partner is illiterate when it comes to computers and stopping downloads in the way i am stops everything including store/updates! 

We have the following setup:
OS:
Windows 11 22H2
Accounts:
1)
Partners account is admin.  2) Sons account is standard user no admin controls to change anything without partners (admins) pin/password. 
Family safety is turned on with age limits. Other browsers are blocked he is locked into using only Edge (so family safety stuff works). The issue is he can download random stuff from the internet via Edge unless we block the whole internet and only allow whitelist sites. (not ideal for when he is doing his school work). These blocks via family safety also still allow him to download countless rubbish from the store within his set age limit. (mega problem!) 

Does anyone know of a more easy way maybe a simple Batch file for on/off that i can place on the desktop of my partners account or something? So when i am not around she can just login to her account and enable/disable as and when needed.

The goal here is to stop him being able to download rubbish from the Store or via Edge and make turning this on/off as simple as possible for a tech illiterate partner.

The current method i am using is GPEDIT.MSC going to User Configuration > Administrative Templates > Windows Components > Attachment Manager. Then clicking Do not preserve zone information in file attachments and then hitting Enabled and then Ok.  

Any help would be much appreciated. 

Don't use batch, use PowerShell. 

https://gpsearch.azurewebsites.net/#26 - It's a user policy, so it can scoped to per user (can be disabled on the admin account, enabled on the other account).

https://www.windowscentral.com/how-apply-local-group-policy-settings-specific-users-windows-10

PowerShell -

Enable policy.ps1:

# Enable Do not preserve zone information in file attachments
$RegistryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\attachments"
$RegistryName = "Savezoneinformation"
$RegistryValue = "1"
if (!(Test-Path $RegistryPath)) {
    New-Item -Path $RegistryPath -Force | Out-Null
    New-ItemProperty -Path $RegistryPath -Name $RegistryName -Value $RegistryValue -PropertyType DWORD -Force | Out-Null
    Write-Host -ForegroundColor Green "Do not preserve zone information in file attachments is enabled"
}
else {
    New-ItemProperty -Path $RegistryPath -Name $RegistryName -Value $RegistryValue -PropertyType DWORD -Force | Out-Null
    Write-Host -ForegroundColor Green "Do not preserve zone information in file attachments is enabled"
}

Disable policy.ps1:

# Disable Do not preserve zone information in file attachments
$RegistryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\attachments"
$RegistryName = "Savezoneinformation"
$RegistryValue = "2"
if (!(Test-Path $RegistryPath)) {
    New-Item -Path $RegistryPath -Force | Out-Null
    New-ItemProperty -Path $RegistryPath -Name $RegistryName -Value $RegistryValue -PropertyType DWORD -Force | Out-Null
    Write-Host -ForegroundColor Green "Do not preserve zone information in file attachments is disabled"
}
else {
    New-ItemProperty -Path $RegistryPath -Name $RegistryName -Value $RegistryValue -PropertyType DWORD -Force | Out-Null
    Write-Host -ForegroundColor Green "Do not preserve zone information in file attachments is disabled"
}

Right click > Run with PowerShell.

Edited by binaryzero
  • Love 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Feels like Hitman in Bond skin. But overall a great game! 👍
    • Microsoft released new Defender update for Windows 11, 10, Server ISO installations by Sayan Sen Microsoft releases new Windows Defender update packages very frequently to protect against various newly discovered malware. Once a while every three months or so, the company also pushes out these updates to Windows images (WIM and VHD) and ISOs, that are used to install Windows. Hence with the newest Windows 11 update available via the official MCT tool, you should get these definitions. This update package is necessary as a Windows installation image may contain old, outdated anti-malware definitions and software binaries. Aside from better security, these updates can also provide improved performance benefits in some cases. When a new Windows installation is set up, there may be a temporary security risk due to outdated Microsoft Defender protection in the OS installation images. This happens because the antimalware software included in these images might not be up to date. Thus Microsoft says that these updated definitions essentially help close this protection gap. Microsoft delivered the latest security definitions for Windows images via security intelligence update version 1.445.323.0. The Defender package version is also the same. It applies to Windows 11, Windows 10 ESU, Windows 10 Enterprise LTSC 2021, Win 10 Ent LTSC 2019, Win 10 Ent LTSB 2016, Windows Server 2022, Windows Server 2019, and Windows Server 2016. Microsoft writes: "This package updates the anti-malware client, anti-malware engine, and signature versions in the OS installation images to following versions: Platform version: 4.18.26040.7 Engine version: 1.1.26040.8 Security intelligence version: 1.447.236.0" From Microsoft's security bulletin, we learn that the security intelligence update version 1.447.236.0 was released early last month and adds threat detections for various malware like trojan, backdoor exploits, ransomware, stealers, AutoKMS, and more. For those wondering, the latest intelligence update is version 1.451.297.0 at the time of writing.
    • Hello, Hope all is well. I am in UK.  
  • Recent Achievements

    • Dedicated
      Mark Spruce earned a badge
      Dedicated
    • Collaborator
      conkir earned a badge
      Collaborator
    • Rising Star
      olavinto went up a rank
      Rising Star
    • One Month Later
      lamborghiniv10 earned a badge
      One Month Later
    • Week One Done
      lamborghiniv10 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      504
    2. 2
      PsYcHoKiLLa
      271
    3. 3
      +Edouard
      75
    4. 4
      Skyfrog
      74
    5. 5
      Steven P.
      71
  • Tell a friend

    Love Neowin? Tell a friend!