I’ve tried a number of combinations and now I feel it may be the platform the NAS is constructed on. I know it doesn’t respond to wmi calls altho it does have ldap.
I simply cannot get a wildcard search to work on our NAS.
This works on my home network, configured for the corp network addresses, it will not succeed.
A direct search taking out all variables is successful at work, so it’s not permissions related.
I’ve excluded two directories with similar naming conventions I don’t want searched or lack permission to.
I tried a regex but that failed in both locations ^PIC_?[0-9]{0,3}$ I chose three for future proofing but I also tried {0,2}.
Is there something wrong with the script or is it timing out or some other factor?
get-item works no problem when called explicitly, and I’ve already tried gci and found it working.
So my next thought is to create an array and loop through each folder but when I set up a regex to describe the acceptable folder structure it didn’t like that either and I know my regex is good, which leaves me with writing it out by hand.
I’ll figure out a way to automate the array to start with PIC and stop at a failed resolve-path / test-path ( both work ).