last_login.ps1 hinzugefügt

This commit is contained in:
2024-11-26 15:22:03 +01:00
commit f3846e867c

6
last_login.ps1 Normal file
View 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