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

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source