Prerequisites
Steps to reproduce
Run a script without altering permissions in Windows 11 - the following is returned (issue denoted in double asterisks):
yarn : File C:\Users\aidan\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at **https:/go.microsoft.com/fwlink/?LinkID=135170**.
At line:1 char:1
+ yarn
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Expected behavior
yarn : File C:\Users\aidan\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at **https://go.microsoft.com/fwlink/?LinkID=135170**.
At line:1 char:1
+ yarn
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
### Actual behavior
```console
yarn : File C:\Users\aidan\AppData\Roaming\npm\yarn.ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at **https:/go.microsoft.com/fwlink/?LinkID=135170**.
At line:1 char:1
+ yarn
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
### Error details
_No response_
### Environment data
```powershell
Name Value
---- -----
PSVersion 5.1.22621.963
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.963
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Visuals
No response
Prerequisites
Steps to reproduce
Run a script without altering permissions in Windows 11 - the following is returned (issue denoted in double asterisks):
Expected behavior
Visuals
No response