@@ -56,26 +56,26 @@ public static void Main(string[] args)
5656 return ;
5757 }
5858 }
59-
6059 var adService = new ActiveDirectoryService ( o . Domain , o . Username , o . Password , o . DomainController ) ;
6160
6261 //Output a list of users to the specified file and exit
63- if ( ! string . IsNullOrWhiteSpace ( o . OutputUsers ) )
62+ if ( o . OutputUsers )
6463 {
6564 var users = adService . GetAllDomainUsers ( ) . Select ( u => u . SamAccountName ) ;
66- File . WriteAllLines ( o . OutputUsers + " .txt", users ) ;
67- Console . WriteLine ( $ " { o . OutputUsers + ". txt" } created.") ;
65+ File . WriteAllLines ( "AdUserList .txt", users ) ;
66+ Console . WriteLine ( "AdUserList. txt created.") ;
6867 return ;
6968 }
70- if ( ! string . IsNullOrWhiteSpace ( o . OutputUsersCsv ) )
69+ if ( o . OutputUsersCsv )
7170 {
7271 var users = adService . GetAllDomainUsers ( ) ;
73- File . WriteAllText ( o . OutputUsersCsv + " .csv", users . ToCsv ( ) ) ;
74- Console . WriteLine ( $ " { o . OutputUsersCsv + ". csv" } created.") ;
72+ File . WriteAllText ( "AdUserDetails .csv", users . ToCsv ( ) ) ;
73+ Console . WriteLine ( "AdUserDetails. csv created.") ;
7574 return ;
7675 }
7776 else if ( o . OutputPasswordPolicy ) //Output the password policy to the terminal and exit
7877 {
78+ Console . WriteLine ( 5 ) ;
7979 var defaultPolicy = adService . GetPasswordPolicy ( ) ;
8080 var fineGrainedPolicies = adService . GetFineGrainedPasswordPolicy ( ) ;
8181
@@ -99,6 +99,7 @@ public static void Main(string[] args)
9999 }
100100 else //Otherwise we want to validate remaining parameters and spray
101101 {
102+ Console . WriteLine ( 6 ) ;
102103 IEnumerable < string > passwords , users ;
103104 int remainingAttempts ;
104105
0 commit comments