Browse Forum Posts by Tags

Showing related tags and posts for the PowerShell General forum. See all tags in the site
  • Need to get the exit code when I run this script, I didn't get any exit code or error level

    I'm running the following script and need to get a error level or exit code to run another script and stop a window service if this script find the event 560, but even if the script find any event or not, I get the exit code or error level 0, I have try many different things like writing exit, but...
    Posted to Ask Don Jones (Forum) by Juan Pablo on 02-01-2012
    Filed under: #exitcode, #errorlevel
  • Import-PSSession, bug or bug-like feature?

    Good Morning, I've come across a strange error with the import-pssession cmdlet, and wanted to run it by the experts. I'm using it in a larger account creation script the import the exchange cmdlets from an exchange server to create a mailbox. In testing it all in the shell the below commands...
    Posted to PowerShell General (Forum) by JMMurrah on 05-17-2013
    Filed under: Parameter, #errorlevel, Powershell, power shell, powershell Script, parametervalidation, import-pssession
  • reboot a list of servers and output results to file.

    I am new to powershell and i am trying to write a simple script that will reboot a list of machines (XP, and 7) and input the results of the reboots to a text file. I created the below script that reboots the machine and creates the output file, but when I open the file I do not see any results in it...
    Posted to PowerShell General (Forum) by psnewbie2013 on 05-20-2013
    Filed under: Remote PowerShell, #errorlevel, #Logs, Powershell, general, Remote
Page 1 of 1 (3 items)
Copyright 2012 PowerShell.com. All rights reserved.