Slide 33
Slide 33 text
var connectionInfo = new WSManConnectionInfo()
{
Scheme = "https",
ComputerName = "servername.cloudapp.net",
Port = 7654,
Credential = new PSCredential("username",
"syoboipassword".Aggregate(
new SecureString(), (s, c) =>
{
s.AppendChar(c);
return s;
})),
SkipCACheck = true
};
using (var rs = RunspaceFactory.CreateRunspace(connectionInfo))
{//以下略