none
Error while scripting in powershell RRS feed

  • Question

  • Hi Guyz,

    I am getting these issues while having run that scripts is mention over there.

    The Try statement is missing its Catch or Finally block.
    At C:\Users\Administrator\Desktop\create_ad_users.ps1:31 char:7
    +       {
    +       ~
    Missing closing '}' in statement block or type definition.
    At C:\Users\Administrator\Desktop\create_ad_users.ps1:24 char:5
    +     {
    +     ~
    Missing closing '}' in statement block or type definition.
    At C:\Users\Administrator\Desktop\create_ad_users.ps1:22 char:40
    +   Import-CSV $newpath | ForEach-Object {
    +                                        ~
    Missing closing '}' in statement block or type definition.
    At C:\Users\Administrator\Desktop\create_ad_users.ps1:19 char:1
    + {
    + ~
    Missing closing '}' in statement block or type definition.
        + CategoryInfo          : ParserError: (:) [], ParseException
        + FullyQualifiedErrorId : MissingCatchOrFinally

    these issue am getting.Help me out of from this.

    Thanxx

    • Moved by Bill_Stewart Tuesday, November 7, 2017 10:43 PM Unanswerable drive-by question
    Tuesday, October 3, 2017 9:07 AM

All replies

  • There is no way to answer your question.  You have not provided correct information.

    \_(ツ)_/

    Tuesday, October 3, 2017 9:50 AM