Share via

Powershell running script at console launch

Anonymous
2015-06-19T17:18:37+00:00

When I run Powershell or Powershell (x86) I get the following message: ". : The term '{custom script file}' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."

Which is a script I've created a long time ago. I moved the file to a different location and now that error comes up. If I put the original file or an empty with the same name back into the error location, it opens fine with no message.

How do I fix this?

EDIT: I found the issue. Somehow the path to one of my scripts got into $profile. Not sure how but after removing the line all is well.

Windows for home | Previous Windows versions | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2015-06-20T12:18:03+00:00

Hi Brandon,

Thank you for contacting in Microsoft Community Forums.

The issue you posted would be better suited in the MSDN Forums.

 I would recommend posting your query in the MSDN Forums.

https://social.msdn.microsoft.com/forums/en-us/home .

Let us know for further assistance. We’ll be glad to assist you.

Thanks.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful