none
2nd Script never run when called via GPO RRS feed

  • Question

  • Hi All , 

    I'm running a powershell logon script via GPO  , this powershell script runs and I see event viewer logs I set to be added , but when this powershell script runs it is supposed to call another hta script and that never happens . 

    I'm calling the hta script using the function "Invoke-item"

    Surprisingly everything runs fine when I launch it manually but never run when I set as logon script.

    no administrative permissions are required and paths exist and working. , I think something else is blocking launching hta , probably another GPO setting that i need to configure

    I tried to set a delay for running scripts but that didn't help 

    thoughts ?



    • Edited by Immerbonus Saturday, October 19, 2019 11:16 PM
    Saturday, October 19, 2019 9:03 PM

All replies

  • Some development : 

    I tested the same script in a lab and it works fine by the GPO and it managed to call the HTA

    the question now is : what makes it different in another environment ?

    I even tried to block inheritance and tested but still same issue

    Sunday, October 20, 2019 12:55 AM
  • Hi Immerbonus,

    Thank you for posting in our forum.

    Before we go further, I would like to confirm the following questions:

    1.Where is the second script saved

    2. Does the client and user have permission to access the location of the second script?

    3. Is the relative path or absolute path used when call the second script?

    Best Regards,

    Vicky


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, October 21, 2019 9:54 AM
  • Hi,

     

    Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.

     

    Best Regards,

    Vicky


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Wednesday, October 23, 2019 1:28 AM
  • Thanks for you trying to help ..... I couldn't find what i causing the issue so I used run once reg key to run my script instead of using "Invoke-Item" 

    If i found later what is causing this issue I'll revisit this page and will post the solution .

    Thanks 

    Immer

    Thursday, October 24, 2019 2:33 AM
  • Hi,

     

    Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.

     

    Best Regards,

    Vicky


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, October 28, 2019 1:35 AM