32bit cmd able to run 64bit commands?

Author Message
Neiro

  • Total Posts : 36
  • Scores: 0
  • Reward points : 11070
  • Joined: 1/20/2011
  • Location: Denmark
  • Status: offline
32bit cmd able to run 64bit commands? Tuesday, March 13, 2012 11:02 AM (permalink)
0
[Helpful answer received] / [List Solutions Only]
Hello. Is it possible to force the 32bit cmd to run a 64bit application without windows trying to 'fix' the pathing? 
I have the problem that a program running from a batch is run as 32bit because ccmexec is 32bit - that means a regedit /s something.reg will result in it getting saved under the wow6432 folder - which means it won't actually work. 
Tried running the 64bit cmd (from the 32bit cmd) that then runs the 64 bit regedit from in there, but that'll still be converted to antique mode. 
 
any smart solutions? 
 
#1
    CAP

    • Total Posts : 143
    • Scores: 0
    • Reward points : 34520
    • Joined: 12/9/2011
    • Status: offline
    Re:32bit cmd able to run 64bit commands? Tuesday, March 13, 2012 12:01 PM (permalink)
    0
    There some VB scripts that put the registry keys in teh proper place. Also if you have Wise or some other packaging software can also do this.
    Carl Polk
     
    #2
      skissinger

      • Total Posts : 4805
      • Scores: 458
      • Reward points : 104800
      • Joined: 9/13/2001
      • Location: Sherry Kissinger
      • Status: offline
      Re:32bit cmd able to run 64bit commands? Tuesday, March 13, 2012 1:08 PM (permalink)
      0
      Here's a workaround:  Make it a Task Sequence-based Advertisement.  Within the TS, if you add a task of "General, Command line", check the box about "Disable 64-bit file system redirection".
      In that task is where you'd put your regkey import.
       
      mofmaster@myitforum.com
      My Blog
      Microsoft MVP - ConfigMgr
       
      #3
        Josh Taylor

        • Total Posts : 7
        • Scores: 6
        • Reward points : 2840
        • Joined: 3/14/2012
        • Location: Oregon, USA
        • Status: offline
        Re:32bit cmd able to run 64bit commands? Wednesday, March 14, 2012 1:25 AM (permalink)
        5
        [This post was marked as helpful]
        It sure is.  The WOW64 file redirector has a special alias for that.  Accessing the %WinDir%\SysNative alias (or any access to the SysNative subfolder e.g. C:\Windows\SysNative if you don't want to you the environment var) will do exactly what you're looking for.  In my quick and dirty testing Win7 didn't want to run the 64 bit version of regedt32.exe directly (Yes even the 64 bit app is named regedt32.exe. It's an app compat thing).  I was however able to pipe it through the 64 bit cmd.exe and that made it happy.
         
        From your 32 bit environment:
        %WinDir%\sysnative\cmd.exe /c regedt32.exe /s <your file>.reg
         
        #4
          Neiro

          • Total Posts : 36
          • Scores: 0
          • Reward points : 11070
          • Joined: 1/20/2011
          • Location: Denmark
          • Status: offline
          Re:32bit cmd able to run 64bit commands? Wednesday, March 14, 2012 4:09 AM (permalink)
          0
          Thanks mate. I'll try that first before the task sequence option as it's by far the easiest to implement.
           
          and ye the naming in microsoft's world is wierd .... syswow64 is the 32bit system file folder, system32 is 64bit if the os is, and system is 16bit ... and powershell v1 is the folder that hosts powershell v2 and everything's just simple ... just like intel's cpu model system .... absolutely intuitive ... long's your autistic
          edit: and nvidia's naming strategy where a higher number might be worse
           
          #5
            Neiro

            • Total Posts : 36
            • Scores: 0
            • Reward points : 11070
            • Joined: 1/20/2011
            • Location: Denmark
            • Status: offline
            Re:32bit cmd able to run 64bit commands? Wednesday, March 14, 2012 4:39 AM (permalink)
            0
            That works. Thanks a bunch
             
            #6
              Online Bookmarks Sharing: Share/Bookmark

              Jump to:

              Current active users

              There are 0 members and 1 guests.

              Icon Legend and Permission

              • New Messages
              • No New Messages
              • Hot Topic w/ New Messages
              • Hot Topic w/o New Messages
              • Locked w/ New Messages
              • Locked w/o New Messages
              • Read Message
              • Post New Thread
              • Reply to message
              • Post New Poll
              • Submit Vote
              • Post reward post
              • Delete my own posts
              • Delete my own threads
              • Rate post

              2000-2013 ASPPlayground.NET Forum Version 3.9