Last active
October 1, 2018 07:15
-
-
Save EinPinsel/7d1baaa7a1289c2a5245278b2d46c4eb to your computer and use it in GitHub Desktop.
Powershell Profile for Proxy Configuration from IE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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