Skip to content

Issue loading ScsmPx with Service Management Automation Runbook (SMA) #2

@flopzoid

Description

@flopzoid

Very simple runbook that attempts to import the ScsmPx module like this:
Import-Module -Name ScsmPx -Force -ErrorAction SilentlyContinue

Results in the error below. Have you seen anything like this? Running the same command in powershell workflow works just fine.

3/11/2015 9:52:37 AM, Error: Update-FormatData : Updating format data is not allowed in this runspace. The 'DisableFormatUpdates' property is set to
True when creating the runspace.
At AAASCSMTest:1 char:1

  • CategoryInfo : InvalidOperation: (:) [Update-FormatData], PSInvalidOperationException
  • FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.UpdateFormatDataCommand

3/11/2015 9:52:38 AM, Error: Write-Host : A command that prompts the user failed because the host program or the command type does not support user
interaction. Try a host program that supports user interaction, such as the Windows PowerShell Console or Windows
PowerShell ISE, and remove prompt-related commands from command types that do not support user interaction, such as
Windows PowerShell workflows.
At AAASCSMTest:1 char:1

  • CategoryInfo : NotImplemented: (:) [Write-Host], HostException
  • FullyQualifiedErrorId : HostFunctionNotImplemented,Microsoft.PowerShell.Commands.WriteHostCommand

3/11/2015 9:52:38 AM, Error: Get-ScsmPxObject : The term 'Get-ScsmPxObject' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At AAASCSMTest:1 char:1

  • CategoryInfo : ObjectNotFound: (Get-ScsmPxObject:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions