locked
There is no script engine for fle extension ".xltm" RRS feed

  • Question

  • Hello,

    I'm trying to create a shortcut for xltm, I need to run it under admin account.

    Unfortunately I'm still receiving error, that there is no script engine.

    My script looks like this:

    C:\Windows\System32\runas.exe /savecred /user:domain\adminacc "WScript.exe C:\Users\Stacklu\Desktop\Scripts\Template.xltm"

    This one works for my vbs scripts perfectly.

    I tried also something what I'm using for active directory, but it says it can't find the file.

    C:\Windows\System32\runas.exe /savecred /user:domain\adminacc "C:\Users\Stacklu\Desktop\Scripts\elevate64.exe Template.xltm

    Do you have any idea how to run xltm as a different user ?

    Thank you.

    Friday, July 14, 2017 9:01 AM

Answers

  • XLTM files are only registered to Excel.  You cannot run them as a script.

    runas.exe /savecred /user:domain\adminacc "C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE C:\Users\Stacklu\Desktop\Scripts\Template.xltm"


    \_(ツ)_/


    • Edited by jrv Friday, July 14, 2017 10:13 AM
    • Marked as answer by LukasSt Friday, July 14, 2017 12:34 PM
    Friday, July 14, 2017 10:13 AM

All replies

  • XLTM files are only registered to Excel.  You cannot run them as a script.

    runas.exe /savecred /user:domain\adminacc "C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE C:\Users\Stacklu\Desktop\Scripts\Template.xltm"


    \_(ツ)_/


    • Edited by jrv Friday, July 14, 2017 10:13 AM
    • Marked as answer by LukasSt Friday, July 14, 2017 12:34 PM
    Friday, July 14, 2017 10:13 AM
  • Hello, great!

    thank you for your advise, seems that it finally works !

    Friday, July 14, 2017 12:35 PM