gpt4 book ai didi

.net - 以管理员身份远程安装 Net Framework 4

转载 作者:行者123 更新时间:2023-12-03 04:18:50 27 4
gpt4 key购买 nike

我正在尝试使用以下命令远程安装.net Framework 4.0

1

command => 'Powershell.exe -Verb RunAs -FilePath C:\Temp\dotNetFx40_Full_setup.exe -ArgumentList "/q /norestart /log C:\Temp\NetFx40.htm"'

2

command => 'C:\Windows\System32\cmd.exe /c C:\Temp\dotNetFx40_Full_setup.exe /q /norestart /log C:\Temp\NetFx40.htm',

我在日志中得到以下内容。顺便说一句,运行该命令的用户是本地管理员组的成员。

Final Result: Installation failed with error code: (0x00000005), "Access is denied. " (Elapsed time: 0 00:00:55).
OS Version = 6.1.7601, Platform 2, Service Pack 1
OS Description = Win2K8R2 - x64 Standard Edition Service Pack 1
CommandLine = D:\ecfcf956d61e2bf89c1c75ce16\\Setup.exe /q /norestart /log C:\Temp\NetFx40.htm /x86 /x64 /ia64 /web
TimeZone = Eastern Standard Time
Initial LCID = 1033
Using Simultaneous Download and Install mechanism
Operation: Installing
Package Name = Microsoft .NET Framework 4 Setup
Package Version = 4.0.30319
User Experience Data Collection Policy: Disabled
Number of applicable items: 11
Exe (D:\ecfcf956d61e2bf89c1c75ce16\SetupUtility.exe) succeeded.
Exe Log File: dd_SetupUtility.txt
ServiceControl operation succeeded!
ServiceControl operation succeeded!
Exe (C:\Users\_BUILD~1\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319\Windows6.1-KB958488-v6001-x64.msu) failed with 0x5 - Access is denied. .
Final Result: Installation failed with error code: (0x00000005), "Access is denied. " (Elapsed time: 0 00:00:21).

最佳答案

它不会工作并且 you're not the only one被这个咬了!

阅读这篇 Microsoft 支持文章以获取完整说明:

Windows Update Standalone Installer (WUSA) returns 0x5 ERROR_ACCESS_DENIED when deploying .msu files through WinRM and Windows Remote Shell

解决方法是从 WinRM/WinRS session 带外运行安装程序。

关于.net - 以管理员身份远程安装 Net Framework 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14327138/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com