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
&{ | |
(New-Object System.Net.WebClient).DownloadFile("http://dl.google.com/chrome/install/chrome_installer.exe", "$env:TEMP\chrome_installer.exe") | |
& "$env:TEMP\chrome_installer.exe" /silent /install | |
} |
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
&{ | |
(New-Object System.Net.WebClient).DownloadFile( | |
"https://download.sysinternals.com/files/SysinternalsSuite.zip", | |
"$env:TEMP\SysinternalsSuite.zip") | |
$Shell = New-Object -com shell.application | |
$Zip = $Shell.NameSpace("$env:TEMP\SysinternalsSuite.zip") | |
New-Item -ItemType Directory -Force -Path "$env:ProgramFiles\SysinternalsSuite" | |
$Shell.Namespace("$env:ProgramFiles\SysinternalsSuite").CopyHere($Zip.Items()) | |
[Environment]::SetEnvironmentVariable( | |
"Path", |
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
&{ | |
# Configure Windows Explorer Options | |
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' | |
Set-ItemProperty $key Hidden 1 | |
Set-ItemProperty $key HideFileExt 0 | |
Set-ItemProperty $key ShowSuperHidden 1 | |
Set-ItemProperty $key AlwaysShowMenus 1 | |
Set-ItemProperty $key AutoCheckSelect 0 | |
Stop-Process -ProcessName explorer | |
} |
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
&{ | |
# Select PFX file dialog | |
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null | |
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog | |
$OpenFileDialog.Title = "Select SSL Certificate in PFX format" | |
$OpenFileDialog.Filter = "Personal Information Exchange (*.pfx)|*.pfx" | |
$OpenFileDialog.ShowDialog() | Out-Null | |
$PFXFile = $OpenFileDialog.FileName | |
# Get password dialog |
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
Import-Module Webadministration | |
Get-ChildItem -Path IIS:\Sites | Where-Object { $_.State -eq 'Started' } | ForEach-Object { $_.Bindings.Collection } | ForEach-Object { $_.Protocol + '://' + $_.BindingInformation.Split(":")[2] } | Sort-Object | |
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
# Upload | |
&{ | |
$ErrorActionPreference = 'Stop' | |
$AWSRegion = "us-east-1" | |
$AWSAccessKeyId = "TODO: Access Key" | |
$AWSSecretAccessKey = "TODO: Secret Access Key" | |
$BucketName = "TODO: Bucket Name" | |
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null | |
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog | |
$OpenFileDialog.ShowDialog() | Out-Null |
OlderNewer