Это должно решить вашу проблему, попробуйте выполнить следующее ниже:

у запускать сценарии PowerShell в Windows 7 как обычный пользователь. Всякий раз, когда я пытаюсь, я получаю следующую ошибку:

File C:\Users\danv\Documents\WindowsPowerShell\profile.ps1 cannot be loaded because the
execution of scripts is disabled on this system. Please see "get-help about_signing" for
more details.
At line:1 char:2
+ . <<<<  'C:\Users\danv\Documents\WindowsPowerShell\profile.ps1'
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException

Попытка решить с помощьюSet-ExecutionPolicy Unrestricted терпит неудачу:

PS C:\Users\danv> Set-ExecutionPolicy Unrestricted
Set-ExecutionPolicy : Access to the registry key
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell'
is denied.
At line:1 char:20
+ Set-ExecutionPolicy <<<<  Unrestricted
    + CategoryInfo          : NotSpecified: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand

Я могу запуститьSet-ExecutionPolicy Unrestricted Команда от имени администратора, но, похоже, это не распространяется на пользователей без прав администратора.

Как я могу успешно запускать сценарии без прав администратора?

Ответы на вопрос(3)

Ваш ответ на вопрос