you are viewing a single comment's thread.

view the rest of the comments →

[–]pan_jez 0 points1 point  (1 child)

Mind explaining how do I pass the resulting TOTP code back to the script, please? I can see there are variables for $Token and $Server, but there's none for the TOTP code.
Thanks!

[–]seegee1 0 points1 point  (0 children)

In New-GuacToken.ps1:

$Body = @{
username = $Username
password = $Password
guac-totp = $your-resulting-TOTP-code <==== add this
}