Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

How can I run a script within a pipeline

$
0
0

Hi,

I have the following line of code that is called from a batch file and scheduled to run at a certain time of the day.

Get-Content d:\servers.txt | .\Retreive-Network.ps1 | Out-DataTable

It does not run, as I get an error with the .\Retreive-Network.ps1 script (this runs fine on it's own)

 

Any ideas ?

 

Thanks

 

 

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles