locked
Why can't I type my own user name in my search in PowerShell RRS feed

  • Question

  • I can hit tab and get the result I'm looking for, but it won't accept when I type the "M" in my own name. I'm new to this and am thoroughly confused what the underlying issue is here. Any and all information would be appreciated, thanks!....

    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.

    PS C:\Users\Jacob Markus Osborne> pwd

    Path
    ----
    C:\Users\Jacob Markus Osborne


    PS C:\Users\Jacob Markus Osborne> cd..
    PS C:\Users> pwd

    Path
    ----
    C:\Users


    PS C:\Users> cd C:\Users\Jacob Markus Osborne
    Set-Location : A positional parameter cannot be found that accepts argument 'Markus'.
    At line:1 char:1
    + cd C:\Users\Jacob Markus Osborne
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Set-Location], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

    PS C:\Users> cd 'C:\Users\Jacob Markus Osborne\'
    PS C:\Users\Jacob Markus Osborne> pwd

    Path
    ----
    C:\Users\Jacob Markus Osborne


    PS C:\Users\Jacob Markus Osborne>

    Tuesday, July 30, 2019 3:02 AM

Answers

  • You have to use quotes.

    Before trying anything else please learn basic Windows and PowerShell.

    Start here: Getting Started with Microsoft PowerShell

    You cannot learn any technology at a technical level by asking questions in a forum.  You must do the homework and actually study the technology.


    \_(ツ)_/

    Tuesday, July 30, 2019 3:33 AM

All replies

  • You have to use quotes.

    Before trying anything else please learn basic Windows and PowerShell.

    Start here: Getting Started with Microsoft PowerShell

    You cannot learn any technology at a technical level by asking questions in a forum.  You must do the homework and actually study the technology.


    \_(ツ)_/

    Tuesday, July 30, 2019 3:33 AM
  • I'm actually taking the Google IT course and was following along with the video. I was unaware why it worked when the video instructor did it, but not when I was trying it. Whoops. Thanks for the link.

    Cool Beans Bro

    Tuesday, July 30, 2019 5:31 PM