You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am also receive the exact same error as bdawson9 reported. Please let me know if you have found a solution or if you need me to help with troubleshooting.
I found out the issue When there ins't any shares on that machine the $files variable is blank therefore the Regex can't compare anything because if you take the -filter out the script works great.
I get the following error message when running the File Shares powershell script:
Exception calling "Matches" with "2" argument(s): "Value cannot be null.
Parameter name: input"
At C:\scripts\file shares\FileShares.ps1:176 char:5
The text was updated successfully, but these errors were encountered: