Skip to content

Commit 8298486

Browse files
authored
Shorter length
Match rest of code.
1 parent 8211c64 commit 8298486

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

LabTech.psm1

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,18 +1487,7 @@ Function Redo-LTService{
14871487

14881488
Write-Verbose "Starting: Install-LTService -Server $($ServerList -join ',') $PasswordArg -LocationID $LocationID -Hide:`$$($Hide) $RenameArg"
14891489
Try{
1490-
$InstallLTServiceParams = @{
1491-
Server = $ServerList
1492-
ServerPassword = $ServerPassword
1493-
LocationID = $LocationID
1494-
Hide = $Hide
1495-
Rename = $Rename
1496-
Force = $true
1497-
}
1498-
if ($SkipDotNet) {
1499-
$InstallLTServiceParams.SkipDotNet = $true
1500-
}
1501-
Install-LTService @InstallLTServiceParams
1490+
Install-LTService -Server $ServerList -ServerPassword $ServerPassword -LocationID $LocationID -Hide:$Hide -Rename $Rename -SkipDotNet:$SkipDotNet -Force
15021491
}#End Try
15031492

15041493
Catch{

0 commit comments

Comments
 (0)