SCCM module cmdlet creation for folders
The ConfigurationManager module does not have any *-folder cmdlets.
I would like to see some created that allow for more folder manipulation within system centre configuration manager, for example Get-CMFolder -Name "Test" would provide me with the Folder ID, Name, Heirarchical Location in ConfigMgr and more!
As well as New-CMFolder, Move-CMFolder, Remove-CMFolder, etc!
I would also like to see the ability to add -Folder to other cmdlets, such as New-CMDeviceCollection -Name "Test" -Folder "TestFolder" so the collection called Test is made in the folder called TestFolder instead of the Device Collections root.
I would like to be able to use Get-CMApplication, Get-CMObject, Get-CMPackage, Get-CMCollection, etc. and be able to see the parent folder name, and the full location of the Object back to the top level such as Collections\ParentFolder\ChildFolder\CollectionName.
This is a big oversight from what I can see.
It makes it very hard to work with all objects in the current folder.
I would like to be able to perform a task such as getting all the applications in a particular folder within applications, or all collections in from a folder in the collections folder structure, and then being able to reiterate through them.
Mike Eckerle commented
for others who were unsure how to accomplish this: https://blogs.msdn.microsoft.com/helaw/2013/10/26/whats-new-in-r2-configuration-manager-folders-and-organization-with-powershell/
Raphael Jülich commented
The ability to tell the New-cmcollection in which folder the Collection should be created would help immensely! I have a little PS-GUI that creates Application, Collection, Deployment and so on automatically but I wasnt able to get the script to move things into the correct Folders! I will try what I can do with move-item but it would be better to put it into the Sccm Module...
There is limited "folder" support today through the drive provider. Get-Item/Move-Item/Rename-Item should all largely work.
We do recognize that the drive provider today has numerous caveats and limitations and this is something we plan to improve in a future release.