Get Logged On User

Import-Module $SuperOpsModule

$LoggedOnUser = [Environment]::UserName
Write-Output "$LoggedOnUser"

Send-CustomField -CustomFieldName "Logged On User" -Value $LoggedOnUser

Script data

Language - PowerShell

Run as - Logged In User

Script timeout duration - 5 Mins

Read me

Captures current logged on username (without domain) and populates a custom field. Perfect for use when calling other scripts.

1