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
Picture of Matt Tinney

Matt Tinney

Professional IT executive & business leader having decades of experience with Microsoft technologies delivering modern-day cloud & security solutions.

Contact Us

=
On Key

More Posts

WME Cybersecurity Briefings No. 024
Cyber Security

WME Security Briefing 28 August 2024

GhostWrite Vulnerability in T-Head CPUs Exposes Devices to Unrestricted Access Overview A critical architectural flaw in T-Head’s XuanTie C910 and C920 RISC-V CPUs was uncovered by recent research from the CISPA Helmholtz Center for Information Security. Dubbed GhostWrite, the vulnerability

Click Here to Read Full Article »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.

=