Weekly Tip 43

Change the Comment on Multiple Packages:

import-module “<path to SCCM cmdlet file>”

$pack_ids = get-content <path to file containing package IDs>

cd <site code>:

ForEach ($pack_id in $pack_ids) {

Set-CMPackage -id $pack_id -Description “<new comment>”

Write-host “comment set on $pack_id” }

Steps:

  1. Copy this into a PS1 file or into PowerShell ISE
  2. Change line 1 to reflect the location of ConfigMgr cmdlet file
  • File called ConfigurationManager.psd1 located in the ConfigMgr Console installation directory
  1. Change line 3 to reflect the location of a text file containing the package IDs for the packages you want changed
  2. Change line 5 to your ConfigMgr site code
  3. Change line 8 to the comment that you want to insert

Share:

Facebook
Twitter
LinkedIn

Contact Us

=
On Key

More Posts

WME Security Briefing 27 May 2024

Kinsing Hacker Group Exploits Docker Vulnerabilities Overview Recent investigations have shown that the hacker group Kinsing is actively exploiting Docker vulnerabilities to gain unauthorized access to systems. The modified hacker group targets misconfigured Docker API ports deployed with cryptocurrency mining malware.

Read More »
WME Cybersecurity Briefings No. 010
Cyber Security

WME Security Briefing 20 May 2024

Advanced Persistent Threats: North Korean Hackers Launch Golang Malware Overview A new malware strain, called Titan Stealer, is currently actively circulating in the threat landscape, targeting a variety of personal data and linked to North Korean state-sponsored cyber espionage

Read More »
WME Cybersecurity Briefings No. 009
Cyber Security

WME Security Briefing 08 May 2024

Exploitable vulnerability in Microsoft Internet Explorer, used to deploy VBA Malware Overview Cybersecurity researchers discovered a severe exploitation targeting a bug that had already been patched in the Microsoft Internet Explorer browser. Their report added that

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.

=