是否可以设置"Update &安全>对于开发者来说,从Windows 10周年纪念(只是普通的"旧"Win10)的powershell脚本中"属性"加载应用程序?
根据https://msdn.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development#which-settings-should-i-choose-sideload-apps-or-developer-mode:
以管理员权限运行PowerShell。要启用侧加载,请运行以下命令:
PS C:WINDOWSsystem32> reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAppModelUnlock" /t REG_DWORD /f /v "AllowAllTrustedApps" /d "1"
要启用developer模式,执行命令:
PS C:WINDOWSsystem32> reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"