Hi
I love the concept of workflows
and especially the power of processing
but when I try to run some exchange powershell commands inside the workflow(I tried loading the ex ps-addin or remote connection)I get errors like this:
Cannot call the ‘New-PSSession’ command. Other commands from this module have been packaged as workflow activities, but this command was
specifically excluded. This is likely because the command requires an interactive Windows PowerShell session, or has behavior not suited
for workflows. To run this command anyway, place it within an inline-script (InlineScript { New-PSSession }) where it will be invoked in
isolation.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : CommandActivityExcluded
Microsoft.PowerShell.Utility\Write-Error : The term ‘Get-Queue’ 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 queues:15 char:15
+ CategoryInfo : NotSpecified: (:) [Write-Error], RemoteException
+ FullyQualifiedErrorId : System.Management.Automation.RemoteException,Microsoft.PowerShell.Commands.WriteErrorCommand
+ PSComputerName : [localhost]
Microsoft.PowerShell.Utility\Write-Error : The term ‘Get-Queue’ 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.
so I know there are a lot of limitations on workflows but is there away to overcome this and use EMS?
it really could be much faster for me instead of foreach loops
Thanks in advance