Control-M and Powershell

All questions about Control-M jobs definitions
Post Reply
User avatar
kylo_h
Nouveau
Nouveau
Posts: 57
Joined: 13 May 2008 12:00

Control-M and Powershell

Post by kylo_h » 06 Jan 2011 5:07

Hi,

Is it possible to run a Powershell script from Control-M?
Are there any tricks or things to consider when doing so?

I'm using Control-M Server 6.3.01.300 and Control-M Agent 6.3.01.300

We seem to get this error when running a powershell script:
Powershell.exe e:\batch\Autorec-IE.accounts.ps1 E: E:\Batch
2
E:
8
E:\Batch
move to E:
move to E:\Batch

Path
----
E:\Batch

echo off
out-lineoutput : The OS handle's position is not what FileStream expected. Do n
ot use a handle simultaneously in one FileStream and in Win32 code or another F
ileStream. This may cause data loss.
+ CategoryInfo : NotSpecified: (:) [out-lineoutput], IOException
+ FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Comma
nds.OutLineOutputCommand

Post Reply