Hi William,
Thank you for your answer.
probably things have changed since you made the video. I cannot get the same results, in fact, all I get is Powershell presenting me with an error...
When I login to the Administrator GUI as sysadmin, I do see the two first lines in the network view are tokens .
The content of the first one, however, is different from what you get back.
First tokens line copied as Powershell shows this:
Invoke-WebRequest -Uri "https://plops300.vlkintern.nl:20961/v1/security/tokens" `>> -Method "POST" `>> -Headers @{>> "Accept"="application/json, text/plain, */*";>> "Origin"="https://plops300.vlkintern.nl:20961";>> "Authorization"="Basic c3lzYWRtaW46c3lzYWRtaW4=";>> "Sec-Fetch-Dest"="empty";>> "User-Agent"="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36";>> "Sec-Fetch-Site"="same-origin";>> "Sec-Fetch-Mode"="cors";>> "Referer"="https://plops300.vlkintern.nl:20961/";>> "Accept-Encoding"="gzip, deflate, br";>> "Accept-Language"="en-US,en;q=0.9">> } `>> -ContentType "application/json;charset=UTF-8" `>> -Body "[]"
Running this in Powershell just gives me :
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.At line:1 char:1+ Invoke-WebRequest -Uri "https://plops300.vlkintern.nl:20961/v1/securi ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc eption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
(Note: the line break between lines 5 and 6 come from copy/paste action. This is not what I see when I do the PS call).
The second tokens line does contain the token returned, but here again: the copy as Powershell does not look the same as your snippet. And also fail when I run it in PS, same error.
Could you please enlighten me how I should tackle this situation ?
What info do you need from me so you can point me in the right direction ?
Thanks,
Hans