Skip to content

Latest commit

 

History

History
 
 

Firefox disable pocket

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

PowerShell: Firefox disable pocket

Objective:

  • Firefox disable pocket

PowerShell snippet:

$settings = 
[PSCustomObject]@{
    Path  = "SOFTWARE\Policies\Mozilla\Firefox"
    Value = 1
    Name  = "DisablePocket"
} | group Path

foreach($setting in $settings){
    $registry = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey($setting.Name, $true)
    if ($null -eq $registry) {
        $registry = [Microsoft.Win32.Registry]::LocalMachine.CreateSubKey($setting.Name, $true)
    }
    $setting.Group | %{
        $registry.SetValue($_.name, $_.value)
    }
    $registry.Dispose()
}