[MSH] GV is a constant alias??

Discussion in 'Scripting' started by Keith Hill, Nov 3, 2005.

  1. Keith Hill

    Keith Hill Guest

    I have an alias def for GV that I have used for years. The latest .NET 2.0
    RTM drop doesn't allow me to undefine the built-in GV alias. I get the
    error:

    MSH ! remove-item alias:gv
    remove-item : Alias was not removed because alias gv is constant and cannot
    be
    removed.
    At line:1 char:12
    + remove-item <<<< alias:gv

    That's kind of a bummer.
     
    Keith Hill, Nov 3, 2005
    #1
    1. Advertisements

  2. Hmm - try
    remove-item -force alias:/gv

    We did decide that aliases would be read-only but not constant after all but
    I'm not sure if that change made it into the public drop or not...
     
    Bruce Payette [MSFT], Nov 4, 2005
    #2
    1. Advertisements

  3. Keith Hill

    Keith Hill Guest

    That did the trick. Thanks!
     
    Keith Hill, Nov 4, 2005
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.