Skip to content

Instantly share code, notes, and snippets.

@theparticleman
Last active February 20, 2019 04:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save theparticleman/6192052f0596274956686a35e8ca018d to your computer and use it in GitHub Desktop.
Pi setup.ps1
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -DisableShowProtectedOSFiles
Set-TaskbarOptions -Size Small
cinst git
cinst visualstudiocode
cinst notepadplusplus
cinst 7zip
cinst paint.net
$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