Skip to content

Commit 1b7ccee

Browse files
committed
commas or single quotes
1 parent 0f1f590 commit 1b7ccee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Invoke-ScriptSentry.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ function Find-AdminsNonexistentShares {
13421342
if ($Finding.Details -match $NonExistentShares.Details) {
13431343
$Admin = (($Finding.Details | Select-String "(CN=.*)\s").Matches.Value).Trim(' - ')
13441344
$LogonScript = (($Finding.Details | Select-String "\s-\s.*$").Matches.Value).Trim(' - ')
1345-
$Share = ($NonExistentShares.Details | Select-String "\\\\[\w\.\-]+\\[\w\-_\\.]+").Matches.Value
1345+
$Share = ($NonExistentShares.Details | Select-String '\\\\[\w\.\-]+\\[\w\-_\\.]+').Matches.Value
13461346
$Results = [ordered] @{
13471347
Misconfiguration = 'LSM-Admins-2'
13481348
Description = "Admins with logon scripts mapped from nonexistent share"

0 commit comments

Comments
 (0)