You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Get-RBCD-Threaded/Program.cs
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
usingSystem;
1
+
usingSystem;
2
2
usingSystem.Collections.Generic;
3
3
usingSystem.Linq;
4
4
usingSystem.Net;
@@ -60,6 +60,7 @@ static void Main(string[] args)
60
60
boolldapInSecure=false;
61
61
boolhelp=false;
62
62
boolsearchForest=false;
63
+
intcomputerDate=0;
63
64
64
65
varoptions=newOptionSet()
65
66
{
@@ -69,6 +70,7 @@ static void Main(string[] args)
69
70
{"s|searchforest","Enumerate all domains and forests", v =>searchForest=true},
70
71
{"o|outputfile=","Output to a CSV file. Please provided full path to file and file name.", v =>outputfile=v},
71
72
{"i|insecure","Force insecure LDAP connect if LDAPS is causing connection issues.", v =>ldapInSecure=true},
73
+
{"pwdlastset=","Filter computers based on pwdLastSet to remove stale computer objects. If you set this to 90, it will filter out computer objects whose pwdLastSet date is more than 90 days ago",(intv)=>computerDate=v},
0 commit comments