PSD
PSD copied to clipboard
deployment share with different port
I have the deployment share at port 8443 because of 443 allready used. (https://mdtps.domain.something:8443/MDTPS
So I have to change "Test-PSDNetCon" function in "PSDUtility.psm1" module somehow like this:
hostname delivered to this function is "mdtps.domain.something:8443" in PSDStart.ps1 (# Validate network route to $deployRoot)
Powershell
if ($Hostname -match ":") {
$Port = $Hostname.Split(":")[1]
$Hostname = $Hostname.Split(":")[0]
}
else {
switch ($Protocol) {
SMB {
$Port = 445
}
HTTP {
$Port = 80
}
HTTPS {
$Port = 443
}
WINRM {
$Port = 5985
}
Default {
exit
}
}
}