Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Admin CMD in W10
#1
When I run cmd from a macro it wont run dsmod or dsquery, tells me unrecognized command. How can I make this work?
I've gone as far as creating a bat to run a shortcut to run cmd as admin and if I execute the bat by clicking on it, it works fine, when I type in dsmod it gives me the help menu, but if I drop the bat in qm and run it then type in dsmod it tells me it's an unrecognized command.
#2
Macro Macro2890
Code:
Copy      Help
run "cmd.exe" "" "" "" 0x10000 ;;run 32-bit cmd as admin
run "cmd.exe" "" "" "" 0x14000 ;;run 64-bit cmd as admin
run "cmd.exe" F"/c ''{bat file path}''" "" "" "" 0x14000 ;;run 64-bit cmd as admin and execute a bat file or a program
#3
Thanks! Works just fine now.


Forum Jump:


Users browsing this thread: 1 Guest(s)