First I'm new to PowerShell scripting.
I created a script that the script should greet me with the date.
...
$heute=(Get-Date).ToShortDateString()
$name=$env:UserName
$sven=if ($name -eq 'T1122') {Write-Host 'Sven Kraemer')
Write-Output "Today is" $heute, $sven
...
The output of $env:UserName = T1122 but I does not want to see T1122 as salution but my real name.
T1122 should change into my real name. If this kind of string is T1122 then write my real name.
How I can do it? Thank for your help.