Getting Started
Install the module to your Powershell module repository.
- Download the release extract it to a temp location and run the install.cmd batch file.
Import the module into your Powershell session using the command:
Get connection parameters to your SCCM provider automatically and set it as default.
- Get-SCCMConnection -SetDefault
The fun starts here. Let's get the task sequence packages in your environment.
- Get-SCCMPackage -Type TaskSequence
How about getting all the package associated to the task sequence.
- $pkgs = Get-SCCMPackage -Type TaskSequence | Get-SCCMTaskSequenceReferencePackage
And copy them to a distribution point on the server SMS-02.
- $pkgs | Copy-SCCMPackage -ComputerName SMS-02
Or copy the compressed files from server SMS-01 to USB drive D:\ and ship them physically.
- $pkgs | Export-SCCMPreloadPackage -ComputerName SMS-01 -Path D:\