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:
parent
f46cd2d85a
commit
a60ed71883
@ -6,7 +6,7 @@ if ($DAYOFWEEK -eq 6 -or $DAYOFWEEK -eq 7) {
|
||||
}
|
||||
|
||||
# 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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user