This:
Get-Acl -Path \\server\f$\Home\B\[Foldername
Gives the error "The specified wildcard pattern is not valid: [foldername
if the share has a folder with a name that include a [
Is this a bug or ???
Best Regards
Thomas
if "[" is in filename middle then:
get-acl \\server\f$\Home\B\*[[]*
if "[" is in filename end, then:
get-acl \\server\f$\Home\B\*[[]
enjoy!
--
WBR Vadims Podans
PowerShell blog: www.sysadmins.lv
Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1
all replies marked as Answer don't work now