Answered by:
Exporting all SMA Runbooks

Question
-
I'm trying to export all my SMA runbooks and copy them to another server for a different team to use. I found on the net that you can do this (https://systemcenterpoint.wordpress.com/2015/03/06/copy-sma-runbooks-from-one-server-to-another/). The problem I am having is that when I run
import-module Microsoft.SystemCenter.ServiceManagementAutomation
Get-SmaRunbook -WebServiceEndpoint "https://smaws.companyname.com"
I get this error
Get-SmaRunbook : Could not find any runbooks.
At line:1 char:1
Get-SmaRunbook -WebServiceEndpoint "https://smaws.companyname.com"
I can run this an it works
Am I missing something on the get-smarunbook command that name is required? It doesnt say it is off the this post: https://technet.microsoft.com/en-us/library/Dn502594%28v=SC.20%29.aspx?f=255&MSPPError=-2147217396import-module Microsoft.SystemCenter.ServiceManagementAutomation
Get-SmaRunbook -name "myrunbook" -WebServiceEndpoint "https://smaws.mycompany.com"
Monday, August 17, 2015 12:10 PM
Answers
-
Hi
I think this post should help http://blogs.technet.com/b/privatecloud/archive/2013/10/23/automation-service-management-automation-sma-runbook-toolkit-spotlight-smart-for-runbook-import-and-export.aspx and here for download http://blogs.technet.com/b/privatecloud/archive/2014/09/23/updated-sma-runbook-toolkit-smart-download-with-new-visualization-and-dependency-mapping-tool.aspx
Cheers,
Stefan
Blog: http://stefanroth.net If my post helped you, please take a moment to vote as helpful and\or mark as an answer
Tuesday, September 1, 2015 7:21 PM
All replies
-
Hi
I think this post should help http://blogs.technet.com/b/privatecloud/archive/2013/10/23/automation-service-management-automation-sma-runbook-toolkit-spotlight-smart-for-runbook-import-and-export.aspx and here for download http://blogs.technet.com/b/privatecloud/archive/2014/09/23/updated-sma-runbook-toolkit-smart-download-with-new-visualization-and-dependency-mapping-tool.aspx
Cheers,
Stefan
Blog: http://stefanroth.net If my post helped you, please take a moment to vote as helpful and\or mark as an answer
Tuesday, September 1, 2015 7:21 PM -
It looks like UR3 (PowerShell Module Update) does brake the get-smarunbook CMDLET somehow. After uninstalling UR3 Module Update, runbooks get returned again without using a specific name or ID. I'll open a bug for this.
Cheers,
Michael
Blog: http://www.miru.ch If my post helped you, please take a moment to vote as helpful and\or mark as an answer
Wednesday, September 23, 2015 9:03 AM -
Glad to see I'm not crazy on that. Thank you Michael!
Matt
Wednesday, September 23, 2015 10:53 AM -
Hi Michael
Did you receive an answer from your bug report?
Thomas
Thursday, November 19, 2015 8:17 AM -
https://social.technet.microsoft.com/Forums/en-US/822616ff-5705-40e4-8bb5-778974a19214/getsmarunbook-could-not-find-any-runbooks?forum=scogeneral
I found a bug in the Get-SmaRunbook cmdlet, check if it is the same issue.
-Raymond
Monday, July 9, 2018 7:33 AM