Importing Active Directory OU's to SCCM with thru PowerShell CodeValidate a username and password against Active Directory?What are the differences between LDAP and Active Directory?User Group and Role Management in .NET with Active DirectoryActive Directory WCF ServiceHow do you comment out code in PowerShell?Power shell Script execution from the AD starup scriptsSCCM Device not showing in Device CollectionActive directory migration with powershellSCCM and Client 'Replace'Add-CMDeviceCollectionQueryMembershipRule using a variable

Could Apollo astronauts see city lights from the moon?

Why was it decided in 1956 to abolish the spelling чорт (devil) in favor of чёрт?

Iterating over &Vec<T> and Vec<&T>

How can I tell the difference between fishing for rolls and being involved?

What is the white pattern on trim wheel for?

Subverting the emotional woman and stoic man trope

Can someone give the intuition behind Mean Absolute Error and the Median?

We are on WHV, my boyfriend was in a small collision, we are leaving in 2 weeks what happens if we don’t pay the damages?

Is the mass of paint relevant in rocket design?

Do wheelchair-accessible aircraft exist?

Beyond Futuristic Technology for an Alien Warship?

A famous scholar sent me an unpublished draft of hers. Then she died. I think her work should be published. What should I do?

What is the difference between an astronaut in the ISS and a freediver in perfect neutral buoyancy?

May I know how to stop these death waves?

How to check if my quadrature encoder is broken or not?

irrational fear of hell and damnation and spiralling, please help me?

Are fuzzy sets appreciated by OR community?

Why is a road bike faster than a city bike with the same effort? How much faster it can be?

Does "as soon as" imply simultaneity?

MaxDetect speed

How can this Stack Exchange site have an animated favicon?

Suffocation while cooking under an umbrella?

Difference between "rip up" and "rip down"

Difference between types of yeast



Importing Active Directory OU's to SCCM with thru PowerShell Code


Validate a username and password against Active Directory?What are the differences between LDAP and Active Directory?User Group and Role Management in .NET with Active DirectoryActive Directory WCF ServiceHow do you comment out code in PowerShell?Power shell Script execution from the AD starup scriptsSCCM Device not showing in Device CollectionActive directory migration with powershellSCCM and Client 'Replace'Add-CMDeviceCollectionQueryMembershipRule using a variable






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















I need to move my OU's in my Active Directory to SCCM Device Collections using Power Shell. Basically replication AD OU's in SCCM.



I have tried to create device collections based off of active directory OU structures but I have hundreds of collections and it takes a while to create one. This is something we have to do in monthly basis in our case. I'm a newbie so I might have asked a very basic question...



https://imgur.com/ieeG55i is the OU's I have for each department, and according to each department I am trying to have a device collection in SCCM.



https://imgur.com/aDfN92j is the SCCM device collection snap shot.










share|improve this question






























    -1















    I need to move my OU's in my Active Directory to SCCM Device Collections using Power Shell. Basically replication AD OU's in SCCM.



    I have tried to create device collections based off of active directory OU structures but I have hundreds of collections and it takes a while to create one. This is something we have to do in monthly basis in our case. I'm a newbie so I might have asked a very basic question...



    https://imgur.com/ieeG55i is the OU's I have for each department, and according to each department I am trying to have a device collection in SCCM.



    https://imgur.com/aDfN92j is the SCCM device collection snap shot.










    share|improve this question


























      -1












      -1








      -1








      I need to move my OU's in my Active Directory to SCCM Device Collections using Power Shell. Basically replication AD OU's in SCCM.



      I have tried to create device collections based off of active directory OU structures but I have hundreds of collections and it takes a while to create one. This is something we have to do in monthly basis in our case. I'm a newbie so I might have asked a very basic question...



      https://imgur.com/ieeG55i is the OU's I have for each department, and according to each department I am trying to have a device collection in SCCM.



      https://imgur.com/aDfN92j is the SCCM device collection snap shot.










      share|improve this question














      I need to move my OU's in my Active Directory to SCCM Device Collections using Power Shell. Basically replication AD OU's in SCCM.



      I have tried to create device collections based off of active directory OU structures but I have hundreds of collections and it takes a while to create one. This is something we have to do in monthly basis in our case. I'm a newbie so I might have asked a very basic question...



      https://imgur.com/ieeG55i is the OU's I have for each department, and according to each department I am trying to have a device collection in SCCM.



      https://imgur.com/aDfN92j is the SCCM device collection snap shot.







      powershell active-directory sccm active-directory-group






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 18:10









      Ahmed ÇetinerAhmed Çetiner

      11 bronze badge




      11 bronze badge

























          1 Answer
          1






          active

          oldest

          votes


















          1
















          Just use …



          Get-ADOrganizationalUnit -Filter '*' | 
          Select Name,DistinguishedName


          … to get your OU data.



          So, since your are new to this, that's fine, but, please spend time on YouTube, MSDN Channel9, Microsoft Virtual Academy, Microsoft Learning to take the visual approach to getting up to speed. Just search for PowerShell presentations / training and PowerShell Active Directory. To get up to speed.






          share|improve this answer




















          • 1





            tbf this is only half the work. To create a collection in sccm you would need the sccm cmdlets (automatically installed on any pc with sccm console) and then create every name you got from your first query with New-CmCollection (docs.microsoft.com/en-us/powershell/module/configurationmanager/…) afterwards move it where you want with Move-CMObject (docs.microsoft.com/en-us/powershell/module/configurationmanager/…)

            – Syberdoor
            Mar 29 at 8:50













          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55404282%2fimporting-active-directory-ous-to-sccm-with-thru-powershell-code%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1
















          Just use …



          Get-ADOrganizationalUnit -Filter '*' | 
          Select Name,DistinguishedName


          … to get your OU data.



          So, since your are new to this, that's fine, but, please spend time on YouTube, MSDN Channel9, Microsoft Virtual Academy, Microsoft Learning to take the visual approach to getting up to speed. Just search for PowerShell presentations / training and PowerShell Active Directory. To get up to speed.






          share|improve this answer




















          • 1





            tbf this is only half the work. To create a collection in sccm you would need the sccm cmdlets (automatically installed on any pc with sccm console) and then create every name you got from your first query with New-CmCollection (docs.microsoft.com/en-us/powershell/module/configurationmanager/…) afterwards move it where you want with Move-CMObject (docs.microsoft.com/en-us/powershell/module/configurationmanager/…)

            – Syberdoor
            Mar 29 at 8:50















          1
















          Just use …



          Get-ADOrganizationalUnit -Filter '*' | 
          Select Name,DistinguishedName


          … to get your OU data.



          So, since your are new to this, that's fine, but, please spend time on YouTube, MSDN Channel9, Microsoft Virtual Academy, Microsoft Learning to take the visual approach to getting up to speed. Just search for PowerShell presentations / training and PowerShell Active Directory. To get up to speed.






          share|improve this answer




















          • 1





            tbf this is only half the work. To create a collection in sccm you would need the sccm cmdlets (automatically installed on any pc with sccm console) and then create every name you got from your first query with New-CmCollection (docs.microsoft.com/en-us/powershell/module/configurationmanager/…) afterwards move it where you want with Move-CMObject (docs.microsoft.com/en-us/powershell/module/configurationmanager/…)

            – Syberdoor
            Mar 29 at 8:50













          1














          1










          1









          Just use …



          Get-ADOrganizationalUnit -Filter '*' | 
          Select Name,DistinguishedName


          … to get your OU data.



          So, since your are new to this, that's fine, but, please spend time on YouTube, MSDN Channel9, Microsoft Virtual Academy, Microsoft Learning to take the visual approach to getting up to speed. Just search for PowerShell presentations / training and PowerShell Active Directory. To get up to speed.






          share|improve this answer













          Just use …



          Get-ADOrganizationalUnit -Filter '*' | 
          Select Name,DistinguishedName


          … to get your OU data.



          So, since your are new to this, that's fine, but, please spend time on YouTube, MSDN Channel9, Microsoft Virtual Academy, Microsoft Learning to take the visual approach to getting up to speed. Just search for PowerShell presentations / training and PowerShell Active Directory. To get up to speed.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 29 at 0:10









          postanotepostanote

          5,1282 gold badges4 silver badges11 bronze badges




          5,1282 gold badges4 silver badges11 bronze badges










          • 1





            tbf this is only half the work. To create a collection in sccm you would need the sccm cmdlets (automatically installed on any pc with sccm console) and then create every name you got from your first query with New-CmCollection (docs.microsoft.com/en-us/powershell/module/configurationmanager/…) afterwards move it where you want with Move-CMObject (docs.microsoft.com/en-us/powershell/module/configurationmanager/…)

            – Syberdoor
            Mar 29 at 8:50












          • 1





            tbf this is only half the work. To create a collection in sccm you would need the sccm cmdlets (automatically installed on any pc with sccm console) and then create every name you got from your first query with New-CmCollection (docs.microsoft.com/en-us/powershell/module/configurationmanager/…) afterwards move it where you want with Move-CMObject (docs.microsoft.com/en-us/powershell/module/configurationmanager/…)

            – Syberdoor
            Mar 29 at 8:50







          1




          1





          tbf this is only half the work. To create a collection in sccm you would need the sccm cmdlets (automatically installed on any pc with sccm console) and then create every name you got from your first query with New-CmCollection (docs.microsoft.com/en-us/powershell/module/configurationmanager/…) afterwards move it where you want with Move-CMObject (docs.microsoft.com/en-us/powershell/module/configurationmanager/…)

          – Syberdoor
          Mar 29 at 8:50





          tbf this is only half the work. To create a collection in sccm you would need the sccm cmdlets (automatically installed on any pc with sccm console) and then create every name you got from your first query with New-CmCollection (docs.microsoft.com/en-us/powershell/module/configurationmanager/…) afterwards move it where you want with Move-CMObject (docs.microsoft.com/en-us/powershell/module/configurationmanager/…)

          – Syberdoor
          Mar 29 at 8:50




















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55404282%2fimporting-active-directory-ous-to-sccm-with-thru-powershell-code%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

          Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?