diff --git a/xCAT-server/share/xcat/netboot/windows/xCAT.psd1 b/xCAT-server/share/xcat/netboot/windows/xCAT.psd1
index 04eed9c0b..d0b5e6d49 100755
Binary files a/xCAT-server/share/xcat/netboot/windows/xCAT.psd1 and b/xCAT-server/share/xcat/netboot/windows/xCAT.psd1 differ
diff --git a/xCAT-server/share/xcat/netboot/windows/xCAT.psm1 b/xCAT-server/share/xcat/netboot/windows/xCAT.psm1
index b18d44b25..f9ebf4b56 100644
--- a/xCAT-server/share/xcat/netboot/windows/xCAT.psm1
+++ b/xCAT-server/share/xcat/netboot/windows/xCAT.psm1
@@ -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
 }