Notification

Icon
Error

Check Asset Window Update Status Via Powershell - Check Asset Window Update Status Via Powershell

Posted: Tuesday, January 19, 2021 3:30:09 PM(UTC)
Andy.S

Andy.S

Member Original PosterPosts: 57
0
Like
Powershell example
This is a action script which queries the remote asset and gathers the status of Windows Updates and displays them in Notepad, save the powershell script in your script area within "DefaultPackageShare$"

Powershell Script check-updates.ps1:

Code:
$Computername=$args[0]


$query=Get-HotFix  -ComputerName $Computername

$query| Export-Csv -NoType "c:\temp\$computername-WindowsUpdates.csv"
$FileLocation="c:\temp\$computername-WindowsUpdates.csv"
Start-Process notepad $FileLocation


Add Asset Action with the following, amend your path to the script:

Code:

powershell -noprofile -ExecutionPolicy bypass -command //SERVER/defaultpackageshare$/scripts/check-updates.ps1  {computer} 

Active Discussions

Lansweeper Asset management/replacement
by  RC62N   Go to last post Go to first unread
Last post: 2/26/2021 6:30:22 PM(UTC)
Lansweeper Turn off graphical report builder
by  Tenacious   Go to last post Go to first unread
Last post: 2/23/2021 7:53:03 PM(UTC)
Report Center Reference software list
by  DeviantTomato   Go to last post Go to first unread
Last post: 2/23/2021 1:16:48 PM(UTC)
Lansweeper Report Filtering Uptime
by  CyberCitizen  
Go to last post Go to first unread
Last post: 2/22/2021 12:28:22 AM(UTC)
Lansweeper Adobe Report for CVE-2021-21017
by  baycrest   Go to last post Go to first unread
Last post: 2/10/2021 2:27:57 PM(UTC)
Lansweeper Need help with two reports
by  Andy.S  
Go to last post Go to first unread
Last post: 2/10/2021 10:15:42 AM(UTC)