Open sljzdotcom opened 3 years ago
❯ Get-ExecutionPolicy -List Scope ExecutionPolicy ----- --------------- MachinePolicy Undefined UserPolicy Undefined Process Undefined CurrentUser RemoteSigned LocalMachine RemoteSigned ❯ Set-Theme SpencerTechy Import-Module : 无法加载文件 D:\Dropbox\Documents\WindowsPowerShell\PoshThemes\SpencerTechy.psm1。未对文件 D:\Dropbox\Documents\WindowsPowerShell\PoshThemes\SpencerTechy.psm1 进行数字签名。无法在当前系统上运行该脚本。有关运行脚本和设置执行策略的详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 所在位置 D:\Dropbox\Documents\WindowsPowerShell\Modules\oh-my-posh\2.0.487\oh-my-posh.psm1:12 字符: 5 + Import-Module $sl.CurrentThemeLocation -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [Import-Module],PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.ImportModuleCommand