Hi All
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
Hi All
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 start, then:
get-acl \\server\f$\Home\B\[[]*
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
"Thomas Friis Poulsen" wrote:
> Hi All
>
> 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
so, on my host
PS Z:\test> $host.version
Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1
all replies marked as Answer don't work now
"Thomas Friis Poulsen" wrote:
> Hi All
>
> 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
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Run Exe From a CD with wildcard | Oli M | VB Script | 17 | 16 Apr 2009 |
| String pattern | Stranger | PowerShell | 2 | 20 Aug 2008 |
| how to get the file name from using a wildcard | Daz | VB Script | 8 | 02 Jun 2008 |
| WildCard SSL Certificates | Jeff Parrish | Vista mail | 0 | 14 Sep 2006 |
| Wildcard searches | =?Utf-8?B?ZnJhY3RhbHN1YXI=?= | Vista file management | 5 | 23 Aug 2006 |