jskfan
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you..
I will try it later
I will try it later
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 :) ).