6/2/2023 0 Comments Lansweeper sccmSet-Content -Path "$FilePath" -Value "If((Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$($LsAgent.PSChildName)','HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$($LsAgent.PSChildName)' -Name DisplayVersion -ea Silentl圜ontinue) -ge '$($LsAgent. # Create Text File with Lansweeper LsAgent Registry Detection Method Set-Content -Path "$FilePath" -Value "If((Get-Item -Path `"`$Env:ProgramFiles\$LsAgentPath`",`"`$ | Select-Object -Property DisplayName, DisplayVersion, PSChildName $FilePath = "C:\Windows\Temp\LsAgent_Detection_Method.txt" # Create Text File with Lansweeper LsAgent File Detection Method $FileVersion = (Get-Item -Path "$($LsAgentExe.FullName)" -ErrorAction Silentl圜ontinue).VersionInfo.FileVersion $LsAgentPath = $($LsAgentExe.FullName).Replace("C:\Program Files\","").Replace("C:\Program Files (x86)\","") $LsAgentExe = (Get-ChildItem -Path "C:\Program Files\LansweeperAgent\LansweeperAgentService.exe","C:\Program Files (x86)\LansweeperAgent\LansweeperAgentService.exe" -ErrorAction Silentl圜ontinue) Copy the following code into the Windows PowerShell ISE # Check for Lansweeper LsAgent (File Detection Method).Open Windows PowerShell ISE by Right-Clicking on Windows PowerShell ISE and selecting Run as Administrator.Lansweeper LsAgent Install and Uninstall (PowerShell).Lansweeper LsAgent Silent Install (How-To Guide).Check out the following posts for further details.Install the version of Lansweeper LsAgent you want to deploy on a test box or VM.Work daily with Active Directory, WinXP, Win7, LanSweeper, SCCM, Tivoli, and various makes. How to Create a Custom Detection Script for Lansweeper LsAgent Lansweeper LsAgent (File Detection Method) Identify and correct software application issues including patching. This article will serve as an informative guide and give you a clear understanding of how to create an updated custom detection script for each new version of the Lansweeper LsAgent using PowerShell. The detection rules ensure that application installations only begin to run if the application is not already installed on the device. Microsoft Endpoint Manager Configuration Manager (MEMCM / SCCM) and Microsoft Intune use Detection Rules to determine the presence of Applications
0 Comments
Leave a Reply. |