mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-15 02:19:39 +01:00
Add on-desktop-login.ps1
This commit is contained in:
parent
1cd755a378
commit
689da89e89
21
Scripts/on-desktop-login.ps1
Normal file
21
Scripts/on-desktop-login.ps1
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user