This file contains hidden or 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
| param ( | |
| [Parameter(Mandatory = $true)] | |
| [string]$certName | |
| ) | |
| $validFrom = Get-Date -Year 2020 -Month 1 -Day 1 | |
| $validTo = Get-Date -Year 2099 -Month 1 -Day 1 | |
| $cert = New-SelfSignedCertificate -DnsName $certName -CertStoreLocation "Cert:\CurrentUser\My" -KeyExportPolicy Exportable -KeyProtection None -KeyUsage DigitalSignature,KeyEncipherment -NotBefore $validFrom -NotAfter $validTo | |
| $thumbprint = $cert.Thumbprint |
This file contains hidden or 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
| #SingleInstance Force ; replace old instance immediately | |
| SetTitleMatchMode, 2 | |
| Loop | |
| { | |
| WinGet, id, List, Remote Desktop Connection | |
| Loop, %id% | |
| { | |
| this_id := id%A_Index% | |
| WinGetTitle, this_title, ahk_id %this_id% | |
| ; TrayTip, Found RDP session, %this_title%, 2, 17 |
This file contains hidden or 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
| $profile = $env:userprofile | |
| $winget = "$profile\AppData\Local\Microsoft\WindowsApps\winget.exe" | |
| &$winget install --silent "GitHub.GitHubDesktop" | |
| &$winget install --silent "SublimeHQ.SublimeText.3" | |
| &$winget install --silent "voidtools.Everything" | |
| &$winget install --silent "Ghisler.TotalCommander" | |
| &$winget install --silent "Git.Git" | |
| #&$winget install --silent "LINQPad.LINQPad.8" | |
| #&$winget install --silent "Microsoft.VisualStudioCode" | |
| #&$winget install --silent "Mozilla.Firefox" |
OlderNewer