We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f1f590 commit 1b7cceeCopy full SHA for 1b7ccee
Invoke-ScriptSentry.ps1
@@ -1342,7 +1342,7 @@ function Find-AdminsNonexistentShares {
1342
if ($Finding.Details -match $NonExistentShares.Details) {
1343
$Admin = (($Finding.Details | Select-String "(CN=.*)\s").Matches.Value).Trim(' - ')
1344
$LogonScript = (($Finding.Details | Select-String "\s-\s.*$").Matches.Value).Trim(' - ')
1345
- $Share = ($NonExistentShares.Details | Select-String "\\\\[\w\.\-]+\\[\w\-_\\.]+").Matches.Value
+ $Share = ($NonExistentShares.Details | Select-String '\\\\[\w\.\-]+\\[\w\-_\\.]+').Matches.Value
1346
$Results = [ordered] @{
1347
Misconfiguration = 'LSM-Admins-2'
1348
Description = "Admins with logon scripts mapped from nonexistent share"
0 commit comments