I have a script that we need to use on our domain to control a login for IE. However, I have it running just fine on a standalone Windows 8.1 machine but cannot get it to run on a domain Windows 8.1 machine.
I've scaled back to the script to an example just for testing purposes:
All this should do is open IE and enter "asdf"as the username.
On the domain computer, this is the error that PowerShell gives us:
Method invocation failed because [System.__ComObject] does not contain a method named 'getElementById'.
At line:7 char:1
+ $ie.Document.getElementById("Email").value = "asdf"
+ CategoryInfo : InvalidOperation: (:) , RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
I've tried to run the script as an admin (elevated), disabled protected mode, and various combinations of the two but cannot figure out what is holding this up.
Any suggestions would be quite welcome!