OSD icon indicating copy to clipboard operation
OSD copied to clipboard

Added Experimental Proxy Support to Edit-OSDCloud.winpe.ps1

Open marcohald opened this issue 3 years ago • 2 comments

It works in my Environment with a Proxy that does Basic Auth. I'm not able to test it without a Proxy at the moment. But it should continue to work.

The Paramter addition to Test-WebConnection and Save-WebFile are not as beatufiull as I would like to have. But i know no other Method to do it. I'm happy if anyone can Point me in a Direction to configure the Proxy Settings in a Config File that the commands Test-WebConnection and Save-WebFile can read or anything like that.

marcohald avatar Jun 10 '21 08:06 marcohald

I'll start testing on this, but I agree, there should be a better way. Could this be done with a Global Variable possibly?

OSDeploy avatar Jun 16 '21 03:06 OSDeploy

If I understand you right, you suggest to use the $global Prefix for each Proxy Configuration Option ? Should I keep the Parameter for it in the Edit-OSDCloud.winpe function and set the Global Variables there ? Should I use any specific prefix, so that they do not collide with Global Variables that a User has already set ?

marcohald avatar Jun 17 '21 05:06 marcohald