
Thanks to Kent Agerlund, Jacob Svendsen, and Suzzi WIlliams, here’s a slightly updated ConfigMgr Startup script with a few small bug fixes.
Version 1.03: ConfigMgrStartup1.03.zip
A quick post to make available a couple of MOF files that can be quickly used to create four queries and four collections that are not included out of the box:
- All Windows Vista Systems
- All Windows 7 Systems
- All Windows Server 2008 Systems
- All Windows Server 2008 R2 Systems
I end up creating these at every client and the question of how to create them comes up on the forums every now and then.
Simply download, unzip, right-click on either the Collections or Queries node, choose Import, and follow the wizard.
Download: New Objects.zip
I recently created two scripts (using a lot of copy and paste from the SDK) to help me work with ConfigMgr programs.
The first is a copy and rename script. Unfortunately, program names are unique identifiers and thus you can’t just rename them. On a off basis, it’s not that big of a deal to simply create a new program with a new name. But if you have to do this to a lot of programs, it is pretty cumbersome and anti-IT. This script started as a way to copy and rename the default “Per-system unattended” program created when you import an MSI into ConfigMgr. Although I love the import functionality, and normally this default program name doesn’t bug me, when using MDT and entering programs to install by role, it’s difficult to tell what program is which when they are all named the same thing.
synatx is as follows: cscript copyprogram.vbs /package:<PackageID> /program:<Program Name to Copy> /newName:<Name of copied program>
After using the first script a few times, I realized that there were a few other things I always do to Packages imported from an MSI including deleting the “Per-user” programs and setting the allow run from a TS without an advertisement. And thus, I created the second script.
synatx is as follows: cscript MSICleanup.vbs /package:<PackageID> /newName:<Name of copied program>
Download: CopyProgram.zip
Download: MSICleanup.zip