Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.