Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.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
Powershell在通过PSEXEC运行时未加载配置文件_Powershell_Profile_Powershell 1.0_Psexec - Fatal编程技术网

Powershell在通过PSEXEC运行时未加载配置文件

Powershell在通过PSEXEC运行时未加载配置文件,powershell,profile,powershell-1.0,psexec,Powershell,Profile,Powershell 1.0,Psexec,我正在使用powershell 1.0,使用PSEXEC远程运行脚本(或以批处理模式在同一个框中运行)。在我的计算机上,“远程”powershell会话可以正确加载my profile.ps1(从MyDocuments文件夹),但在另一台计算机上则不能。我没有将-noprofile开关传递到powershell.exe,并且我已经验证了powershell会话实际上是经过网络身份验证的(我让它访问了服务器上的管理员共享,并且工作正常)。没关系。另一台计算机上运行的PSEXEC版本不同

我正在使用powershell 1.0,使用PSEXEC远程运行脚本(或以批处理模式在同一个框中运行)。在我的计算机上,“远程”powershell会话可以正确加载my profile.ps1(从MyDocuments文件夹),但在另一台计算机上则不能。我没有将-noprofile开关传递到powershell.exe,并且我已经验证了powershell会话实际上是经过网络身份验证的(我让它访问了服务器上的管理员共享,并且工作正常)。

没关系。另一台计算机上运行的PSEXEC版本不同