Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Current Behavior:
- When using the PowerShell cmdlet Export-JS7InventoryItem to export a folder recursively, the subfolders are missing from the exported folder.
Steps to Reproduce:
- Create a nested folder structure in the Inventory as shown in the attached Folder_recursive.png.
- Connect to the JS7 REST Web Service available from JOC Cockpit by following the instructions in the PowerShell CLI 2.0 - Cmdlets - Connect-JS7 KB article.
- Export the inventory item from the root folder of the inventory by following the instructions in the PowerShell CLI 2.0 - Cmdlets - Export-JS7InventoryItem KB article.
Example:Export-JS7InventoryItem -Folder / -FilePath "C:\powershell_excel\exported-js7\export_271.zip" -Recursive -debug
- Check the exported folder. The subfolders are missing from the exported folder.
Desired Behavior:
- The PowerShell cmdlet Export-JS7InventoryItem should support the -Folder and -Recursive options.
- To export folders the new -JS7InventoryFolder cmdlet is added that allows to export folders recursively without selection of specific object types such as workflows, schedules etc.