PowerShell远程-使用New-PSSession [英] PowerShell Remote - using New-PSSession

查看:964
本文介绍了PowerShell远程-使用New-PSSession的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

当我踏上PowerShell远程之旅时,这只是一个普遍的问题.

Just a general question as I embark on my journey into PowerShell remoting.

当我使用New-PSSession时,执行一些SharePoint cmds,例如$ oSite = Get-SPSite"someurl",该cmd实际上是在远程PS会话中执行的吗?意思是,这样做是否在远程服务器上加载了PS的本地实例,请执行 cmd然后返回结果?

When I use New-PSSession then execute some SharePoint cmds, such as $oSite = Get-SPSite "someurl", is that cmd actually executed in a remote PS session?  Meaning, does doing this load a local instance of PS on the remote server, execute the cmd then return the result?

谢谢!

Bob

推荐答案

是的,该会话中的所有内容都将在远程计算机上执行.
That's correct, everything in that session would be executed on the remote machine.


这篇关于PowerShell远程-使用New-PSSession的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆