Product: PowerShell Universal
Version: 1.5.21
referring to the topic New-PSUEndpoint: Get identity of caller - PowerShell Universal - Ironman Software Forums I am trying within New-PSUEndpoint to use the current username ($user, $Username or $Identity) for the filename which should be stored.
Neither $User nor $Username and nor $Identity do work. They seem to be empty?
New-PSUEndpoint -Url “/TNs” -Method “POST” -Endpoint {
$Body
$filename = $Identity + “_akt_TNs.txt”*
$filename = $User + “_akt_TNs.txt”*
$filename = $Username + “_akt_TNs.txt”*
$Body | out-file C:\UniversalDashborad-PS\OUTPUT\$filename -Force
}
I have just upgraded powershell universal from 1.5.14 to 1.5.21. But it still does not work.
Thanks for any help!