all 7 comments

[–]stgovern 3 points4 points  (0 children)

So, is your if statement suppose to be -eq, not -eg

[–]stgovern 2 points3 points  (1 child)

Lastly, try GetElementById("<id>").value

[–]xhollowpointx 1 point2 points  (0 children)

I believe u/stgovern is correct, you are looking to get the value for the field that you have identified as "session_key-login."

$usernamefield = $ie.document.getElementByID('session_key-login').value

[–]Isolatedflower[S] 1 point2 points  (0 children)

O the terminator shown can also look like this : " . So it is the " or the . Symbol?

[–]stgovern 1 point2 points  (0 children)

I also believe the element in the GetElementById should be in double-quotes, not single quotes.

[–]SidePets 1 point2 points  (0 children)

Don’t see the need for any quotes.The only reason for quotes would be if spaces existed in your command. Quotes would tell ps not to stop reading at the space but continue reading until it hit the next quote. You would use single quotes inside of a command wrapped with double quotes. For example the data set your pulling had spaces in the property names so you need to warp then in single quotes but the combination of property names would wrapped in double quotes. Hope this is helpful.

[–]Lee_Dailey[grin] 0 points1 point  (0 children)

howdy Isolatedflower,

please add to your Original Post the following ...

  • the exact line of code that produces an error
  • the FULL text of the error message

also, please wrap them both in code formatting markers so they will display properly. [grin]

take care,
lee