Forum Discussion
Mike_Moniz
Professor
3 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
}...
Related Content
- 5 months ago
- 7 months ago
- 2 years ago