Hello,
I am trying to make a discovery for objects on website but when trying go through all elements on the page it doesn't give me any results even though script works fine on server where monitoring agent is making it while running it from ISE or Powershell. Healthservice is running as local system but also trying to run it as system it works fine from Powershell directly but not with SCOM Discovery.
So basically there is:
$site = Invoke-WebRequest -Uri 'https://somesite.com' -> this returns some parts of the data, also when trying to export-clixml is not complete
$site.allElements -> this doesn't return any data, looks like invoke-webrequest behave like with -usebasicparsing
Maybe someone had this issue before and resolved it somehow ?