How to add URL to the trusted zone in Internet Explorer?

后端 未结 7 909
北海茫月
北海茫月 2020-12-31 22:12

How can I add an URL to the trusted site? It seems that there are stored in the registry, but where exactly?
The hints I\'ve googled so far weren\'t helpfull.

Th

7条回答
  •  情书的邮戳
    2020-12-31 22:35

    Powershell

    #Setting IExplorer settings
    Write-Verbose "Now configuring IE"
    #Add http://website.com as a trusted Site/Domain
    #Navigate to the domains folder in the registry
    set-location "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
    set-location ZoneMap\Domains
    
    #Create a new folder with the website name
    new-item website/ -Force
    set-location website/
    new-itemproperty . -Name * -Value 2 -Type DWORD -Force
    new-itemproperty . -Name http -Value 2 -Type DWORD -Force
    new-itemproperty . -Name https -Value 2 -Type DWORD -Force
    

提交回复
热议问题