File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -1332,6 +1332,9 @@ Function Redo-LTService{
1332
1332
. PARAMETER Rename
1333
1333
This will call Rename-LTAddRemove to rename the install in Add/Remove Programs
1334
1334
1335
+ . PARAMETER SkipDotNet
1336
+ This will disable the error checking for the .NET 3.5 and .NET 2.0 frameworks during the install process.
1337
+
1335
1338
. PARAMETER Force
1336
1339
This will force operation on an agent detected as a probe.
1337
1340
@@ -1367,6 +1370,9 @@ Function Redo-LTService{
1367
1370
Added support for -Force parameter to override probe detection.
1368
1371
Updated support of -WhatIf parameter.
1369
1372
1373
+ Update Date: 2/22/2019
1374
+ Purpose/Change: Added -SkipDotNet parameter.
1375
+ Allows for skipping of .NET 3.5 and 2.0 framework checks for installing on OS with .NET 4.0+ already installed
1370
1376
. LINK
1371
1377
http://labtechconsulting.com
1372
1378
#>
@@ -1387,6 +1393,7 @@ Function Redo-LTService{
1387
1393
[Parameter ()]
1388
1394
[AllowNull ()]
1389
1395
[string ]$Rename ,
1396
+ [switch ]$SkipDotNet ,
1390
1397
[switch ]$Force
1391
1398
)
1392
1399
@@ -1480,7 +1487,18 @@ Function Redo-LTService{
1480
1487
1481
1488
Write-Verbose " Starting: Install-LTService -Server $ ( $ServerList -join ' ,' ) $PasswordArg -LocationID $LocationID -Hide:`$ $ ( $Hide ) $RenameArg "
1482
1489
Try {
1483
- Install-LTService - Server $ServerList - ServerPassword $ServerPassword - LocationID $LocationID - Hide:$Hide - Rename $Rename - Force
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
1484
1502
}# End Try
1485
1503
1486
1504
Catch {
You can’t perform that action at this time.
0 commit comments