Answered Powershell / Script Access to items under c:\windows\system32

  • Friday, September 03, 2010 1:48 AM
     
     

    Powershell / Script  Access to items under c:\windows\system32:

    Client/advertisement is running as administrator
    SCCM 2007
    Clients OS: Windows 7 x64

    When trying to run any powershell scripts or .cmd files that perform operations under the windows system 32
    folder i get the "path could not be found" / does not exist errors almost like there is a security feature hiding it.
    Powershell is running in unrestricted mode, and cmd files well they or both able to do operations in other directories just not the directories under that folder. I've looked high and low for a group policy setting
    or some other switch but i got nothing. 

     

    Any ideas / answer / direction ?

    -Matt

Answers

  • Friday, September 10, 2010 12:18 AM
     
     Answered

     

    The answer to the mystery is when the SMS agent runs on a 64bit host its runs in the wow emulator and apperently

    the emulator hides the c:\windows\system32 directory. To access this directory in this mode use this virtual directory that only exist during the wow emulation mode:

     

    c:\windows\sysnative

     

    This ____ should be posted all over the sms docs and in the package manager help, but no.

All Replies