Add chrome popups

Add chrome popups

###

$urls = @(
    "https://<webstite>",
    "https://<webstite>",
    "https://<webstite>",
    "https://<webstite>",
    "https://<webstite>"
)

 

$registryPath = "HKCU:\Software\Policies\Google\Chrome\PopupsAllowedForUrls"

 

if (!(Test-Path $registryPath)) {

    New-Item -Path $registryPath -Force | Out-Null

}

 

$existingUrls = Get-ItemProperty -Path $registryPath -ErrorAction SilentlyContinue

$nextIndex = ($existingUrls.PSObject.Properties | Where-Object { $_.Name -match '^\d+$' } | Measure-Object).Count

 

foreach ($url in $urls) {

    New-ItemProperty -Path $registryPath -Name $nextIndex -Value $url -PropertyType String -Force | Out-Null

    "הכתובת $url נוספה להגדרות החלונות הקופצים של כרום."

    $nextIndex++

}

###


To download the command click here.
Once download complete, import it throw the import option in the Custom command section.

For any additional information, please contact support@eprocsolutions.com