Windows 10: Powershell objects to space in username

Discus and support Powershell objects to space in username in AntiVirus, Firewalls and System Security to solve the problem; Powershell won't change directory because of the space in my username "Andy Kay". I understand I can change my username, but that it won't change the... Discussion in 'AntiVirus, Firewalls and System Security' started by AndyKay5, Mar 9, 2021.

  1. AndyKay5 Win User

    Powershell objects to space in username


    Powershell won't change directory because of the space in my username "Andy Kay".

    I understand I can change my username, but that it won't change the name in the path.

    Is there a way around this?

    :)
     
    AndyKay5, Mar 9, 2021
    #1

  2. 2020-09 Windows 10 Update break with spaces in username

    Hi All,

    Just a quick share, all the September updates for Windows 10 break logons with error of invalid password if username has spaces at the end. Luckily we had remote management of the devices so were able to repair through a Powershell script.

    get-localuser | foreach-object { if ($_.name.length -ne $_.name.trim().length) { rename-localuser -name $_.name -newname $_.name.trim() } }
     
    DanielSutton3, Mar 9, 2021
    #2
  3. Kursah Win User
    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Mar 9, 2021
    #3
  4. Tryx3 Win User

    Powershell objects to space in username

    PowerShell question

    The username you typed in underneath your diagram is the username for the Built-In Admin account.

    • To get the prompt that you wrote you would have to log in as the Built-In Admin account and then open Powershell from there.
    • I have never heard of anybody running Powershell using the Built-In Admin and have no idea if it would work [there are several undocumented limitations to the Built-In Admin account in Windows 10]

    Is that what you meant or were you just asking how to get an elevated Powershell window?

    • This is done by right-clicking on the Powershell link in the Start menu & selecting Run as Admin.

    Denis
     
    Tryx3, Mar 9, 2021
    #4
Thema:

Powershell objects to space in username

Loading...
  1. Powershell objects to space in username - Similar Threads - Powershell objects space

  2. Space in username

    in Windows 10 Network and Sharing
    Space in username: My "C:\users\Allan Forbes" folder contains a space in my user name can I create a new username on my account without a space? https://answers.microsoft.com/en-us/windows/forum/all/space-in-username/a91b4742-85b6-425e-b5e5-21341cf4bca9
  3. Space in username

    in Windows 10 Gaming
    Space in username: My "C:\users\Allan Forbes" folder contains a space in my user name can I create a new username on my account without a space? https://answers.microsoft.com/en-us/windows/forum/all/space-in-username/a91b4742-85b6-425e-b5e5-21341cf4bca9
  4. Space in username

    in Windows 10 Software and Apps
    Space in username: My "C:\users\Allan Forbes" folder contains a space in my user name can I create a new username on my account without a space? https://answers.microsoft.com/en-us/windows/forum/all/space-in-username/a91b4742-85b6-425e-b5e5-21341cf4bca9
  5. Powershell - object return

    in Windows 10 Customization
    Powershell - object return: Hello, I made a simple program that print specified computers in our Domain, sadly there is a problem with returning an object from a function after call. First call does not work, 2nd print same output 2 times. Do you have any idea how to display it in a first run? As far as...
  6. Powershell - object return

    in Windows 10 Gaming
    Powershell - object return: Hello, I made a simple program that print specified computers in our Domain, sadly there is a problem with returning an object from a function after call. First call does not work, 2nd print same output 2 times. Do you have any idea how to display it in a first run? As far as...
  7. Powershell - object return

    in Windows 10 Software and Apps
    Powershell - object return: Hello, I made a simple program that print specified computers in our Domain, sadly there is a problem with returning an object from a function after call. First call does not work, 2nd print same output 2 times. Do you have any idea how to display it in a first run? As far as...
  8. Odd Space in My Username

    in Windows 10 Gaming
    Odd Space in My Username: Why is this happening? Can I fix it? https://answers.microsoft.com/en-us/windows/forum/all/odd-space-in-my-username/207bb55a-a80a-4110-ae32-942f325e4a5d
  9. Odd Space in My Username

    in Windows 10 Software and Apps
    Odd Space in My Username: Why is this happening? Can I fix it? https://answers.microsoft.com/en-us/windows/forum/all/odd-space-in-my-username/207bb55a-a80a-4110-ae32-942f325e4a5d
  10. Odd Space in My Username

    in Windows 10 Customization
    Odd Space in My Username: Why is this happening? Can I fix it? https://answers.microsoft.com/en-us/windows/forum/all/odd-space-in-my-username/207bb55a-a80a-4110-ae32-942f325e4a5d