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;
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
add a comment
|
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
add a comment
|
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
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
powershell active-directory sccm active-directory-group
asked Mar 28 at 18:10
Ahmed ÇetinerAhmed Çetiner
11 bronze badge
11 bronze badge
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
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.
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
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment
|
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.
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
add a comment
|
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.
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.
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
add a comment
|
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
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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