How to use the request to go through the administrator form
/authenticate.action?destination=/admin/viewgeneralconfig.action
Keeping the old session, I switch to the form, but I don’t know what parameters in the request I need to set in order to log in.
so far something like this
$urldsds = 'http://10.**.**.**authenticate.action?destination=/admin/viewgeneralconfig.action'
$test= $body = @{
'password' = '1234567'}
$test2= $test| ConvertTo-Json
Invoke-WebRequest -Method POST -UseBasicParsing $urldsds -ContentType "application/json" -WebSession $Session -Body $test2