Advertisement
cosine83

Error

Sep 19th, 2014
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. PSMessageDetails :
  2. Exception : System.Management.Automation.ParseException: At
  3. C:\Restart Service with E-mail.ps1:28 char:3
  4. + }
  5. + ~
  6. The Try statement is missing its Catch or Finally block.
  7.  
  8. At C:\Restart Service with E-mail.ps1:41 char:3
  9. + }
  10. + ~
  11. The Try statement is missing its Catch or Finally block.
  12.  
  13.  
  14. at System.Management.Automation.ScriptBlock.Create(Parser parser, String fileName, String
  15. fileContents)
  16. at System.Management.Automation.CommandDiscovery.CreateCommandProcessorForScript(ExternalScr
  17. iptInfo scriptInfo, ExecutionContext context, Boolean useNewScope, SessionStateInternal
  18. sessionState)
  19. at System.Management.Automation.CommandDiscovery.CreateScriptProcessorForSingleShell(Externa
  20. lScriptInfo scriptInfo, ExecutionContext context, Boolean useLocalScope, SessionStateInternal
  21. sessionState)
  22. at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(CommandInfo
  23. commandInfo, CommandOrigin commandOrigin, Nullable`1 useLocalScope, SessionStateInternal
  24. sessionState)
  25. at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName,
  26. CommandOrigin commandOrigin, Nullable`1 useLocalScope)
  27. at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean
  28. dotSource)
  29. at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe,
  30. CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst,
  31. CommandRedirection[] redirections, ExecutionContext context)
  32. at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean
  33. ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts,
  34. CommandRedirection[][] commandRedirections, FunctionContext funcContext)
  35. at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame
  36. frame)
  37. at
  38. System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
  39. frame)
  40. TargetObject :
  41. CategoryInfo : ParserError: (:) [], ParseException
  42. FullyQualifiedErrorId : MissingCatchOrFinally
  43. ErrorDetails :
  44. InvocationInfo : System.Management.Automation.InvocationInfo
  45. ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
  46. PipelineIterationInfo : {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement