Adprep Command in Windows Server
39 Questions
0 Views

Adprep Command in Windows Server

Created by
@RecommendedTranscendental

Questions and Answers

What is the primary purpose of the adprep command in Windows Server?

  • To install new software on Windows Server.
  • To extend the Active Directory schema and prepare for a domain controller. (correct)
  • To create user accounts within Active Directory.
  • To remove unnecessary files from the server.
  • Which parameter must be run only once in the forest when preparing it for a new domain controller?

  • /domainprep
  • /wssg
  • /rodcprep
  • /forestprep (correct)
  • Which group is NOT required to run the /forestprep command?

  • Schema Admins group
  • Local Users group (correct)
  • Domain Admins group
  • Enterprise Admins group
  • When should the /domainprep command be executed?

    <p>After the /forestprep command finishes and changes have replicated.</p> Signup and view all the answers

    What is required to run the adprep command from an elevated command prompt?

    <p>Select 'Run as administrator' when opening Command Prompt.</p> Signup and view all the answers

    What does the parameter /rodcprep specifically prepare the forest for?

    <p>For a new Read-Only Domain Controller.</p> Signup and view all the answers

    Which version of adprep runs by default on a 64-bit computer?

    <p>Adprep.exe</p> Signup and view all the answers

    Which command option is used to prepare a Windows Server 2000 or 2003 Domain?

    <p>/domainprep /gpprep</p> Signup and view all the answers

    What is likely to happen if you try to copy a file without specifying a different destination file when a copy already exists?

    <p>You will receive an error message indicating the file cannot be copied onto itself.</p> Signup and view all the answers

    When combining multiple ASCII files using the copy command, what option should be used to specify that files are binary?

    <p>/b</p> Signup and view all the answers

    What will happen if you execute the command 'copy report + mar89.rpt + apr89.rpt + may89.rpt'?

    <p>The files will be copied into a new file named report with the combined content.</p> Signup and view all the answers

    In which scenario would you use the xcopy command instead of the copy command?

    <p>When copying all files and subdirectories of a directory.</p> Signup and view all the answers

    What will occur when you use 'copy *.txt Combined.doc' in the current directory with multiple .txt files?

    <p>All .txt files will be combined into Combined.doc.</p> Signup and view all the answers

    What happens to the modified date and time of the destination file when the copy command combines multiple files?

    <p>It is marked with the current date and time.</p> Signup and view all the answers

    Which of the following commands would result in creating a copy named 'Birds' instead of a directory?

    <p>copy robin.typ c:irds</p> Signup and view all the answers

    Which algorithm is the fastest and set as the default value?

    <p>XPRESS4K</p> Signup and view all the answers

    What command is used to query the system's Compact state?

    <p>/CompactOs:query</p> Signup and view all the answers

    Which option would you use to prevent all operating system binaries from being compressed?

    <p>/CompactOs:never</p> Signup and view all the answers

    What does the /i parameter accomplish when compressing a volume?

    <p>Prevents error messages from interrupting the process</p> Signup and view all the answers

    Which command line will compress files and subdirectories in the current directory without altering the current directory's state?

    <p>compact /c /s <em>.</em></p> Signup and view all the answers

    What is the main limitation of using the command seen in the content?

    <p>It cannot be used on FAT or FAT32 partitions.</p> Signup and view all the answers

    What does the compact command do with existing files in a directory when changing the compression state?

    <p>Leaves their compression state unchanged</p> Signup and view all the answers

    Which wildcard character can be used in the query for specifying multiple filenames?

    <ul> <li></li> </ul> Signup and view all the answers

    What function does the /add parameter serve in cmdkey?

    <p>Adds a user name and password to the list</p> Signup and view all the answers

    Which command option allows you to specify a user account name when adding credentials?

    <p>/user:</p> Signup and view all the answers

    What will happen if the /smartcard option is used and multiple smart cards are found?

    <p>The system will prompt the user to select from available smart cards</p> Signup and view all the answers

    Which parameter would you use with cmdkey to delete a stored remote access entry?

    <p>/delete: /ras</p> Signup and view all the answers

    What is the effect of the /list: parameter in cmdkey?

    <p>Displays all stored user names and credentials</p> Signup and view all the answers

    When using cmdkey, how are passwords treated after they are stored?

    <p>They are masked and not displayed</p> Signup and view all the answers

    Which cmdkey command option is NOT valid?

    <p>/list: all</p> Signup and view all the answers

    What does the /? parameter do when used with cmdkey?

    <p>Displays detailed help at the command prompt</p> Signup and view all the answers

    What command must be executed to compress all .bmp files in the \tmp directory and its subdirectories?

    <p>compact /c /s:\tmp *.bmp</p> Signup and view all the answers

    Which command is used to force complete compression of a partially compressed file?

    <p>compact /c /f zebra.bmp</p> Signup and view all the answers

    What does the command 'compact /u c:\tmp' accomplish?

    <p>It removes the compressed attribute from c:\tmp without altering file states.</p> Signup and view all the answers

    What is the primary purpose of the copy command's /d option?

    <p>To save copied encrypted files as decrypted files</p> Signup and view all the answers

    Which parameter allows networked files to be copied in restartable mode?

    <p>/z</p> Signup and view all the answers

    When would you use the /n parameter with the copy command?

    <p>To use a short file name for long file names</p> Signup and view all the answers

    What does the /y option do in the copy command?

    <p>Suppresses confirmation when overwriting files</p> Signup and view all the answers

    What is indicated by using the /b parameter in the copy command?

    <p>The file is a binary file.</p> Signup and view all the answers

    Study Notes

    Adprep Command

    • Adprep is a command-line tool used to extend the Active Directory schema and update permissions for supporting Windows Server domain controllers.
    • Must be executed from an elevated command prompt; use "Run as administrator" to open.
    • Available in both 32-bit (Adprep32.exe) and 64-bit versions, with 64-bit being the default.
    • Essential for preparing a forest and domain for new domain controllers.
    • Syntax options include /forestprep, /domainprep, /domainprep /gpprep, and /rodcprep.

    Parameters of Adprep

    • /forestprep:

      • Prepares the forest for a new Windows Server domain controller.
      • Requires execution on the schema operation master domain controller.
      • Requires membership in Enterprise Admins, Schema Admins, and Domain Admins groups.
    • /domainprep:

      • Prepares the domain after running /forestprep.
      • Must be executed after changes have replicated throughout the domain controllers.

    Cmdkey Command

    • Cmdkey creates, lists, and deletes stored user names and password credentials in Windows Server.
    • Syntax includes options for adding, generic credentials, and deleting stored items.

    Parameters of Cmdkey

    • /add:

      • Adds username and password tied to a specific computer or domain.
    • /generic:

      • Stores generic credentials linked to a domain or computer.
    • /smartcard:

      • Retrieves credentials stored on a smart card.
    • /delete:

      • Deletes specified stored credentials, including remote access entries.
    • /list:

      • Displays all stored user names and associated credentials.

    Compact Command

    • Compact modifies the compression state of files and directories, utilizing the NTFS file system compression feature.
    • Syntax allows setting, querying, and modifying compression states with various options.

    Copy Command

    • The copy command facilitates copying files from one location to another within Windows.
    • Offers options to manage overwritten files, verify integrity, and deal with encrypted files.

    Parameters of Copy

    • /d:

      • Saves encrypted files as decrypted at the destination.
    • /v:

      • Verifies successful writing of new files.
    • /y:

      • Suppresses prompts for overwriting files, automating the process.
    • /z:

      • Copies networked files in a restartable mode.
    • /a | /b:

      • Specifies file type as ASCII text or binary, respectively.

    Usage of Commands

    • Adprep is crucial before deploying new domain controllers in Active Directory environments.
    • Cmdkey is essential for managing credentials for various network and security processes.
    • Compact is beneficial for optimizing storage use through file compression.
    • Copy enables efficient file management and organization within a file system, supporting various parameters for specific needs.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    This quiz focuses on the adprep command, which is essential for extending the Active Directory schema in preparation for a new Windows Server domain controller. Test your knowledge about how to properly execute adprep in an elevated command prompt and understand its implications in a domain environment.

    Use Quizgecko on...
    Browser
    Browser