Forum Discussion
Mike_Moniz
Professor
5 years agoOk, if you already have the username and password in a device property/token you can use code like this to convert the password to hex (I didn't test this):
$Username = '##ddbinfoweb.user##'$PasswordRaw = '##ddbinfoweb.pass##'$Bytes = [System.Text.Encoding]::Unicode.GetBytes($PasswordRaw) $Password = [Convert]::ToBase64String($Bytes)$Body = @{username=$Username;password=$Password}...