Add write-joke.ps1 to on-desktop-login.ps1

This commit is contained in:
Markus Fleschutz 2023-09-26 07:28:08 +02:00
parent 8c8bfd7ee7
commit 0fc5c2ca4a

View File

@ -2,8 +2,8 @@
.SYNOPSIS .SYNOPSIS
Executes tasks on desktop login Executes tasks on desktop login
.DESCRIPTION .DESCRIPTION
This PowerShell script executes welcome scripts on every desktop user login. On Windows create and put a symbolic link to this This PowerShell script executes useful tasks on every desktop login by the user (e.g. open Web dashboards, list the news, fetch repos).
script into the Autostart folder (usually at: C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup). NOTE: For installation on Windows create and put a symbolic link to this script into the Autostart folder (usually at: C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup).
.EXAMPLE .EXAMPLE
PS> ./on-desktop-login.ps1 PS> ./on-desktop-login.ps1
.LINK .LINK
@ -19,6 +19,8 @@ try {
" " " "
& "$PSScriptRoot/list-news.ps1" & "$PSScriptRoot/list-news.ps1"
" " " "
& "$PSScriptRoot/write-joke.ps1"
" "
& "$PSScriptRoot/cd-repos.ps1" & "$PSScriptRoot/cd-repos.ps1"
& "$PSScriptRoot/fetch-repos.ps1" & "$PSScriptRoot/fetch-repos.ps1"
" " " "