none
I want to build, with a batch script run through a 32 software, a local policy to run a script at shutdown, on Windows Seve 7 64 bits RRS feed

  • General discussion

  • Hello,
    I want to build, with a batch script run through a 32 bits software, a local policy to run a script at shutdown, on Windows Seven 7 64 bits.
    How to do the job ?
    Regards,
    Wednesday, February 17, 2016 5:52 PM

All replies

  • You cannot run a shutdown script as 32 bits on a 64 bit machine.

    \_(ツ)_/


    • Edited by jrv Wednesday, February 17, 2016 6:16 PM
    Wednesday, February 17, 2016 6:15 PM
  • Hello,
    Then, I try to run my script starting this command :

    %systemroot%\system32\cmd /C script_name.cmd

    The changes are done inside the registry at 64 bits level and 32 bits level (wow6432node) too.
    But the script try to make the change at 64 bits level only.
    -
    Then, it means that my proposal to use "system32" is not the solution.

    I try also to copy the "script_name.cmd" Inside this folders :
    C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown

    C:\Windows\SysWOW64\GroupPolicy\Machine\Scripts\shutdown

    The files are copied...

    Then after, I run the shutdown, but without success...

    Something else doesn't authorize the execution of the script "script_name.cmd"...
    Maybe, it's because the the checkbox "Level of privilege" to "execute the program as Administrator" is not checked ?

    Is there an event Inside the System , Security or Application eventviewer to have a trace of the problem ?

    Regards,


    • Edited by Cerkyr Friday, February 19, 2016 10:20 AM
    Friday, February 19, 2016 10:18 AM
  • Read this first:

    On 64-bit Windows, 32-bit programs run in an emulation layer, and if you don’t like that, then don’t use the emulator

    This is about the 10th question you have posted about whatever it is you are trying to do.

    You need to explain the goal/purpose, not how you think it needs to be done. This is also known as the XY problem.


    -- Bill Stewart [Bill_Stewart]

    Friday, February 19, 2016 3:04 PM
    Moderator