Gökhan Yıldan

Notlarım İçin Bir Alan

Menu
  • Anasayfa
  • Hakkımda
  • İletişim
Menu

Check Which Task Sequence Contains a Specific Package

Posted on 31/01/202502/02/2025 by Gokhan Yildan

Hello,

In this post, I will share a script to identify which SCCM Task Sequences include specific SCCM Packages.

Let’s say we have several packages that we would like to delete, but we’re unsure whether these packages are utilized in any task sequences. Therefore, we want to ensure that none of the task sequences are using them.

Download the script from the link below.
https://github.com/gokhanyildan/SCCMScripts/blob/main/SCCMTS-PackageFinder.ps1

We have some packages we would like to delete.

First, we can create a CSV file containing the Package IDs of all the packages we want to check.

You will need to edit the following variables in the script (highlighted in yellow):

  • $SiteCode
  • $csvPath
  • $results

When you run the script, it will list all the task sequences where the specified packages are used.

Thanks.

Note:
I developed this script with the help of DeepSeek. While I have tested it numerous times, use it at your own risk.

Paylaş:
Category: Powershell

Post navigation

← Resolve CrowdStrike Issue Using Powershell and SCCM

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

SOSYAL MEDYA

LinkedIn
Twitter
RSS
Follow by Email

SON BAŞLIKLAR

  • Check Which Task Sequence Contains a Specific Package
  • Resolve CrowdStrike Issue Using Powershell and SCCM
  • Driver Import Problemi – Some driver(s) can not be imported successfully.
  • IPerf Aracı İle Network Kapasite ve Performans Analizi
  • Powershell ile SCCM Baseline Tetiklemek

ARŞİV

  • January 2025
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • February 2024
  • December 2023
  • November 2023
  • June 2023
  • March 2023
  • February 2023

KATEGORİLER

  • Applications
  • Baseline
  • Client Troubleshooting
  • CMG
  • Distribution Point
  • Dynamic Collection
  • Imaging
  • Inplace Upgrade
  • Networking
  • Optimization
  • PKI
  • Power BI
  • Powershell
  • Prerequisites Error/Warning
  • PXE
  • SCCM (MECM)
  • Site Recovery
  • SQL
  • SRSS
  • SUP
  • Task Sequence
  • Troubleshooting
  • Windows PC
  • Windows Server
  • Windows Update
  • WSUS

ETİKETLER

AnyDesk Azure Build Geçişi Certification Config Man Config Mgr English Feature Kaldırmak Maintenance Task MEMCM Nasıl Yapılır? PXE Responder SCCM (MECM) Script Software Update Sorun Giderme SQL Reporting SSL/PKI Türkçe Upgrade Windows 10/11

© 2025 Gökhan Yıldan | Powered by Minimalist Blog WordPress Theme