Windows 10 Powershell Invoke-WebRequest "Windows Security Warning " -


alright 1 big problem in opinion microsoft needs address immediately. steps reproduce this:

powershell> invoke-webrequest "anywebsitewithcookies.com" (let's microsoft.com example)

what happens following warning: http://i.stack.imgur.com/tr023.jpg

now horrible. why microsoft thinks acceptable beyond me, in windows 8.1 there workaround. if went into:

control panel > internet options > privacy http://i.stack.imgur.com/osls3.jpg

you set cookies accepted time. way rid of message , still retain dom parsing functionality. -usebasicparsing isn't solution me, because want use functionality of invoke-webrequest returns without basic parsing.

however in windows 10 microsoft decided rid of slider whatever reason: i.stack.imgur.com/jenm3.jpg

this problem can reproduced on every windows 10 machine , destroys how invoke-webrequest can used in silent scripting environment, because script hangs , waits dialog answered. there way still set cookies accepted in 8.1? tried every setting in internet options in windows 10, nothing holds key. believe stopped using , perhaps moved setting elsewhere, can't find it. microsoft edge doesn't have many settings either, none of them helpful.

this infuriating. highly appreciated, create quite chaos in many environments.

after hours of searching found out though windows 10 doesn't display slider in internet options, still uses registry key corresponds it. have change:

hkey_current_user\software\microsoft\windows\currentversion\internet settings\zones\3 1a10 (dword) 0, values indicate same on slider windows 8.1: block cookies: 00000003 high: 00000001 medium high: 00000001 medium: 00000001 low: 00000001 accept cookies: 00000000


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -