last_login.ps1 hinzugefügt
This commit is contained in:
6
last_login.ps1
Normal file
6
last_login.ps1
Normal file
@@ -0,0 +1,6 @@
|
||||
net user $env:username /domain | select-string -pattern '(^Benutzername|^Letzte Anmeldung)'
|
||||
write-host "`n"
|
||||
net user $env:username /domain | select-string -pattern '(^Kennwort l|^Letztes Setzen)'
|
||||
write-host "`n"
|
||||
write-host "das Fenster schliesst sich in 30 Sekunden automatisch"
|
||||
start-sleep -Seconds 30
|
||||
Reference in New Issue
Block a user