Jump to content


Search the Community

Showing results for tags 'SCCM 2012: Scripting'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Cloud
    • Azure
    • Microsoft Intune
    • Office 365
    • Windows 365
  • General Stuff
    • General Chat
    • Events
    • Site News
    • Official Forum Supporters
    • Windows News
    • Suggestion box
    • Jobs
  • MDT, SMS, SCCM, Current Branch &Technical Preview
    • How do I ?
    • Microsoft Deployment Toolkit (MDT)
    • SMS 2003
    • Configuration Manager 2007
    • Configuration Manager 2012
    • System Center Configuration Manager (Current Branch)
    • Packaging
    • scripting
    • Endpoint Protection
  • Windows Client
    • how do I ?
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
    • windows screenshots
  • Windows Server
    • Windows Server General
    • Active Directory
    • Microsoft SQL Server
    • System Center Operations Manager
    • KMS
    • Windows Deployment Services
    • NAP
    • Failover Clustering
    • PKI
    • Hyper V
    • Exchange
    • IIS/apache/web server
    • System Center Data Protection Manager
    • System Center Service Manager
    • System Center App Controller
    • System Center Virtual Machine Manager
    • System Center Orchestrator
    • Lync
    • Application Virtualization
    • Sharepoint
    • WSUS

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests

Found 1 result

  1. it's the same way as before but as the LimitToCollection is mandatory now, we must include this one in the properties declaration of the new collection Also another new otpion is the Collection type:0=OTHER;1=USER;2=DEVICE; default=2 BUT, for the 0 option, the collection is well created but i can't find it ... In this example, i create a new user collection Set newCollection = SMSConnection.Get("SMS_Collection").SpawnInstance_() newCollection.Name = "Test User" newCollection.Comment = "Test User Collection creation automation test" newCollection.CollectionType = 0 '0=OTHER;1=USER;2=DEVICE; default=2 newCollection.LimitToCollectionID= "SMS00002" 'is mandatory now -> for example SMS00001 for all systems; SMS00002 For all users path=newCollection.Put_ In this example, i create a new Device collection; as the CollectionType is by default 2 (=DEVICE) this property is not necessary Set newCollection = SMSConnection.Get("SMS_Collection").SpawnInstance_() newCollection.Name = "Test Device" newCollection.Comment = "Test Device Collection creation automation test" newCollection.LimitToCollectionID= "SMS00001" 'is mandatory now -> for example SMS00001 for all systems; SMS00002 For all users path=newCollection.Put_ Remarq: You can assign SMS00001 (All systems) as LimitToCollectionID for a USER collection and SMS00002 (All Users) as LimitToCollectionID for a DEVICE Collection, so pay attention type of object you add as collection member Have a nice day Gvlaarho
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.