Which file extension should you use to save the script?

Posted by: Pdfprep Category: 70-417 Tags: , ,

Your network contains an Active Directory domain named contoso.com. All servers run Windows Server 2012. The domain contains a server named Server1.You open Review Options in the Active Directory Domain Services Configuration Wizard, and then you click View script.

You need to ensure that you can use the script to promote Server1 to a domain controller.

Which file extension should you use to save the script?
A . .bat
B . .ps1
C . .xml
D . .cmd

Answer: B

Explanation:

The View Script button is used to view the corresponding PowerShell script The PowerShell script extension is .ps1, The Answer could logically be either a .cmd file or a .bat file.

According to http://www.fileinfo.com/:

PAL Settings file created by Corel Painter or Palette of colors used by Dr. Halo bitmap images BAT DOS batch file used to execute commands with the Windows Command Prompt (cmd.exe); contains aseries of line commands that typically might be entered at the DOS command prompt; most commonly used tostart programs and run maintenance utilities within Windows. XML XML (Extensible Markup Language) data file that uses tags to define objects and object attributes; formatted much like an .HTML document, but uses custom tags to define objects and the data within eachobject; can be thought of as a text-based database.

CMD Batch file that contains a series of commands executed in order; introduced with Windows NT, but canbe run by DOS or Windows NT systems; similar to a .BAT file, but is run by CMD.EXE instead of COMMAND.COM.

Leave a Reply

Your email address will not be published.