这是用户在 2024-9-3 14:45 为 https://www.reddit.com/r/XboxGamePass/comments/1f40kll/fix_error_0x1_gamepass_for_call_of_duty_moder... 保存的双语快照页面,由 沉浸式翻译 提供双语支持。了解如何保存?
Skip to main content Fix error (0x1) GamePass for Call Of Duty Modern Warfare 3 : r/XboxGamePass
Go to XboxGamePass

Fix error (0x1) GamePass for Call Of Duty Modern Warfare 3

Games - General

UPDATED: Fix for Call of Duty: Call of Duty Modern Warfare 3 Crashing (Error 0x1) (Windows 11/10)

So I got the battle pass today to try BO6, and to my surprise, the game would start and crash 3 seconds in. I went online to check if anyone else was having this problem, and surprise surprise, a ton of people are experiencing this issue. It's been persistent for more than a month with no official fix from any of the Activision devs.

Click this for the video link if you are having trouble following up

How to Run the Call of Duty Randgrid Service Setup Script

  1. Copy the script into a new text file.

  2. Save the file with a .bat extension (e.g., "cod_service_setup.bat").

  3. Right-click the .bat file and choose "Run as administrator".

  4. When prompted, enter your Call of Duty Xbox app installation folder.

  5. The script will: Remove the existing service if found Install the Randgrid service Update Randgrid permissions

  6. If you see any error messages, make sure you're running as admin and the folder path is correct.

How to Manually Set Up the Call of Duty Randgrid Service

NOTE: ONLY DO THESE STEPS IF THE WINDOWS 11/10 SCRIPT PROVIDED BELOW THE MANUAL STEPS DO NOT WORKS. DO NOT RUN BOTH

1.Open Command Prompt as Administrator.
2.Check if the service exists:

sc query atvi-randgrid_msstore

3.If it exists, remove it:

sc delete atvi-randgrid_msstore

4.Install the Randgrid service:

sc create atvi-randgrid_msstore type= kernel binPath= "C:\XboxGames\Call of Duty\Content\randgrid.sys"

(Replace the path with your actual installation folder)

5.Set the service permissions:

Windows 11

sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWRPWPLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

Windows 10:

sc sdset atvi-randgrid_msstore D:(A
;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

Note: Make sure you have the correct path to randgrid.sys before running these commands. Do not run both the manual steps and the automatic script only run one or the other.

WINDOWS 11 SCRIPT IF YOU DO NOT WANT TO DO THE MANUAL STEPS

echo Please enter the Xbox app installation folder for Call of Duty.
echo For example: C:\XboxGames\Call of Duty
set /p INSTALLDIR="Enter the folder location: "

sc query atvi-randgrid_msstore >nul 2>&1
if %errorlevel% == 0 (
    echo Service atvi-randgrid_msstore was found, removing...
    sc delete atvi-randgrid_msstore
    if %errorlevel% neq 0 (
        echo Failed to remove the service. Please run this script as an administrator.
        exit /b
    )
) else (
    echo Service atvi-randgrid_msstore is not installed.
)

echo Randgrid installing
sc create atvi-randgrid_msstore type= kernel binPath= "%INSTALLDIR%\randgrid.sys"
if %errorlevel% neq 0 (
    echo Failed to create the service. Please check the folder path and run this script as an administrator.
    exit /b
)

echo Updating Randgrid permissions
sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWRPWPLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

WINDOWS 10 SCRIPT IF YOU DO NOT WANT TO DO THE MANUAL STEPS

@echo off

echo Please enter the Xbox app installation folder for Call of Duty.
echo For example: C:\XboxGames\Call of Duty
set /p INSTALLDIR="Enter the folder location: "

sc query atvi-randgrid_msstore >nul 2>&1
if %errorlevel% equ 0 (
    echo Service atvi-randgrid_msstore was found, 
removing...
    sc delete atvi-randgrid_msstore
    if %errorlevel% neq 0 (
        echo Failed to 
remove the service. Please run this script as an administrator.
        pause
        exit /b
    )
) else (
    echo Service atvi-randgrid_msstore is not installed.
)

echo Randgrid installing
sc create atvi-randgrid_msstore type= kernel binPath= "%INSTALLDIR%\randgrid.sys"
if %errorlevel% neq 0 (
    echo Failed to create the service. Please check the folder path and run this script as an administrator.
    pause
    exit /b
)

echo Updating Randgrid permissions
sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

echo Service installation and configuration completed successfully.
pause


Sort by:
Best
Open comment sort options
Edited

Having the same error. The script is complaining when executing it, so I am trying to redo it step by step. Currently failing on the service creation. the line is throwing:

Set-Content : A positional parameter cannot be found that accepts argument 'type='.

EDIT: Alright. This absolutely works. My mistake was running it in powershell instead of the regular command prompt (admin). Thank you!!!

Happy i could help Comment Image

More replies

This post should get more upvotes Dude this worked for me like magic ty!

However, I don't know why the old notepad didn't recognize it's bat file I had to download the new version

agreed lol hasnt worked for me yet but he sure put way more effort than any of the devs this issue isnt even new and a lot of people have complained about it yet no devs have actually addressed it or provided a solution.

Xbox support told me to reinstall the game lol I contacted them again, gave them access to my pc they spent ~ an hour trying to fix it told me to "rest assured" it will work after restarting my pc. It didn't lmoa

Lol that's funny but i don't blame them this is a Activision problem, what's more baffling is that this has been going on for more than a month with no official work around, i just wanted to try the new BO6 beta and i was greeted by this little cretin

More replies
More replies
More replies

Thank you man you’re the GOAT, after one month of garbage solution this on works really appreciate it 

Happy it worked man Comment Image

More replies

It worked !

Thanks alot

Glad i could help man Comment Image

More replies

Just to address this since I guess has not been explained, go for the \content folder inside the call of duty folder when choosing the path , otherwise you’ll get a 0xffff error

( something like “c:\xbox games\call of duty\content” )

love you

omfg. i tried for weeks to get it to run.
u are a mf legend

Glad i could help Comment Image

More replies

To those coming here for the fix, add \Content to the end of the path.

OP, THANK YOU! Finally was able to get this fixed on my end. This has been a consistent issue since MWIII came out on GP. I got some good use out of my Series X while I couldn't play this on PC, but now it's go-time.

Happy i could help

More replies

This fixed it for me thank you! Didn’t work at first but I noticed the file path is slightly different on mine and once I changed that it worked a treat. Activitison owe you

Glad i could help

More replies

YOU ARE A LEGEND! I've been trying stuff all weekend and had a feeling that something else was causing the game to crash. Glad I can get at least 1 night on the beta :)

If anyone gets error 0x2 after running this fix, just run the Call of Duty app as administrator.

Glad i could help

More replies

WORKS amazing great job OP

Happy i could help

More replies

My error code is 0x9, will it work?

Like i mentioned i don't know you could try it, this fixes the 0x1 error specific to andgrid_msstore

You found a solution because i too ave error 0x9

Nothing yet unfortunately, Activision support suggested that it’s a problem with my device, however I can play the game through battle.net. I have tried all troubleshooting online, nothing worked. I also don’t understand my error log, it says “failed to match driver digest index (0)”

More replies
More replies

Hey man i really appreciate dis, im having the same Failed to open service atvi-randgrid_msstore (1060). error. Im going to try this now and see if it works

tried it got this error [23360] 08/29/24 17:50:16: Failed to open %C:\XboxGames\Call of Duty%\randgrid.sys (123).

Looks like you have the wrong path. find randgrid.sys in the cod folder. For me it was ....\xboxLibrary\Call of Duty\Content\randgrid.sys

And the percentage signs indicate that you tried to edit the script. don't. It's asking you for the user input. Just find the randgrid.sys file, copy the path to it and rightclick it into the command prompt when it's asking for it.

yeah this dont work gang 🙏

im getting a refund from microsoft for this sshit

It should work as of now just had a buddy of mine with the same error and it fixed it for him too maybe your doing something wrong, try this step by step how i am writing get this script given below and create a new text file on your desktop name it whatever you want but make sure instead of .txt in the end of the file you rename it to .bat [Run the .bat file as administrator] its going to ask for the directory of the game where randgrid file is located which should be the main call of duty folder. For me for example is E:\Xbox\Call of Duty\Content paste that into the script whenever it ask for it and that's it. Let me know if you still having issues

echo Please enter the Xbox app installation folder for Call of Duty.
echo For example: C:\XboxGames\Call of Duty
set /p INSTALLDIR="Enter the folder location: "

sc query atvi-randgrid_msstore >nul 2>&1
if %errorlevel% == 0 (
    echo Service atvi-randgrid_msstore was found, removing...
    sc delete atvi-randgrid_msstore
    if %errorlevel% neq 0 (
        echo Failed to remove the service. Please run this script as an administrator.
        exit /b
    )
) else (
    echo Service atvi-randgrid_msstore is not installed.
)

echo Randgrid installing
sc create atvi-randgrid_msstore type= kernel binPath= "%INSTALLDIR%\randgrid.sys"
if %errorlevel% neq 0 (
    echo Failed to create the service. Please check the folder path and run this script as an administrator.
    exit /b
)

echo Updating Randgrid permissions
sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWRPWPLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

HOLY FUCK U THE GOAT MAN IT WORKS

No problem man i am glad that you could make it work Comment Image

More replies
More replies
More replies
More replies
More replies

How did you figure this out? And is there a way to undo the .bat?

Its quite simple actually i figured this out by researching what randgrid service is and apparently is a service kernel-level driver used by the game's anti-cheat system, kernel drivers operate at the highest privilege level in windows and are typically used for low-level system operations, anti-cheat systems often use kernel-level drivers to detect and prevent cheating at a very low level in the system and the problem with this types of drivers usually arises when this driver isn't properly installed or registered with the windows system, by checking the logs you can pinpoint like i mentioned above that somewhere along the lines of creating this service it does not properly installs and gives this error, so the script is doing what the game's installer should have done properly installing the kernel driver as a Windows service with the correct path and permissions. This fixes the "randgrid error" by ensuring that the anti-cheat system's kernel component is correctly set up and can be loaded by the game, as you can see on the script above i used SDDL to set the permissions these permissions are very broad and give extensive control to system accounts and administrators, which is typical for a kernel-level driver that needs to interact closely with the operating system. By doing all of these i managed to make it work, now to the part about undoing what the bat file does no there is no way to undo what the bat file because the bat file is simply pointing to the file atvi-randgrid_msstore is not creating a new file or anything like that it is simply giving the proper permissions that the installer should have done, removing the service would cause your game to not work because like i explained above this is needed for the anticheat and the specific permissions set by the sc sdset command are not easily reversible because the script above doesn't store the original permissions before changing them

More replies

je ne comprend pas comment faire

Salut t'as trouvé une solution

More replies

Having the same error but when I try to run the script (administrator and CMD not Powershell) I'm getting an error saying "This app can't run on your PC" "To find a version for your PC, check with the software publisher".
I am running Windows 10 Pro.
Thanks anyways because literally no one has actually addressed the situation as u have!

Hey bud sorry for the late replay, try this new script. Should be compatible with windows 10

@echo off

echo Please enter the Xbox app installation folder for Call of Duty.
echo For example: C:\XboxGames\Call of Duty
set /p INSTALLDIR="Enter the folder location: "

sc query atvi-randgrid_msstore >nul 2>&1
if %errorlevel% equ 0 (
    echo Service atvi-randgrid_msstore was found, 
removing...
    sc delete atvi-randgrid_msstore
    if %errorlevel% neq 0 (
        echo Failed to 
remove the service. Please run this script as an administrator.
        pause
        exit /b
    )
) else (
    echo Service atvi-randgrid_msstore is not installed.
)

echo Randgrid installing
sc create atvi-randgrid_msstore type= kernel binPath= "%INSTALLDIR%\randgrid.sys"
if %errorlevel% neq 0 (
    echo Failed to create the service. Please check the folder path and run this script as an administrator.
    pause
    exit /b
)

echo Updating Randgrid permissions
sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

echo Service installation and configuration completed successfully.
pause

all i did was just updated the sd sdset to use a slightly different security descriptor string that is compatible with Windows 10 Pro, it should work now but if it does not let me know cause i could not test it out since i am running on windows 11

not a slow reply at all so dw about it! still getting the same error unfortunately but the cmd tab behind shows different messages now

says run as admin even tho I am running it as admin

Hey bud could you maybe try the manual steps, i updated the post with step by step instruction maybe your antivirus is somehow blocking the change or it could be that the windows account you are using does not have administrator privileges, do something for me turn off you antivirus and open a new command prompt with administrator privileges and copy paste this command

net user %username%

Send a screenshot of what it says afterwards like this

More replies
More replies
More replies
More replies

I copied the code into a text doc, changed the name to .bat, ran with admin in command prompt and entered my file location in the same format asked. Now when I open COD I get error 0xfffffffe.

I got the same error after repairing the game using app settings and before trying this solution. I restarted my pc and got 0x1 again then I implemented this solution. So, try to restart your pc

Okay lets troubleshoot the problem, what version of windows are you running, and were you sure you getting this error Failed to open service atvi-randgrid_msstore (1060) on bootstrapper.log

send me what it says on your bootstrapper.log file

I'm on Windows 11, and when I ran your code I entered my file destination and clicked enter and the prompt just closed. No error message or anything it just ended itself. Then I tried launching COD from the Xbox app again and it gave me that error code I mentioned.

The prompt is supposed to do that. That means it actually did what it was supposed to do in this case properly installing the kernel driver as a Windows service with the correct path and permissions, try to do what the other user above said go to app settings and repair the game restart your pc and see if it launches if not and you get back the error 0x1 run the thing again but this time try to do it through the steps manually

More replies
More replies
More replies

i get error 0xfffffffe after i ran the randgrid

I got the same issue. just ran these steps and got the same error. Anyone else having this issue?

More replies

You guys are doing the steps like in shown in here correct Watch Desktop 2024-08-30 22-02-11 | Streamable because i already have had two people message me in the inbox about this issue and the reason they were getting this error was because they were editing the script and placing their folder link inside the script in here

set /p INSTALLDIR="Enter the folder location: "

Do not edit the script just like i have said copy/paste it will automatically ask you for the folder path when it starts. If you guys have already done these steps correctly as show in the video above, just go to settings on windows find call of duty click repair restart your pc should give you back error 0x1 and do what i have shown on the video

Does this look correct i was getting (0x1) and then the ffffffe code now im getting 0x2

Edited

Well the service is there but you are getting an error upon exiting which is saying to you the service has never started try running this command sc start atvi-randgrid_msstore see if that changes anything also do this other command to check if the binary exists and is accessible sc qc atvi-randgrid_msstore

sorry ive never done this befor so i am oblivious Thank you for your replies

says failed

You good can you run the second command too sc qc atvi-randgrid_msstore and give me a screenshot of what it says

Okay so i can see the issue the binary path is not set up correctly you should have something like this

I need you to run this command make sure you go to where the content folder is located in your windows for call of duty it should be something like how i have it E:\Xbox\Call of Duty\Content. Remember to replace the E:\Xbox\Call of Duty\Content\ with where your files are located

sc config atvi-randgrid_msstore binpath= "E:\Xbox\Call of Duty\Content\randgrid.sys"

Run the command above. Than run this command again sc start atvi-randgrid_msstore
This will try to start the service again.

You fixed it. Thank you. W mans

Glad i could help Comment Image

5 more replies More replies
More replies
More replies
More replies
More replies
More replies
More replies
More replies
More replies

Was going crazy with this. When choosing the path make Sure you to choose the \content folder inside the “Call of duty” folder , otherwise you’ll get an error. ( for example “c:\xbox games\call of duty\content” )

More replies

I have Win10 and get the (error 0x1). i follow all the steps and then try to run the game and get (error 0x2)

Run this command for sc qc atvi-randgrid_msstore and send me a screenshot

sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWLOCRRC;;;LS)(A;;CCLCSWRPWPDTLOCRRC;;;SU) run that command as an admin in command prompt, than run this other command sc config atvi-randgrid_msstore binPath= "E:\Xbox\Call of Duty\Content\randgrid.sys" remove E:\Xbox\Call of Duty\Content\ and put your folder where its located at. go to your call of duty content folder and delete randgrid.sys
than go to your call of duty on xbox app verify the files it will redownload the thing again re run the windows 11 script and that should be it. I gave myself error 0x2 and this is how i made it work

I have Win10

sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) run this command than run this other command sc config atvi-randgrid_msstore binPath= "E:\Xbox\Call of Duty\Content\randgrid.sys" remove E:\Xbox\Call of Duty\Content\ and put your folder where its located at. go to your call of duty content folder and delete randgrid.sys
than go to your call of duty on xbox app verify the files it will redownload the thing again re run the windows 10 script given below and that should be it.

@echo off
echo Please enter the Xbox app installation folder for Call of Duty.
echo For example: C:\XboxGames\Call of Duty
set /p INSTALLDIR="Enter the folder location: "

sc query atvi-randgrid_msstore >nul 2>&1
if %errorlevel% == 0 (
    echo Service atvi-randgrid_msstore was found, 
removing...
    sc delete atvi-randgrid_msstore
    if %errorlevel% neq 0 (
        echo Failed to 
remove the service. Please run this script as an administrator.
        pause
        exit /b
    )
) else (
    echo Service atvi-randgrid_msstore is not installed.
)

echo Randgrid installing
sc create atvi-randgrid_msstore type= kernel binPath= "%INSTALLDIR%\Content\randgrid.sys"
if %errorlevel% neq 0 (
    echo Failed to create the service. Please check the folder path and run this script as an administrator.
    pause
    exit /b
)

echo Updating Randgrid permissions
sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)

echo Script completed. Please check for any error messages above.
pause
Edited

Hi i had the same problem and tried as you said but now its giving the error (0xfffffffe) after i run the call of duty shortcut as admin

run this sc qc atvi-randgrid_msstore and send me a screenshot

and when i run windows 10 script and give the call of duty folder its giving this 'removing...' is not recognized as an internal or external command,operable program or batch file.

2 more replies More replies
More replies
More replies
More replies
More replies
More replies
More replies
More replies
More replies
More replies

Hey man, i have zero experience in coding and the post is very confusing to me. I can't find bootstrapper.log3.Look in my files, have no idea how to look at logs and all that. I just wanna play the beta with the boys any help will be appreciated, thank you

Edited

wait i think my small brain is slowly figuring things out

(nvm i don't understand a thing)

I am going to make a short video here in a min explaining how to do everything, you not the only one having problems with keeping up

More replies
More replies

I did this and now i have error code 0x2, i feel like i'm never getting into this beta

Run this command for sc qc atvi-randgrid_msstore and send me a screenshot

I changed to the script, i couldnt get the manual steps to work at all. But now i cant open the batch file because Windows thinks its a virus??

Your antivirus is wrong just disable it, and run the script as administrator

More replies

Man i got the same issue now

Does your bootstrapper log have a (5) right next to the error log if so that means your user account does not have enough privileges to run the script meaning it has no administrator rights

nah this user got admin privileges on the pc

yeah i have admin privileges and when using the default admin account it completely doesnt know what to do.

More replies
More replies
More replies
More replies

when i run this command it tells me access is denied

More replies
More replies

This worked but now my game won’t update…

I'm having a different issue, i did it step by step the first time, and my windows blocked me at the bat archive, saying that i couldn't open it because it probably had a virus, alright, turn off windows firewall defender, same shit, so as i redo my steps again, every time i try to do any of the steps, i get a "Acess denied" at the command prompt, i simply don't know what to do now

Been getting error 0x1 for few days now, your post seems to be the only promising one. Done both option exactly as described, the none manual script doesn't seem to work even after messing about with my antivirus. However the manual script seems more promising but looks wrong/different on my end (image below) knowing me I've mistyped something, thank you for any advice :)

its not sc config is sc create also the sc sdset atvi-randgrid_msstore D:(A ;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) you have put it wrong

Edited

ah right not sure how i manged to put in 'config' and not 'create' with the sc sdset atvi-randgrid_msstore D:(A ;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) what's the correct way? (i copy and pasted from the post) much appreciate the reply

remember you need to run the cmd prompt as an administrator and the lines when you paste them (right click on your mouse)

sc create atvi-randgrid_msstore type= kernel binPath= "C:\XboxGames\Call of Duty\Content\randgrid.sys"

sc sdset atvi-randgrid_msstore D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWRPWPLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

need to be like this together

that probably explains that, didn't put them two commands together, absolute legend man cheers

More replies
More replies
More replies
More replies
[deleted]

Comment removed by moderator

Well i cant help you much without an error code so go to

C:\XboxGames\Call of Duty\Content\

Or wherever you content folder is located at find bootstrapper.log and send me the screenshot of what it says

More replies

I did this and now i get error 0x2, tried the fix for that error you mentioned on another commnet but doesn't work either

Run this command and sc qc atvi-randgrid_msstore and give me a screenshot of what it says also some people were reporting running the shortcut as an administrator was fixing the 0x2 error

More replies