Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Different Results Remote vs Local Execution

$
0
0

Hello community,

Working with powershell v2, I get hung up on problem.

When I run the command "get-childitem -Recurse " on a remote machine using invoke-command, most of the Length values of the output evaluate to 0. But if I run the command on the local machine I get the expected output with the values not being zero.

Any help will be appreciated!

Martin

Edit: It is v2 on most of the systems, including the sever hosting the scripts.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>