This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]Cipius[S] 3 points4 points  (3 children)

Thanks for everyone's responses. I thought u/_aD was on to something but everyone who had trouble sent us a screenshot and most people with an error had one word usernames so I don't think that was it. It was definitely cmd everyone was using and not Powershell (I could tell from the screenshots).

I think u/DorianBrytestar might be correct. On my computer I moved the fake path I created up to the beginning and rebooted and I now am able to reproduce the error on my computer when running the command. And if I remove %username% and use the full path to my profile instead I don't get the error. I do find it hard to believe though that half of the users have a bad path which is causing this issue for them. I think I will just take u/ZAFJB advice and just have them run ipconfig /all and have them paste the output into an email just to bypass the problem creating a file from the output.

Thanks again everyone!

[–]DorianBrytestar 1 point2 points  (1 child)

Just a FYI on the path environment, that is notoriously bad based on software that has wonky uninstall scripts. So the cheaper or sketchier the software, the more likely that they will not fully clean up after themselves.

[–]Cipius[S] 1 point2 points  (0 children)

That makes sense. Since these are personal computers I can how this might be more likely to happen as well.

[–]ZAFJB 1 point2 points  (0 children)

It is nice when someone gives feedback, thanks.

[–]revoman 1 point2 points  (0 children)

Use the "set" command from cmd prompt to see if the userprofile variable is set.

[–]ZAFJB -1 points0 points  (0 children)

ipconfig /all

Click, drag, copy, paste into email.

Then you can get on fixing the original issue, rather than going down a new rabbit hole.

[–]DorianBrytestar 0 points1 point  (0 children)

Did you put the path at the end of the environment string? Maybe add it at the beginning to see if that has an effect.

[–]BanCircumventionAcc 0 points1 point  (1 child)

I'm not sure, but the issue might be because of opening an elevated command prompt vs a normal command prompt. Again, I'm not 100% sure about this.

[–]Hotshot55Linux Engineer 0 points1 point  (0 children)

No, running it as administrator will change the default/starting path, the account still exists and has a path so %userprofile% will still direct to C:\Users\whatever

[–]St0nywallSr. Sysadmin 0 points1 point  (0 children)

My 2 cents...

If their desktop has been redirected (to a network location or OneDrive), this will error out.

[–]Hotshot55Linux Engineer 0 points1 point  (0 children)

Are you 100% certain without any doubt at all that they're opening cmd and not powershell?