Add on-desktop-login.ps1

This commit is contained in:
Markus Fleschutz 2023-05-26 14:06:10 +02:00
parent 1cd755a378
commit 689da89e89

View File

@ -0,0 +1,21 @@
<#
.SYNOPSIS
Executes tasks on desktop login
.DESCRIPTION
This PowerShell script executes tasks on every desktop login.
.EXAMPLE
PS> ./on-desktop-login
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
& "$PSScriptRoot/open-dashboards.ps1"
& "$PSScriptRoot/open-windows-terminal.ps1"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}