added exclusion logic

This commit is contained in:
poslop committed 2025-02-10 10:15:17 -06:00
1 parent 2f54d51b59
commit b540653fc3
1 file changed
+1
+1
View File
@@ -18,6 +18,7 @@ Get-WmiObject Win32_UserProfile | :Loop ForEach-Object {
foreach ($name in $excludedProfiles) {
if ($item -eq $userName) {
continue Loop
}
}
# Get the last logon time for the local user