Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Start : Access is denied
At line:1 char:128
+ ... Encoding]::GetEncoding(437); Start "\\wsl$\kali-linux\mnt\d\test.txt"
+                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Start-Process], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.StartProcessCommand


What I have tried:

When I run the command "wslview test.txt" to open the file "test.txt" on windows system, I get an error? This is the package that I installed: https://github.com/wslutilities/wslu Look forward to the help. Thanks!
Posted
Comments
phil.o 3-Dec-21 4:11am    
You'd better ask the author of the package you are using :) You already have the address.
But I would bet this has something to do with the credentials of the account under which your script is running. I'd check that first.

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