Skip to content

Instantly share code, notes, and snippets.

@EinPinsel
Last active October 1, 2018 07:15
Show Gist options
  • Save EinPinsel/7d1baaa7a1289c2a5245278b2d46c4eb to your computer and use it in GitHub Desktop.
Save EinPinsel/7d1baaa7a1289c2a5245278b2d46c4eb to your computer and use it in GitHub Desktop.
Powershell Profile for Proxy Configuration from IE
# Make install of modules a little bit more easier
$PSDefaultParameterValues['Install-Module:Scope'] = 'CurrentUser'
# For VS:Code
$ErrorActionPreference = "Silentlycontinue"
# Make the shell nice and h4x0r-style
$Shell = $Host.UI.RawUI
$Shell.BackgroundColor="Black"
$Shell.ForegroundColor="Green"
$size = $Shell.BufferSize
$size.width=200
$size.height=60
$Shell.BufferSize = $size
$Shell.WindowSize = $size
# Default Proxy into it!
$webclient = New-Object System.Net.WebClient
$webclient.Headers.Add("user-agent","Test")
$webclient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
# Revert to default
$ErrorActionPreference = "Continue"
# Functions
function Get-Week {get-date -UFormat %V}
Clear-Host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment