Skip to content

Instantly share code, notes, and snippets.

@theparticleman
Last active January 30, 2016 19:19
Show Gist options
  • Save theparticleman/e3e5a34b8bf5f1911677 to your computer and use it in GitHub Desktop.
Save theparticleman/e3e5a34b8bf5f1911677 to your computer and use it in GitHub Desktop.
Basic machine setup
Rename-Computer tau
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -DisableShowProtectedOSFiles
Set-TaskbarOptions -Size Small
Install-WindowsUpdate
cinst chocolatey
cinst googlechrome
cinst notepadplusplus
cinst 7zip
cinst paint.net
cinst launchy
$o = New-Object -com Shell.Application
$folder = $o.Namespace("c:\users\jonathan").Self
$verb = $folder.Verbs() | where { $_.Name -match "Pin to Quick access"}
$verb.DoIt()
Add-Type -AssemblyName System.Windows.Forms
start .
Start-Sleep -Milliseconds 1000
[System.Windows.Forms.SendKeys]::SendWait("%v")
Start-Sleep -Milliseconds 500
[System.Windows.Forms.SendKeys]::SendWait("y")
Start-Sleep -Milliseconds 500
[System.Windows.Forms.SendKeys]::SendWait("o")
Start-Sleep -Milliseconds 500
[System.Windows.Forms.SendKeys]::SendWait("{DOWN}")
Start-Sleep -Milliseconds 500
[System.Windows.Forms.SendKeys]::SendWait("%a")
Start-Sleep -Milliseconds 200
[System.Windows.Forms.SendKeys]::SendWait("{ESC}")
Start-Sleep -Milliseconds 200
[System.Windows.Forms.SendKeys]::SendWait("%{F4}")
del C:\Users\Public\Desktop\*.lnk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment