A systems administrator needs to create an automated maintenance script on a Windows host. The script must mirror a folder structure from C:\Data to E:\Backup while retaining NTFS security permissions (ACLs) and skipping junction points to prevent infinite looping. Additionally, the administrator needs to scan and repair corrupted system files on a non-booting Windows volume mounted at D: with its system directory at D:\Windows. Which of the following commands execute these tasks correctly? (Select TWO.)
- robocopy C:\Data E:\Backup /mir /sec /xjCevap
- sfc /scannow /offbootdir=D:\ /offwindir=D:\WindowsCevap
- Crsync -avz --copy-links C:\Data E:\Backup
- Dsfc /scanonce /bootdir=D:\ /windir=D:\Windows
Cevap
The required commands are 'robocopy C:\Data E:\Backup /mir /sec /xj' for folder mirroring with security ACLs and excluded junctions, and 'sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows' for offline system file verification.
The command starting with 'robocopy' correctly utilizes /mir to mirror the directory tree, /sec to copy security ACLs, and /xj to skip junction points. The command starting with 'sfc /scannow' correctly specifies the offline system boot drive (/offbootdir) and Windows root folder (/offwindir) required for servicing an offline OS installation.
Adım Adım Çözüm
Anahtar Kavram
Microsoft Windows Command-Line Utility Switches (Robocopy and Offline SFC)