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

Azure MFA with Azure AD and RDS

Failed to setup initiator portal. Error status is given in the dump data.

Invalid pointer on gpresult /h gpreport.html