[{"id":"comptia2201202-101","courseId":"comptia-220-1202","domain":"operating-systems","topic":"Group Policy refresh","prompt":"A technician linked a Group Policy object that applies user-targeted Folder Redirection. A user who is already signed in needs the setting to apply today. Which gpupdate switch signs the user out after the refresh so that extensions processed only at logon can apply?","hint":"Some client-side extensions only run during sign-in, not in the background cycle.","explain":"Group Policy normally refreshes in the background while a user stays signed in. Some extensions run only at sign-in, so a live session can miss them until a new logon.","source":"https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/gpupdate","interaction":{"type":"single"},"options":[{"id":"a","text":"/boot","whyNot":"/boot restarts the computer so computer-targeted extensions, such as computer-targeted Software Installation, can apply; it does not sign the user out."},{"id":"b","text":"/logoff","why":"/logoff signs the user out after the update, which is required for extensions that process policy at logon, such as user-targeted Software Installation and Folder Redirection."},{"id":"c","text":"/sync","whyNot":"/sync makes the next foreground policy application synchronous; it does not itself sign the user out."},{"id":"d","text":"/wait:0","whyNot":"/wait sets how long gpupdate waits for processing to finish; 0 means do not wait, and it causes no sign-out."}],"answer":"b","explanation":"gpupdate can force a refresh and optionally sign out (/logoff) or restart (/boot) for extensions that do not process in the background.","concept":"gpupdate can force a refresh and optionally sign out (/logoff) or restart (/boot) for extensions that do not process in the background.","rev":1,"kind":"scenario","takeaways":["/force reapplies all policies; /logoff or /boot is for extensions that only apply at sign-in or startup."]},{"id":"comptia2201202-102","courseId":"comptia-220-1202","domain":"operating-systems","topic":"System File Checker","prompt":"An audit requires a technician to check whether protected Windows system files are corrupted, but the computer must not be changed until the findings are approved. Which command, run from an elevated prompt, checks all protected system files without repairing them?","hint":"Look for the sfc option that reports integrity but is read-only.","explain":"System File Checker compares protected Windows files against a trusted reference copy. Some of its switches only inspect the files, while others also replace damaged ones.","source":"https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sfc","interaction":{"type":"single"},"options":[{"id":"a","text":"sfc /scannow","whyNot":"/scannow scans all protected files and repairs problems when possible, so it changes the system."},{"id":"b","text":"sfc /scanfile=C:\\Windows\\System32\\kernel32.dll","whyNot":"/scanfile checks a single file and attempts to repair it if a problem is found."},{"id":"c","text":"DISM /Online /Cleanup-Image /RestoreHealth","whyNot":"/RestoreHealth repairs the Windows image, which modifies the system."},{"id":"d","text":"sfc /verifyonly","why":"/verifyonly scans the integrity of all protected system files without performing repairs."}],"answer":"d","explanation":"sfc /verifyonly checks integrity without repairs; /scannow checks and repairs. Both require an elevated prompt.","concept":"sfc /verifyonly checks integrity without repairs; /scannow checks and repairs. Both require an elevated prompt.","rev":1,"kind":"scenario","takeaways":["Want to look without touching? Use /verifyonly. Want it repaired? /scannow, from an admin prompt."]},{"id":"comptia2201202-103","courseId":"comptia-220-1202","domain":"operating-systems","topic":"DISM image repair","prompt":"A technician ran the command below on a laptop that crashes when Settings opens. Which command should be run next to repair the Windows image so that sfc can then succeed?","hint":"The component store that sfc draws from may itself be damaged.","explain":"System File Checker copies replacement files from a separate Windows image, not from the files it checks. When that image is damaged, file repairs fail even though the checker runs correctly.","source":"https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image","interaction":{"type":"single"},"options":[{"id":"a","text":"DISM /Online /Cleanup-Image /RestoreHealth","why":"/RestoreHealth repairs the online image, using Windows Update or the specified source for the files it needs."},{"id":"b","text":"DISM /Online /Cleanup-Image /CheckHealth","whyNot":"/CheckHealth only reports whether the image is healthy, repairable or non-repairable; it does not repair."},{"id":"c","text":"chkdsk C: /spotfix","whyNot":"chkdsk addresses file system problems on the volume, not corruption in the Windows component store."},{"id":"d","text":"bcdedit /enum","whyNot":"bcdedit lists boot configuration entries; it does not repair system files."}],"answer":"a","explanation":"When sfc cannot repair files, DISM /Online /Cleanup-Image /RestoreHealth repairs the image it relies on.","concept":"When sfc cannot repair files, DISM /Online /Cleanup-Image /RestoreHealth repairs the image it relies on.","rev":1,"kind":"scenario","code":"PS C:\\> sfc /scannow\nWindows Resource Protection found corrupt\nfiles but was unable to fix some of them.","takeaways":["If sfc cannot fix files, repair its source first with DISM /Online /Cleanup-Image /RestoreHealth, then rerun sfc."]},{"id":"comptia2201202-104","courseId":"comptia-220-1202","domain":"operating-systems","topic":"chkdsk switches","prompt":"A technician suspects physical read errors on the secondary data drive D:. Which command locates bad sectors and recovers readable information, in addition to fixing file system errors?","hint":"One switch adds a surface scan for physical problems on top of logical repairs.","explain":"chkdsk checks a volume's file system records. Physical damage lives on the disk surface and needs a deeper scan that reads every sector.","source":"https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk","interaction":{"type":"single"},"options":[{"id":"a","text":"chkdsk D: /r","why":"/r locates bad sectors and recovers readable information, and it includes the functionality of /f."},{"id":"b","text":"chkdsk D:","whyNot":"Used without parameters, chkdsk only displays the volume status and fixes nothing."},{"id":"c","text":"chkdsk D: /f","whyNot":"/f fixes logical errors on the disk but does not add the analysis of physical disk errors that /r provides."},{"id":"d","text":"chkdsk D: /scan","whyNot":"/scan runs an online scan of an NTFS volume; it is not the bad-sector recovery switch."}],"answer":"a","explanation":"chkdsk /f fixes logical errors; /r adds a bad-sector search and recovery, and needs the volume locked.","concept":"chkdsk /f fixes logical errors; /r adds a bad-sector search and recovery, and needs the volume locked.","rev":1,"kind":"scenario","takeaways":["chkdsk /f fixes logical errors; /r also scans for bad sectors and recovers data, and takes longer."]},{"id":"comptia2201202-105","courseId":"comptia-220-1202","domain":"operating-systems","topic":"robocopy mirroring","prompt":"A technician schedules the command below nightly to back up a user folder to a NAS. Dana later deletes an old file from Documents. What happens to that file on the NAS at the next run?","hint":"Mirroring makes the destination match the source, not just add to it.","explain":"robocopy's switches decide what happens to destination files that no longer exist in the source. Plain copying leaves them alone, so old files can accumulate on the destination.","source":"https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy","interaction":{"type":"single"},"options":[{"id":"a","text":"It is deleted from the NAS copy","why":"/MIR is /E plus /PURGE, so destination files that no longer exist in the source are removed."},{"id":"b","text":"It stays on the NAS","whyNot":"robocopy deletes destination files when /PURGE or /MIR is used, so this is not the behavior here."},{"id":"c","text":"It is copied back into Documents","whyNot":"/MIR is one-way; it never copies destination files back to the source."},{"id":"d","text":"It stays on the NAS but is reported as an extra file","whyNot":"Extra files are only reported without deletion when /PURGE or /MIR is absent; /MIR purges them."}],"answer":"a","explanation":"robocopy /MIR mirrors a tree and purges destination files that are not in the source; it is one-way.","concept":"robocopy /MIR mirrors a tree and purges destination files that are not in the source; it is one-way.","rev":1,"kind":"scenario","code":"robocopy C:\\Users\\Dana\\Documents ^\n  \\\\NAS01\\Backup\\Dana /MIR /R:2 /W:5 ^\n  /LOG:C:\\Logs\\dana.log","takeaways":["robocopy /MIR is a one-way mirror that also deletes destination files missing from the source."]}]