-
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...
-
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
-
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...