About

Andrew Craig is a SCCM and Powershell Specialist currently working in Switzerland.

Advertisement

4 thoughts on “About

  1. Richard Chin April 28, 2012 / 2:34 pm

    Hi Andrew,

    Just wondering if you have a simple script that would allow me to enter a computer name and MAC address in a form, that would automatically create the computer association and add it to a collection in SCCM 2007? I would likt to give this to technicians when building new systems instead of giving then access to the sccm console.

  2. Chuck September 18, 2013 / 5:59 pm

    Hey Andrew,

    is there an easy way to delete all applications with dependencies and deployments?
    Would be really nice if you can find a way to this with powershell.
    I need this because I have to export and import my applications again.

    Regards
    Chuck

    • andrewdcraig September 19, 2013 / 8:11 am

      Hi chuck,
      Do you want to delete applications that have dependencies, or delete all applications and all dependencies (if the dependencies are apps then it’s kinda the same thing)?
      Deleting the application will automtaically delete the deployment when you delete through the console but i dont see a method in the provider for delete. Which means you should really check relationships, delete deployments, delete revision history, and then delete the app.

      A quick tip, monitor the smsprov.log on the server, then delete an application from the console. This is a good way to find out what the console actually does over the provider and give you a starting point for scripting.
      Andy

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s