Skip to content

Commit e5e89fc

Browse files
committed
Added SkipCheck to Connect-AutomateAPI
1 parent 8b5d61f commit e5e89fc

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

LabTech.psm1

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ Function Get-LTServiceInfo{
107107
Param ()
108108

109109
Begin{
110-
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False
111110
Write-Debug "Starting $($myInvocation.InvocationName) at line $(LINENUM)"
112111
Clear-Variable key,BasePath,exclude,Servers -EA 0 -WhatIf:$False -Confirm:$False #Clearing Variables for use
113112
$exclude = "PSParentPath","PSChildName","PSDrive","PSProvider","PSPath"
@@ -574,7 +573,6 @@ Function Uninstall-LTService{
574573

575574
Begin{
576575
Clear-Variable Executables,BasePath,reg,regs,installer,installerTest,installerResult,LTSI,uninstaller,uninstallerTest,uninstallerResult,xarg,Svr,SVer,SvrVer,SvrVerCheck,GoodServer,AlternateServer,Item -EA 0 -WhatIf:$False -Confirm:$False #Clearing Variables for use
577-
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False
578576
Write-Debug "Starting $($myInvocation.InvocationName) at line $(LINENUM)"
579577

580578
If (-not ([bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()|Select-Object -Expand groups -EA 0) -match 'S-1-5-32-544'))) {
@@ -992,7 +990,6 @@ Function Install-LTService{
992990

993991
Begin{
994992
Clear-Variable DotNET,OSVersion,PasswordArg,Result,logpath,logfile,curlog,installer,installerTest,installerResult,GoodServer,GoodTrayPort,TestTrayPort,Svr,SVer,SvrVer,SvrVerCheck,iarg,timeout,sw,tmpLTSI -EA 0 -WhatIf:$False -Confirm:$False #Clearing Variables for use
995-
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False
996993
Write-Debug "Starting $($myInvocation.InvocationName) at line $(LINENUM)"
997994

998995
If (!($Force)) {
@@ -1542,7 +1539,6 @@ Function Update-LTService{
15421539
)
15431540

15441541
Begin{
1545-
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False
15461542
Write-Debug "Starting $($myInvocation.InvocationName) at line $(LINENUM)"
15471543
Clear-Variable Svr, GoodServer, Settings -EA 0 -WhatIf:$False -Confirm:$False #Clearing Variables for use
15481544
$Settings = Get-LTServiceInfo -EA 0 -Verbose:$False -WhatIf:$False -Confirm:$False
@@ -1780,7 +1776,6 @@ Function Get-LTErrors{
17801776
Param()
17811777

17821778
Begin{
1783-
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False
17841779
Write-Debug "Starting $($myInvocation.InvocationName) at line $(LINENUM)"
17851780
$BasePath = $(Get-LTServiceInfo -EA 0 -Verbose:$False -WhatIf:$False -Confirm:$False -Debug:$False|Select-Object -Expand BasePath -EA 0)
17861781
if (!$BasePath){$BasePath = "$env:windir\LTSVC"}
@@ -2280,7 +2275,6 @@ Function Test-LTPorts{
22802275
}#End Function TestPort
22812276

22822277
Clear-Variable CleanSvr,svr,proc,processes,port,netstat,line -EA 0 -WhatIf:$False -Confirm:$False #Clearing Variables for use
2283-
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False
22842278
Write-Debug "Starting $($myInvocation.InvocationName) at line $(LINENUM)"
22852279

22862280
}#End Begin
@@ -2507,7 +2501,6 @@ Function Get-LTProbeErrors{
25072501
Param()
25082502

25092503
Begin{
2510-
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False
25112504
Write-Debug "Starting $($myInvocation.InvocationName) at line $(LINENUM)"
25122505
$BasePath = $(Get-LTServiceInfo -EA 0 -Verbose:$False -WhatIf:$False -Confirm:$False -Debug:$False|Select-Object -Expand BasePath -EA 0)
25132506
if (!($BasePath)){$BasePath = "$env:windir\LTSVC"}
@@ -3231,7 +3224,6 @@ Function Set-LTProxy{
32313224

32323225
Begin {
32333226
Clear-Variable LTServiceSettingsChanged,LTSS,LTServiceRestartNeeded,proxyURL,proxyUser,proxyPass,passwd,Svr -EA 0 -WhatIf:$False -Confirm:$False #Clearing Variables for use
3234-
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False
32353227
Write-Debug "Starting $($myInvocation.InvocationName) at line $(LINENUM)"
32363228

32373229
try {
@@ -3484,6 +3476,7 @@ Function Get-LTProxy{
34843476
Function Get-CurrentLineNumber {
34853477
$MyInvocation.ScriptLineNumber
34863478
}
3479+
Set-Alias -name LINENUM -value Get-CurrentLineNumber -WhatIf:$False -Confirm:$False -Scope Script
34873480

34883481
Function Initialize-LTServiceModule{
34893482
<#

0 commit comments

Comments
 (0)