How to add a trusted site to web options in Windows 10

%3CLINGO-SUB%20id%3D%22lingo-sub-2433899%22%20slang%3D%22en-US%22%3EHow%20to%20add%20a%20trusted%20site%20to%20web%20options%20in%20Windows%2010%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2433899%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EHello.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EThis%20is%20my%20first%20post%20on%20the%20forum%2C%20so%20let%20me%20introduce%20yourself.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EMy%20name%20is%20Robert%20Gorajski%20and%20welcome%20everyone.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EMy%20first%20post%20applies%20to%20the%20possibility%20of%20adding%20a%20trusted%20site%20in%20network%20settings%20using%20PowerShell.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EI%20mean%20exactly%20about%20the%20following%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Przechwytywanie.PNG%22%20style%3D%22width%3A%20674px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287786iBEA19B80244D9900%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Przechwytywanie.PNG%22%20alt%3D%22Przechwytywanie.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EI%20tried%20to%20do%20this%20as%20follows%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Eset-location%20%22HKCU%3A%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CInternet%20Settings%22%20%0Aset-location%20ZoneMap%5CDomains%20new-item%20some-server.com%0Aset-location%20some-server.com%20%0Anew-itemproperty%20.%20-Name%20http%20-Value%202%20-Type%20DWORD%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EUnfortunately%2C%20after%20adding%20in%20internet%20options%2C%20some-server.com%20does%20not%20appear%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3ECan%20you%20suggest%20how%20to%20do%20it%3F%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EThank%20you%20very%20much%20in%20advance.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2433899%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2434410%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20add%20a%20trusted%20site%20to%20web%20options%20in%20Windows%2010%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2434410%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1075442%22%20target%3D%22_blank%22%3E%40gorajski_r%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EOK%20partly%20I%20will%20answer%20myself%2C%20although%20I%20still%20do%20not%20know%20how%20to%20solve%20the%20problem%20to%20the%20end.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EI%20sought%20by%20the%20record%20is%20in%20the%20case%20of%20my%20test%20computer%20in%20the%20key%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%5CHKEY_USERS%5CS-1-5-21-3419930908-1354286565-637230989-88540%5CSOFTWARE%5CMicrosoft%5CWindows%5CCurrentVersion%5CInternet%20Settings%5CZoneMap%5CDomains%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EI%20see%20the%20key%20in%20regedit%2C%20unfortunately%20I%20do%20not%20see%20him%20in%20PowerShell%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EGet-ChildItem%20HKU%3A%5C%20%7C%20Select-Object%20Name%0AGet-ChildItem%20%3A%20Cannot%20find%20drive.%20A%20drive%20with%20the%20name%20'HKU'%20does%20not%20exist.%0AAt%20line%3A1%20char%3A1%0A%2B%20Get-ChildItem%20HKU%3A%5C%20%7C%20Select-Object%20Name%0A%2B%20~~~~~~~~~~~~~~~~~~~%0A%20%20%20%20%2B%20CategoryInfo%20%20%20%20%20%20%20%20%20%20%3A%20ObjectNotFound%3A%20(HKU%3AString)%20%5BGet-ChildItem%5D%2C%20DriveNotFoundException%0A%20%20%20%20%2B%20FullyQualifiedErrorId%20%3A%20DriveNotFound%2CMicrosoft.PowerShell.Commands.GetChildItemCommand%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22VIiyi%22%3E%3CSPAN%20class%3D%22JLqJ4b%20ChMk0b%22%3E%3CSPAN%3EDoes%20any%20of%20you%20know%20why%3F%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello. This is my first post on the forum, so let me introduce yourself. My name is Robert Gorajski and welcome everyone.

 

My first post applies to the possibility of adding a trusted site in network settings using PowerShell. I mean exactly about the following:

 

Przechwytywanie.PNG

 

 

I tried to do this as follows:

 

 

set-location "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" 
set-location ZoneMap\Domains new-item some-server.com
set-location some-server.com 
new-itemproperty . -Name http -Value 2 -Type DWORD

 

 

 

Unfortunately, after adding in internet options, some-server.com does not appear Can you suggest how to do it?

 

Thank you very much in advance.

 

1 Reply

@gorajski_r 

 

OK partly I will answer myself, although I still do not know how to solve the problem to the end.

I sought by the record is in the case of my test computer in the key:

 

 

\HKEY_USERS\S-1-5-21-3419930908-1354286565-637230989-88540\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains

 

 

I see the key in regedit, unfortunately I do not see him in PowerShell

 

 

Get-ChildItem HKU:\ | Select-Object Name
Get-ChildItem : Cannot find drive. A drive with the name 'HKU' does not exist.
At line:1 char:1
+ Get-ChildItem HKU:\ | Select-Object Name
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (HKU:String) [Get-ChildItem], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

 

 

Does any of you know why?