File getting copied to SysWow64 instead of System32

Tathagata Bhattacharya 125 Reputation points
2023-10-10T05:14:54.05+00:00

We have created a policy to copy screensaver file in System32 folder.

But when we are applying the policy the file is getting copied to SysWow64.

The command we used is

xcopy /s /t /q /y . \abc.scr C:\windows\system32

Microsoft Security Intune Configuration
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 53,981 Reputation points Microsoft External Staff
    2023-10-10T05:45:15.47+00:00

    @Tathagata Bhattacharya, Thanks for posting in Q&A.

    For your issue, to know it better, please collect the following information :

    1. Could you confirm if we deploy via PowerShell script in Intune> If yes, please get screen shot of the configuration. If not ,please describe how we deploy.
    2. If you change to use the full path of the abc.scr in the command, will it work?

    Please collect the above information and if there's any update, feel free to let us know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Crystal-MSFT 53,981 Reputation points Microsoft External Staff
    2023-10-10T06:17:25.2166667+00:00

    @Tathagata Bhattacharya, Thanks for the reply. Based on my testing, I find the command doesn't work. After checking the parameter in the command, it is the "/t" which blocks the copy.

    User's image

    You can change to the following command to copy the file

    xcopy /y .\abc.scr C:\windows\system32

    User's image

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.