Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

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

Open
nonefaken opened this issue May 24, 2017 · 0 comments

Comments

@nonefaken
Copy link

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-----------------------------------------

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant