checking for the login window from powershell


i have script runs @ startup.  when login window appears.  there way check login window powershell?  thinking along lines of finding loads when login window loads, in tasklist /m ?

hi,

as far know, it’s not possible via script.

i suggest try "psexec \\computername shutdown /r". if these no error when initiating shutdown, return "shutdown exited on mpc03 error code 0."

thanks.


this posting provided "as is" no warranties, , confers no rights.


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS