Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Networking Powershell远程安装.exe文件错误,找不到setup.iss文件_Networking_Powershell_Powershell 2.0_Remote Access_Invoke Command - Fatal编程技术网

Networking Powershell远程安装.exe文件错误,找不到setup.iss文件

Networking Powershell远程安装.exe文件错误,找不到setup.iss文件,networking,powershell,powershell-2.0,remote-access,invoke-command,Networking,Powershell,Powershell 2.0,Remote Access,Invoke Command,您好,我正试图找出如何将.exe文件安装到5服务器计算机上,但我在尝试在自己的计算机上静默安装时遇到问题。 我有这个命令 调用命令-ScriptBlock{Start Process-FilePath\\xxx-STUDENT3-W7\Users\bkoo004\Documents\test\ccleaner402.exe\r} 但是我在Windows文件夹中找不到setup.iss文件。 当我使用这个命令的时候 调用命令-computername xxxxxxxxxx.edu-ScriptBl

您好,我正试图找出如何将.exe文件安装到5服务器计算机上,但我在尝试在自己的计算机上静默安装时遇到问题。 我有这个命令 调用命令-ScriptBlock{Start Process-FilePath\\xxx-STUDENT3-W7\Users\bkoo004\Documents\test\ccleaner402.exe\r} 但是我在Windows文件夹中找不到setup.iss文件。 当我使用这个命令的时候

调用命令-computername xxxxxxxxxx.edu-ScriptBlock{启动进程-filepath“\\xxx-S TUDENT3-W7\Users\bkoo004\Documents\test\ccleaner402.exe“}-凭证$cred

这样说我就错了 由于以下错误,无法执行此命令:找不到网络名称。 +CategoryInfo:InvalidOperation:(:)[Start Process],InvalidOperationException +FullyQualifiedErrorId:InvalidOperationException,Microsoft.PowerShell.Commands.StartProcess命令

但我知道网络名称是正确的,因为当我运行 调用命令-computername xxxxxxxxxx.edu-ScriptBlock{get process}-Credential$cred 它返回该服务器的get进程


我认为没有获取setup.iss文件是因为我试图安装的程序没有使用installshield,但是在我的远程服务器上运行启动进程时出现错误,我不知道它是什么。

不确定您是否在not上遇到了双跳问题,但听起来像是这样。所以我想我应该给你更多的信息。鲍勃·洛布罗夫版本

什么是服务器,什么是客户端?服务器,它接受东西,是你远程访问的计算机。客户端,它提供的东西,是你用来做远程处理的计算机。因此,在命令
Invoke命令-computername xxxxxxxxxx.edu…
中,“xxxxxxxxxx.edu”是服务器

根据您的描述,您似乎已经在服务器上运行了命令
Enable PSRemoting
。在服务器上启用远程处理后,您应该能够执行
输入PSSession-ComputerName xxxxxxxxxx.edu
,并在客户端上显示交互式命令提示符

如果您进入远程会话并执行
Get ChildItem“\\ComputerName\Share”
命令将失败(出于安全原因失败)。这是双跳,因为你要从一台电脑跳到另一台电脑。网络共享是另一台计算机。所以你要这样做:

客户端->服务器->网络共享

您需要设置更多以修复双跳。首先,您需要在服务器上运行命令
Enable WSManCredSSP server
,以便它接受来自客户端的凭据。其次,在客户端上,您需要运行命令
Enable WSManCred-Role client-DelegateComputer*
,以便它将您的凭据发送给服务器

现在CredSSP配置为提供和接受凭据,您应该已经解决了双跳问题

Enter-PSSession -ComputerName Computer1 -Authentication Credssp -Credential (Get-Credential)
现在,您应该能够从远程会话
get ChildItem“\\ComputerName\Share”
访问网络共享

希望这能帮你一点忙


另外,香蕉摊上总是有钱的。

如果你要使用任何有网络位置的远程命令,你需要解决这个问题。New-PSSession xxxxxxxxx.edu-authentication CredSSP-credential$cred | Invoke命令-computername xxxxxxxxx.edu-ScriptBlock{启动进程-文件路径“\\xxx-STUDENT3-W7\Users\xxxxxx\Documents\test\S etup.exe”}使用该命令,我仍然得到网络未找到错误,我也不明白我试图做的事情如何导致双跳问题?我没有试图使我的服务器远程访问任何地方。很抱歉,当我使用该命令调用命令-computername xxx-fs-2.ads.xxx.edu-身份验证credssp-凭证时,我在这方面真的是个新手$cred-ScriptBlock{start process-filepath“\\xxx-fs-1.xxx.ucr.edu\software\npp.6.3.3.Installer.exe”-argumentlist“/S”}我的powershell刚刚挂起。我猜有一个安全警告检查要打开.exe文件。我怎么能绕过它?这是否意味着你解决了双跳问题?下一步我要测试的是进入一个交互式会话,使用
enter PSSession
,看看
\\Computer\Share\NPP.exe/S
是否会安装。如果没有安装工作你可能会幸运地问另一个问题。我不是远程安装方面的专家。我不知道安装卡住是否与UAC有关。但我确实相信,当你运行安装文件时,提示符只会在安装完成后返回,它认为。当我使用Enter pssession并尝试安装时,我t如果我不使用credssp,则会出现访问被拒绝错误;如果我使用credssp,则会出现需要提升错误。如果我在输入pssession后使用此命令,则我的powershell将挂起