Pi setup.ps1
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
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