2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 19:07:33 +00:00

Proper check if user is logged in

This commit is contained in:
alexesprit 2015-11-29 23:26:33 +03:00
parent f46cd2d85a
commit a60ed71883

View File

@ -6,7 +6,7 @@ if ($DAYOFWEEK -eq 6 -or $DAYOFWEEK -eq 7) {
} }
# Exit early if no sessions with my username are found # Exit early if no sessions with my username are found
if ((QWINSTA $env:USERNAME | measure).Count -gt 0){ if (-not (QWINSTA | FINDSTR $env:USERNAME)) {
return return
} }