Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Map Active Directory OUs to SCCM collection Folders.

Map Active Directory OUs to SCCM collection Folders.

in SCCM under Device Collection, I would like to create Folders with the same name  and structure as Active Directory OUs.
I wonder if there is an automated way to do that, instead of doing it manually by creating each folder ?

any help will be very much appreciated .

Thank you
ASKER CERTIFIED SOLUTION
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Use PowerShell. Connect to the site (right click the top left dropdown). That opens a PowerShell window and changes path to the Site name.

Then it's easy.
Set-Location Applications
New-Item -Path "Desktops"
or
New-Item -Path ($SiteCode + ":" + "\Package\" + "yourappname"

Just check the start path first. The exact names are not quite as they are in the console.

For OUs just list the OUs and then loop through it. I'm too busy to write a script but other Experts here can, probably better than mine

(and sounds like the Dudes have already done it :) ).

Avatar of jskfan

ASKER

Thank you..

I will try it later