Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am executing PowerShell commands using C#, for which i am using "WSManConnectionInfo" class to create connection object for Runspace.

But i could not understand about the parameters to provide. Can anybody explain below two,


1) WSManConnectionInfo(string scheme, string computerName, int port, string appName, string shellUri, PSCredential credential, int openTimeout)

2) WSManConnectionInfo(Uri uri, string shellUri, PSCredential credential)


Ex: 1) WSManConnectionInfo(Uri uri, string shellUri, PSCredential credential)

Uri -> uri for which machine(uri of Exchange server?, if so how can i get it)

shellUri -> ?

credential -> ?

2) WSManConnectionInfo(string scheme, string computerName, int port, string appName, string shellUri, PSCredential credential, int openTimeout)

computerName -> Computername of ExchangeServer? appName -> ?, shellUri -> ?, scheme -> ? port - ? port - ?

Pls help with above parameters.



Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900