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 x64When 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
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.
- Proposed As Answer by Robinson ZhangMicrosoft Contingent Staff, Moderator Friday, September 10, 2010 7:05 AM
- Marked As Answer by Robinson ZhangMicrosoft Contingent Staff, Moderator Friday, September 10, 2010 7:05 AM
All Replies
-
Friday, September 03, 2010 9:55 AMUse a tasksequence, run command line and disable x64 redirection: http://technet.microsoft.com/en-us/library/bb632992.aspx
-
Thursday, September 09, 2010 2:16 PMTorsten I too am having this issue, Please elaborate more on your tip, it seems that powershell will not allow any exe's to be run from the system32 folder.
-
Friday, September 10, 2010 12:18 AM
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.
- Proposed As Answer by Robinson ZhangMicrosoft Contingent Staff, Moderator Friday, September 10, 2010 7:05 AM
- Marked As Answer by Robinson ZhangMicrosoft Contingent Staff, Moderator Friday, September 10, 2010 7:05 AM
-
Saturday, December 18, 2010 12:14 AMThank you so much for this posting! You saved me a huge headache. This was driving me nutz. :-)