Impedisci uso di OneDrive per archiviazione file: valore del Registro di sistema DisableFileSyncNGSCComputerHKLM\Software\Policies\Microsoft\Windows\OneDrive
- ID criterio
- PreventOnedriveFileSync
- Ambito
- Configurazione computer
- Supportato in
- Almeno Windows Server 2008 R2 o Windows 7
- Origine
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
- Categoria
- Componenti di Windows › OneDrive
Registro
DisableFileSyncNGSC
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\OneDrive Chiave corrente
- Valore abilitato
- 1
- Valore disabilitato
- 0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\OneDrive] ; Opzioni (usarne solo una) ; Abilitato "DisableFileSyncNGSC"=dword:00000001 ; Disabilitato "DisableFileSyncNGSC"=dword:00000000
CMD
:: Opzioni (usarne solo una) :: Abilitato reg add "HKLM\Software\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /t REG_DWORD /d 1 /f :: Disabilitato reg add "HKLM\Software\Policies\Microsoft\Windows\OneDrive" /v "DisableFileSyncNGSC" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive' -Force | Out-Null # Opzioni (usarne solo una) # Abilitato New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive' -Name 'DisableFileSyncNGSC' -PropertyType DWord -Value 1 -Force | Out-Null # Disabilitato New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive' -Name 'DisableFileSyncNGSC' -PropertyType DWord -Value 0 -Force | Out-Null