首页 新闻 赞助 找找看

请回答我的问题,谢谢啦!

0
悬赏园豆:10 [已解决问题] 解决于 2015-08-13 08:07

http://www.cnblogs.com/LanTianYou/p/4723914.html

谁能解答我结尾问的问题?太感谢了。

天外归云的主页 天外归云 | 菜鸟二级 | 园豆:368
提问于:2015-08-12 17:31
< >
分享
最佳答案
1

-Credential<PSCredential>

Specifies a user account that has permission to perform this action. The default is the current user.

Type a user name, such as "User01", "Domain01\User01", or "User@Domain.com", or enter a PSCredential object, such as one returned by the Get-Credentiall cmdlet.

 

Example:

$pw = convertto-securestring -AsPlainText -Force -String <insert pw here>
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "Domain\User",$pw
$session = new-pssession -computername <computer> -credential $cred

收获园豆:10
Launcher | 高人七级 |园豆:45045 | 2015-08-12 17:39

非常感谢!园豆都是你的了~

天外归云 | 园豆:368 (菜鸟二级) | 2015-08-13 08:07
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册