Last Executed: This script has not yet been executed.

Recently had a problem with a Powershell script that was configured via Group to deploy at start up.

The problem I had was that no matter what the script would never run. Doing a GPResult /z it would show me the script is being applied but with the following message:

Last Executed: This script has not yet been executed.

After much searching and testing I found that the script would run if I removed the spaces in the script name.

I know its a simple mistake but the server did not tell me that it could not find the file.

 

 

One thought on “Last Executed: This script has not yet been executed.

  1. HI. I had this error but my scripts had no spaces in their names.
    I saw that whenever I either put the script name or the location of the script.
    What worked for me, was in the GPO edit form, instead of:

    Name: name_of_your_script.bat
    Parameter: param1 param2

    put

    Name: %ComSpec%
    Parameter: /c name_of_your_script.bat param1 param2

Leave a Reply

Your email address will not be published. Required fields are marked *