Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
# get pipeline user
whoami
#we check if the pipeline service runs as our elevated user)
$pipelineUser = whoami
$pos= $pipelineUser.IndexOf("\")
$pipelineUserName = $pipelineUser.Substring($pos+1)
#get elevated user
$elevatedUser = $env:pipelineElevatedUser_name
$posel= $elevatedUser.IndexOf("\")
$elevatedUserName= $elevatedUser.Substring($posel+1)
If ($pipelineUserName -eq $elevatedUserName ) {write-host "user has been elevated"} else {write-error "user has not been elevated, did you provide the password at release time?"}