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: 109
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 Scan User Exclusion / Define User OU for active scanning
by  Almada   Go to last post Go to first unread
Last post: Yesterday at 6:43:34 PM(UTC)
Lansweeper sqlServerId is changing
by  Ciro Bizelli  
Go to last post Go to first unread
Last post: Yesterday at 3:40:34 PM(UTC)
Lansweeper Slow Loading Lansweeper
by  Maikel Vanroelen   Go to last post Go to first unread
Last post: Yesterday at 9:25:31 AM(UTC)
Lansweeper Sync information
by  Jay-IT  
Go to last post Go to first unread
Last post: 9/16/2021 9:20:11 PM(UTC)
Lansweeper "Unknown" exclusion does not exclude Unknown assets
by  Almada   Go to last post Go to first unread
Last post: 9/16/2021 7:18:43 PM(UTC)
Lansweeper multiple scanning servers with granular permission
by  FrankSc  
Go to last post Go to first unread
Last post: 9/16/2021 6:29:54 PM(UTC)
Lansweeper Separate helpdesk websites?
by  JCochran   Go to last post Go to first unread
Last post: 9/15/2021 2:51:03 PM(UTC)
Lansweeper Remove Ads
by  FrankSc  
Go to last post Go to first unread
Last post: 9/15/2021 12:30:18 PM(UTC)