voyeur icon indicating copy to clipboard operation
voyeur copied to clipboard

XML search function problem due to ErrorAction in GPP plugin (Plugins\GppPasswords.ps1)

Open nonefaken opened this issue 7 years ago • 0 comments

There is possible XML search function problem due to "-ErrorAction Stop" in GPP plugin (Plugins\GppPasswords.ps1). Suggest change following code: ---cut----------------------------------------- $AllFiles = Get-ChildItem "\$DomainName\SYSVOL" -Recurse -ErrorAction Stop -Include 'Groups.xml','Services.xml','ScheduledTasks.xml','DataSources.xml','Drives.xml' ---cut-----------------------------------------

to following code: ---cut----------------------------------------- $AllFiles = Get-ChildItem "\$DomainName\SYSVOL" -Recurse -ErrorAction Continue -Include 'Groups.xml','Services.xml','ScheduledTasks.xml','DataSources.xml','Drives.xml' ---cut-----------------------------------------

nonefaken avatar May 24 '17 08:05 nonefaken