A little more PowerShell experimentation

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15642 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-03-25 13:57:04 +00:00
parent 64b30e639c
commit b28f6f307f
2 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ Function Select-xCATClientCert ($sender, $targetHost, $localCertificates, $remot
Function Connect-xCAT {
Param(
$mgtServer,
$mgtServerPort=3001,
$mgtServerAltName=$mgtServer
)
$script:xcatconnection = New-Object Net.Sockets.TcpClient($mgtServer,$mgtServerPort)
$script:verifycallback = Get-Content Function:\Appve-xCATCert
$script:xcatstream = $script:xcatconnection
}