Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • PowerShell remoting and exit codes

    I have to call a PowerShell script from outside PowerShell (using a batch file). How do I read the exit code returned by the script after accessing a remote system? C:\gdp>powershell Get-Content ./test15.ps1 param($name) Get-Process -Name $name exit 82 ----- Example 1 (local): C:\gdp>powershell...
    Posted to PowerShell General (Forum) by rockstar on 09-16-2010
    Filed under: Scripting, Remote host, remote, Command Line Script Execution, powershell 2.0
Page 1 of 1 (1 items)
Copyright 2012 PowerShell.com. All rights reserved.