Add multiple users to SCCM 2012 collection

I have a list of users and I want to add the users to SCCM collection. Is there any way by VB script to do this?
\m/

Probably, but why use VBScript at all? 2012 has cmdlets you can use for this purpose.
http://www.microsoft.com/en-us/download/details.aspx?id=41196&WT.mc_id=rss_alldownloads_all
EDIT: Direct link:
http://technet.microsoft.com/en-us/library/jj821831%28v=sc.10%29.aspx
Caveat - requires a minimum of SP1. There's no reason to not be at least on SP1 by now.
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing)

Similar Messages

  • How do you add multiple users to an itunes account

    how do you add multiple users to an itunes account

    First :
    Using an iPhone without a wireless service plan
    Then restore the iPod to factory settings/new iPod on the computer your kids will use:
    iTunes: Restoring iOS software
    If you are using the same computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • How to add multiple users to a role in ECC 6.0

    How to add multiple users (say 1000) to a role in ECC 6.0?

    Hi
    You can actually add multiple users to a role using transaction SU01. From SU01, use the menu Environment->Mass Changes.
    Here you can manually add the users, select them by address or authorisation data. Once you have your user list, you can then add or remove roles and/or profiles.
    Secondly , You can use SU10 to do mass changes to multiple users including role assignments per logical systems
    Also check the following link:
    http://www.sap-img.com/bc021.htm
    I hope this should do it
    regards
    Chen

  • Add multiple users to a certain database in the SQL server in one go

    I wonder if there is any method to add multiple users to a certain database in the SQL server in one go and without using transact code.
    I can add a single user to a certain database “Q” for example by right click on the user “U1” for example then properties then in user mapping tab select
    the database “Q”, so there should be a method to add multiple users ( U1,U2,U3…) to this database?
    Best Regards,
    Ahmad

    Many thanks Visakh16,
    I can do this using the below script, but what I am searching for is do to this without any scripting.
    USE TestDatabase; --Make sure you have the right database
    DECLARE @sql VARCHAR(MAX) = '';
    SELECT @sql = @sql + 'CREATE USER ' + name + ' FOR LOGIN ' + name + ';
    ' +
    'GRANT CREATE TABLE, CREATE PROCEDURE, CREATE VIEW, VIEW DEFINITION TO ' + name + ';
    FROM sys.server_principals p
    WHERE p.type in ('S','U') -- SQL Logins and Windows Login. Do not change!
    and p.name in ('U1','U2','U3'); -- List of names to add. alter to suit
    PRINT @sql; -- Show the statements being executed in the messages pane
    EXEC(@sql); -- Run the statements that have been built
    Thanks,
    Ahmad

  • OSD: SCCM 2012 collection which should exclude Windows 7 clients (query not working fine)

    Hi,
    We have an SCCM 2012 collection to which we deploy Windows 7.
    Vista clients get a SCCM 2012 client in SCCM 2007 and once they have it, they get a Windows 7 deployment.
    The group is populated by an AD query and that works fine. However, when we try to exclude Windows 7 machines (query = not Windows NT ... 6.1) the query does not return any result.
    Please advise.
    J.
    Jan Hoedt

    Please check your query. It should be like the following.
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Version != "6.1.7601"
    Juke Chou
    TechNet Community Support

  • HT3965 Can you add multiple user profile to the iPad

    Can you add multiple user profile to the iPad

    Hi Friend,
    Apple devices are developed for single users.
    Hope it helps

  • Add multiple users to AD Group using AddRange

    All,
    I am trying to add multiple users to an AD security group using AddRange method but no luck.
    Reason why I am using AddRange method is, the memberlist is pretty big (30K users) and Quest or MSFT AD Cmdlets taking plenty of time to add them.
    I am following the instruction per http://msdn.microsoft.com/en-in/library/ms180904(v=vs.80).aspx but no luck.
    Code snippet:
    $groupmembers = Get-Content C:\Temp\MemberDN.txt
    $getgroup = [ADSI]"LDAP://CN=MYADGROUP,OU=GROUPS,DC=CONTOSO,DC=COM"
    $getgroup.properties.member.AddRange($groupmembers)
    #$getgroup.properties["member"].AddRange($groupmembers)
    $getgroup.CommitChanges()
    #$getgroup.SetInfo()
    I tried using ADSPATH as well but no luck.
    Any help or pointers are appreciated.
    Thanks.

    Hi PSPR,
    I agree with David .
    Also I tested that on my server2012r2 , please refer to :
    $user="cn=test1,cn=users,dc=test,dc=com","cn=test2,cn=users,dc=test,dc=com"
    $obj=[adsi]"LDAP://cn=test,cn=users,dc=test,dc=com"
    $obj.member.addrange($user)
    $obj.commitchanges()
    Hope it helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Bulk loader for SCCM 2012 collections

    I am looking for a tool which will add users / computer names as direct membership to collections, Bulk loader was there in SCCM 2007 but it is not working in SCCM 2012. Please suggest..

    Hi,
    Here is a PowerShell script with GUI for your reference.
    Configuration Manager 2012 Direct Membership Collection Manager
    http://blogs.msdn.com/b/rslaten/archive/2014/03/10/configuration-manager-direct-membership-collection-manager.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SCCM 2012 Collection Query

    Hi All,
    I am using SCCM 2012 SP1 with SQL 2008 R2 SP1. I have scenario as below.
    App A is targeted to user based collection as Available (Optional).
    App B needs to be targeted to users who has successfully installed App A as Required(Mandatory).
    Note : As per application behaviour we cannot target App B to machine(Device) based collection, otherwise I would have created a query to pull out all the machines in a collection where App A is successfully installed on base of Add/Remove
    program display name.
    Question : I want to create a user collection query which will pullout last logged on user for all the machines where
    App A is installed successfully, so that I can target App B to this user based collection as Required(Mandatory). In this way if in future any other user is installing App A then that user will also get pulled out automatically to this user
    based collection.
    Its bit urgent for me. Request you please help me to get this query or let me know if there is any other way to achieve this.
    Thanks & Regards Uttam

    Hi Torsten,
    I really have not thought about supersedence but App B is not the upgrade or replacement for App A. If it would then we would have defined the relationship in supersedence. But App A and App B are entirely different applications. Functionality of App B depends
    upon App A, so both has to be there on the machine.
    Only the thing is App B should go to the users who has already installed App A on their machines. For this I would like to create user based collection but confused regarding query. How can we achieve this? I am thinking of to modify the below query
    to pull out last logged on user from the below collection query. I am using SCCM 2012 SP1 with SQL 2008 R2 SP1. How can I modify the below query?
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where ResourceId in  (select ResourceId from SMS_G_System_ADD_REMOVE_PROGRAMS
    where DisplayName="App A ARP name" and Version = "1.0.0")
    Thanks & Regards Uttam

  • Powershell and SCCM 2012 Collections from AD

    Greetings everyone, I am trying to take a select of groups in a certain OU within AD to make SCCM 2012 user collections from. I been playing around with just creating the collections based upon a txt file which would work and is probably easier. Can someone
    go through this mess I have down here and make this work. I found some scripts that do what I need but they just aren't flowing together well. Thanks for any help you can give. I think the 'DOMAIN\\'$ADName isn't going to work either. Thoughts?
    import-module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1')
    $PSD = Get-PSDrive -PSProvider CMSite
    CD "$($PSD):"
    $ADName = Get-Content -Path C:\fso\ADgroups.txt
    New-CMUserCollection -Name $ADName -LimitingCollectionName "All Users and User Groups" -RefreshType Both
    Add-CMUserCollectionQueryMembershipRule -CollectionName $ADName -QueryExpression "select *  from  SMS_R_User where SMS_R_User.UserGroupName = 'DOMAIN\\'$ADName" -RuleName "QueryRuleName1"

    Hi,
    I highly recommend asking this question in the ConfigMgr 2012 SDK/PowerShell forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=configmanagersdk&filter=alltypes&sort=lastpostdesc
    This forum is meant for general PowerShell questions. Hopefully you'll get a good response from someone here, but the people who are familiar with the ConfigMgr cmdlets will be more likely to see your question in the specialized forum.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Service/Plan to Add multiple users to OrgUnits

    How to update OU members in CCP 9.3.2 by using Services ? Is there any way to use Rex ? What Transformation format should I use?

    Hi Lee,
    "Add Organization Technical Administrator" service is using REX Add Person agents which will update "Organizations" attribute for one user, but what I need is to populate "Organizations" attribute of multiple users with multiple OrgUnits or the other way, adding multiple users as a member of one or multiple OrgUnits.

  • Sccm 2012 collection query for software deployment failed PCs

    Hi,
    Let me know how can we create a collection of PCs which a particular advertisement failed.
    SCCM 2012 sp1 infra
    Midhun.PS

    See
    http://myitforum.com/cs2/blogs/gramsey/archive/2006/10/20/How-To_3A00_-Create-a-Collection-Based-on-an-Advertisement-Status.aspx. This will only work for program deployments, not applications.
    Torsten Meringer | http://www.mssccmfaq.de

  • Sccm 2012 collections of specific servers (terminal servers etc)

    Hi,
    Please advise what criteria I should use in SCCM 2012 to make collections of specific servers: f.e. terminal servers.
    J.
    Jan Hoedt

    Add Win32_Serverfeature to hardware inventory (http://msdn.microsoft.com/en-us/library/cc280268(v=vs.85).aspx) and create collections based on that data.
    Torsten Meringer | http://www.mssccmfaq.de

  • Running multiple commands in SCCM 2012 R2

    Dear Professionals 
        I am really new in SCCM 2012 an i did alot of self study but there are a few things are really killing me ... 
    how i run Running multiple commands in a task sequence 
    Diskpart
    Sel Disk 0
    clean
    Exit
    And also in what step i should create this command line to solve error code 0x80070070
    Thank you 

    i will try that .. but i have been told that command may not fix the problem i have ... 
    is there another way to only format c:\ and leave the other partitions as it is ??
    i am booting from PXE and use the USMT TS is that correct or i must run it from software Center ??
    in the text file i only copy and paste the commands as it is or i should paste it in a specific form ?? like
    Diskpart
    Sel Disk 0
    clean
    Exit 
    Or 
    Diskpart & Sel Disk 0 & clean
    & Exit 
    from what i read online i think the main problem is that the partition can not be wiped 
    Thank you so much for your time and patience 
    Yahia Zouhair

  • Same Windows Update installed multiple times through SCCM 2012

    Hello There,
    I am using SCCM 2012 to deploy critical and important updates through Automatic Deployment Rule it works fine but i have noticed recently on the client machines i see the same KB / update is installed multiple times.
    Why would this happen? Please suggest.
    Regards,
    Maqsood
    Maqsood Mohammed Senior Systems Engineer MCITP-Enterprise Admin & ITILv3 Foundation Certified

    Hi,
    My computer also have duplicated updates installed. I uninstalled one of them that needed a restart. Then uninstall another one after restart, it hadn't asked for restart and the uninstall process was very fast. So I think the update only installed one time,
    the others are duplicated records.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • Problem passing parameter to crystal report subreport from *.aspx page

    Background: I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Re

  • Printer Queue Clogged

    I am printing to an HP LaserJet 1022. I've been running this printer for about a year with no problems at all. For some reason now when I print, it will stay in the queue until I go in and delete the last job that printed. Once it's printed the file,

  • Custom Navigation bar not working. Apple can't seem to help

    After watching many videos on people customizing their Navigation bars on Iweb, I decided to do the same for my website. If you go to the home page of my site I can click on any link and have no problem. However, once I am off of the home page I cann

  • Album art size in 5800 music player

    I am experimenting with album art in MP3's on my 5800. It seems as though the displayed size of album art while the track is playing varies with the size of the original jpeg attached into the mp3 file. Anybody else find this or a solution? For examp

  • Will the magnetic lasso tool work in Premier Elements?

    In Photoshop CS the magnetic lasso tool works to knockout the background from an image (photo). Will this tool work in Elements 13?