feldrim / ANUC

ANUC Active Directory User Creation Tool v1.x
4 stars 3 forks source link

ScriptAnalyzer Results #28

Open feldrim opened 7 years ago

feldrim commented 7 years ago

RuleName                            Severity     FileName   Line  Message                                                     
--------                            --------     --------   ----  -------                                                     
PSPossibleIncorrectComparisonWithNu Warning      ANUC.ps1   82    $null should be on the left side of equality comparisons.   
ll                                                                                                                            
PSPossibleIncorrectComparisonWithNu Warning      ANUC.ps1   937   $null should be on the left side of equality comparisons.   
ll                                                                                                                            
PSPossibleIncorrectComparisonWithNu Warning      ANUC.ps1   940   $null should be on the left side of equality comparisons.   
ll                                                                                                                            
PSPossibleIncorrectComparisonWithNu Warning      ANUC.ps1   943   $null should be on the left side of equality comparisons.   
ll                                                                                                                            
PSUseApprovedVerbs                  Warning      ANUC.ps1   399   The cmdlet 'Call-ANUC_pff' uses an unapproved verb.         
PSAvoidUsingConvertToSecureStringWi Error        ANUC.ps1   599   File 'ANUC.ps1' uses ConvertTo-SecureString with plaintext. 
thPlainText                                                       This will expose secure information. Encrypted standard stri
                                                                  ngs should be used instead.                                 
PSAvoidUsingConvertToSecureStringWi Error        ANUC.ps1   946   File 'ANUC.ps1' uses ConvertTo-SecureString with plaintext. 
thPlainText                                                       This will expose secure information. Encrypted standard stri
                                                                  ngs should be used instead.                                 
PSUseDeclaredVarsMoreThanAssignment Warning      ANUC.ps1   623   The variable 'DomainNS' is assigned but never used.         
s                                                                                                                             
PSUseDeclaredVarsMoreThanAssignment Warning      ANUC.ps1   842   The variable 'Domain' is assigned but never used.           
s                                                                                                                             
PSUseDeclaredVarsMoreThanAssignment Warning      ANUC.ps1   929   The variable 'nameList' is assigned but never used.         
s                                                                                                                             
PSUseDeclaredVarsMoreThanAssignment Warning      ANUC.ps1   1008  The variable 'DomainUser' is assigned but never used.       
s                                                                                                                             
PSShouldProcess                     Warning      ANUC.ps1   88    'OnApplicationLoad' calls ShouldProcess/ShouldContinue but d
                                                                  oes not have the ShouldProcess attribute.                   
PSShouldProcess                     Warning      ANUC.ps1   252   'OnApplicationExit' calls ShouldProcess/ShouldContinue but d
                                                                  oes not have the ShouldProcess attribute.                   
PSShouldProcess                     Warning      ANUC.ps1   399   'Call-ANUC_pff' calls ShouldProcess/ShouldContinue but does 
                                                                  not have the ShouldProcess attribute.                       
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   775   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   776   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   777   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   818   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   819   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   820   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   854   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   855   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   856   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   857   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   858   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   859   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   860   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   861   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   862   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   863   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   864   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   865   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   866   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   867   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   868   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   869   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   870   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   871   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   872   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   873   Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSAvoidUsingEmptyCatchBlock         Warning      ANUC.ps1   1071  Empty catch block is used. Please use Write-Error or throw s
                                                                  tatements in catch blocks.                                  
PSUseShouldProcessForStateChangingF Warning      ANUC.ps1   260   Function ’Set-sAMAccountName’ has verb that could change sys
unctions                                                          tem state. Therefore, the function has to support 'ShouldPro
                                                                  cess'.                                                      
PSUseShouldProcessForStateChangingF Warning      ANUC.ps1   282   Function ’Set-UPN’ has verb that could change system state. 
unctions                                                          Therefore, the function has to support 'ShouldProcess'.     
PSUseShouldProcessForStateChangingF Warning      ANUC.ps1   305   Function ’Set-DisplayName’ has verb that could change system
unctions                                                           state. Therefore, the function has to support 'ShouldProces
                                                                  s'.