Creating Software Folders

Creates a Software Folder object in the current or in the specified context.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


Create a Software Folder named "Oracle" in the context "Global Software Library\Application Library":


New-EmdbSoftwareFolder "emdb:\rootDSE\Global Software Library\Application Library\Oracle"


Create a Software Folder named "Sage" in the current context:


Cd "emdb:\rootDSE\Global Software Library\Application Library"

New-EmdbSoftwareFolder "Sage"


Create a Software Folder named "Office 2007" in the context "Global Software Library\Application Library\Microsoft" using the cmdlet New-Item:


New-Item -Path "emdb:\rootDSE\Global Software Library\Application Library\Microsoft" -Name "Office 2007" -ItemType "SwFolder"


Create a Software Folder "Office 2003" in the current context using the cmdlet New-Item:


Cd "emdb:\rootDSE\Global Software Library\Application Library\Microsoft"

New-Item "Office 2003" -ItemType "SwFolder"


Hint: You can create Software Folders with the alias Mkdir, too, if the current context is the Global Software Library or another Software Folder.


Hint: In the context of the emdb drive, the cmdlet New-Item provides the additional parameter -DelayCreation. Using this parameter creates the object on the client side only and doesn't propagate the changes to the DSMDB instantly. Now you can manipulate properties of this object and finally the changes can be propagated to the DSMDB by calling the method Create().


Example:


Cd "emdb:\rootDSE\Global Software Library\Application Library"

$MyNewSwFolder = New-Item "Mozilla Foundation" -ItemType "SwFolder" -DelayCreation

$MyNewSwFolder.Description = "Contains software from the Mozilla foundation"

$MyNewSwFolder.Create()