Windows Vista Forums

The specified wildcard pattern is not valid: [

  1. #1


    Thomas Friis Poulsen Guest

    The specified wildcard pattern is not valid: [

    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

      My System SpecsSystem Spec

  2. #2


    Vadims Podans Guest

    RE: The specified wildcard pattern is not valid: [

    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

      My System SpecsSystem Spec

  3. #3


    VEKk Guest

    RE: The specified wildcard pattern is not valid: [

    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

      My System SpecsSystem Spec

The specified wildcard pattern is not valid: [

Similar Threads
Thread Forum
icacl wildcard?
I am trying to edit the permissions of folders that are in folders that are named differently. I am doing cacls commads and icacl commands The...
System Security
Run Exe From a CD with wildcard
Ive created a script that downloads internet updates (exe files) and then burns then to a cd. What i Want to do is also burn an autorun that runs...
VB Script
String pattern
Dear all, Is there a way to check a string variable against certain pattern. For example I have a variable that a user is promted to enter a...
PowerShell
how to get the file name from using a wildcard
Hi there all, I need a little help please... I would like to get a list of all the *.theme files in a the current folder that the script is...
VB Script
WildCard SSL Certificates
In Outlook Express a user never received a message about a server using a valid wildcard SSL certificate, but when using Windows Mail, I am presented...
Vista mail
Wildcard searches
How do I perform a wildcard search in windows vista? I want to find all of my mp3 files that end in a certain way and I can't do it!
Vista file management
Command pattern
Hi all! For the app I am building (http://blogs.infosupport.com/ernow/articles/3603.aspx) I am currently pondering the editing of the 3D model...
Avalon