SendKeys works with Logged on User but not prior
We have an interactive logon that you simply click "OK" on and then computers autologin. I can push Sendkeys using deploy's powershell after there is a logged on user and it works fine, but none of the "Run As" users work prior to that so I have to manually click "OK" with the mouse or press enter, or spacebar. Anyone know something else I can try?
$wsh = New-Object -ComObject WScript.Shell
$wsh.SendKeys('{ENTER}')
0
Comments
As far as I know SendKeys will not run without a user logged in. I've never heard of it being used before a login.
Maybe try using Autoit? I've heard it can run before a login using VBScript.
https://www.autoitscript.com/site/autoit/
Sysinternals autologon is an easy way to get past the logon screen, if that's the part that's giving you trouble.