Click here to Skip to main content
15,311,151 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
. $env:USERPROFILE\.config\powershell\user_profile.ps1


ERROR:E212 cant open file for writing:no such file or directory

What I have tried:

i gave all permission to user_profile.ps1
Posted
Updated 12-May-22 22:17pm
v2

1 solution

It's not the powershell file itself that needs permissions, it's one of the commands it contains that is trying to output to a specific file that causes it. Probably, it's trying to reference a folder that doesn't exist.

Start by looking at the Powershell script in the file and see what it actually does.

Sorry, but we can't help you with that!
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900