Unable to create a folder under System32

Unable to create a folder under System32, using below command for this…

dos mkdir “C:\Windows\System32\test”

Although the command has executed successfully, but the test folder is not getting created under System32, Please suggest.

I am able to create the Test Folder in some machines, but in some machines it’s not getting created…

After you run the command does the folder exist in C:\Windows\Syswow64?

Yeah @strawgate has it. The client is a 32 bit application. Welcome to the WOW64 redirection :slight_smile:

2 Likes

Yes @strawgate, it has created under SysWOW64…

So is there any way to create a folder under System32…through action script…

Yes!

Add:

action uses wow64 redirection false

To the top of the actionscript of your fixlet!

No luck Sir…

Even after adding the same at the top of the action script… still the file is getting created under SysWOW64 folder…

2 alternative approaches (the first one would be my personal preferred method as its native actionscript)

action uses wow64 redirection false
folder create "{pathname of system folder & "\test"}"

or

action uses wow64 redirection false
runhidden cmd.exe /c mkdir "{pathname of system folder & "\test"}"
2 Likes

Hello @SLB, the action script is working fine in workgroup systems (32 & 64 Bit OS).

But the same is not getting executed when I am trying to create the folders on those systems who are part of domain.

@Varun,

I would advise checking the client logs. AD membership should have no impact (they work on machines I have that are joined to a domain)