/build/static/layout/Breadcrumb_cap_w.png

VB or HTA Get computers collection - add new computer in same collections

Hi all, hope someone here can help me? or have solved this on another way?

Why Script Need:Install a new pc (replace hardware) for a user with the same apps.

Current Situation:
Right now Vista with SCCM/CM direct membersip in collection with advertisment.

Problem/Solution:
We will preinstall a PC (new hardware) to users (then can replace when they want)
I´m looking for a script where I can type a "old/present computername" and a "new computername" then the script will read which collection my old comupter is a member of, and add the new to the samt collections?

Yes we use Direct membership and we have no plans of changing this now :-)

Thanks

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 13 years ago
Red Belt
0
MSDN has sample code for querying a collection.

I *think* I posted some stuff on AppDeploy, too......
Posted by: fetgor 13 years ago
Senior Purple Belt
0
As I´m really bad at scripting I hoped someone had "invented" this?

I´v seached a lot but cannot find a script that fits into what I need.
Posted by: anonymous_9363 13 years ago
Red Belt
0
OK, so your choices are:

- learn VBS
- employ someone to create the script for you.

Since it sounds like this is a "nice to have" tool rather than a "we can't operate without it" tool, the former option sounds favourite.cannot find a script that fits into what I need.One of the quickest routes to learning stuff like this is to take what someone has already done and mould it to suit your purposes. From knowing nothing about SCCM, I used the MSDN sample code to create a script which added a package to SCCM, ready for deployment. It creates the AD group (we use AD to control collection "membership"), the package, the program, it assigns the package to Distribution Point, creates the Collection, Advertisement and finally sets the Maintenance Window.

And no, regrettably, I am unable to share that script, having been burned in the past.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ