How to Configure WPAD through DNS


  • First you have to configure a wpad site in your IIS
  1. Open the proxypac.pac file you have previously created and save as wpad.dat.
  2. Copy wpad.dat to the location: C:\inetpub\wwwroot
  3. Open IIS Management Console
  4. Add web site –  right click on Sites
  5. Site name: wpad; Physical Path: C:\inetpub\wwwroot; Hostname: wpad / Set the binding with the Server IP address and click OK.
  6. In the newly created site add mime type: .dat; “MIME type: application/x-ns-proxy-autoconfig”
 
  • DNS setup in order to have automatic proxy
  1. On your Domain Controller go to DNS.
  2. On your existing domain add New Zone, Primary Zone, Zone name: wpad.
  3. In this zone right click and select New Host. Name: wpad, IP address: the IP of your IIS server hosting the wpad.dat file.
  4. On the client machine: Set as primary DNS the IP of the Domain controller.

On Microsoft Windows Server 2008 or 2008R2 the WPAD domain can be blocked. To check if it is blocked run CMD with the command: dnscmd /info /globalqueryblocklist. If wpad appears in the response, you should run the command: dnscmd /config /enableglobalqueryblocklist 0. This should remove the blocking. 
  • Browser deployment from Group Policy:
  1. On the Domain Controller create a new Organization Unit with all the users you want to use the proxypac.pac file.
  2. Right click on the new OU and select “Create a GPO in this domain, and Link it here...”. Name it properly. Edit the new policy.
  3. In the same policy that enforces the Logon Script expand User Configuration/ Policies/ Windows Settings/ Internet Explorer Maintenance/ Connection / Automatic Browser Configuration.
  4. Enable “Automatically detect configuration settings”.
  5. On the Client side: Open CMD and run the command “gpupdate /force”.
  6. Delete the browsing history.
  7. Check that in IE - Automatically detect settings is enabled.
  8. Close and Reopen IE and verify if the wpad.dat has been updated and is the one from your IIS server. You can do this by opening Internet Options /General /Browsing History section – Settings/ View Files. In the opened folder check to see if you have wpad.dat file and that the content is correct.

For Firefox you can manually set the settings from the client machine:
  1. Open Firefox.
  2. Select Tools from the application menu, click Options.
  3. Click the Advanced section, click Settings under Connection.
  4. Select Auto-detect proxy settings for this network, click OK.

Automatically keep current version of config files when apt-get install

 

apt install -o Dpkg::Options::="--force-confold" --only-upgrade <package> 


Remote:


ssh <user>@<ip_address> 'apt install -o Dpkg::Options::="--force-confold" --only-upgrade <package>'


Robocopy fast copy with multithreading

 

robocopy "D:\SOURCE" "\\10.20.30.40\F$\DESTINY" /E /ZB /SEC /COPYALL /R:3 /W:3 /V /ETA /TEE /MT:16 /XD "D:\SOURCE\EXCLUDE"


/E — Copy Subdirectories, including empty ones.

/ZB — Uses restartable mode. If access is denied, use backup mode.

/R:3 — Retry 3 times (you can specify a different number, default is 1 million).

/W:3 — Wait 3 seconds before retrying (you can specify a different number, the default is 30 seconds).

/V — Produce verbose output, showing skipped files.

/COPYALL — copy all file information.

/SEC — copy security information.

/TEE — open console.

/MT:16 — Do multi-threaded copies with n threads (default is 8, max 128).

/XD -  exclude folder. 

 

Install MSIX with powershell

 Add-AppxPackage -Path "C:\Users\MyUserName\Downloads\affinity-designer-2.0.0.msix" -DependencyPath " https://aka.ms/Microsof...

Mais vistos