Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PSMessageDetails :
- Exception : System.Management.Automation.ParseException: At
- C:\Restart Service with E-mail.ps1:28 char:3
- + }
- + ~
- The Try statement is missing its Catch or Finally block.
- At C:\Restart Service with E-mail.ps1:41 char:3
- + }
- + ~
- The Try statement is missing its Catch or Finally block.
- at System.Management.Automation.ScriptBlock.Create(Parser parser, String fileName, String
- fileContents)
- at System.Management.Automation.CommandDiscovery.CreateCommandProcessorForScript(ExternalScr
- iptInfo scriptInfo, ExecutionContext context, Boolean useNewScope, SessionStateInternal
- sessionState)
- at System.Management.Automation.CommandDiscovery.CreateScriptProcessorForSingleShell(Externa
- lScriptInfo scriptInfo, ExecutionContext context, Boolean useLocalScope, SessionStateInternal
- sessionState)
- at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(CommandInfo
- commandInfo, CommandOrigin commandOrigin, Nullable`1 useLocalScope, SessionStateInternal
- sessionState)
- at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName,
- CommandOrigin commandOrigin, Nullable`1 useLocalScope)
- at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean
- dotSource)
- at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe,
- CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst,
- CommandRedirection[] redirections, ExecutionContext context)
- at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean
- ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts,
- CommandRedirection[][] commandRedirections, FunctionContext funcContext)
- at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame
- frame)
- at
- System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
- frame)
- TargetObject :
- CategoryInfo : ParserError: (:) [], ParseException
- FullyQualifiedErrorId : MissingCatchOrFinally
- ErrorDetails :
- InvocationInfo : System.Management.Automation.InvocationInfo
- ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
- PipelineIterationInfo : {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement