Your network contains an Active Directory domain named contoso.com. All servers run
Windows Server 2012 R2. 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.
.cmd
C.
.psl
D.
.xml
Explanation:
From http://technet.microsoft.com/en-us/library/jj574105.aspx
The Review Options page in Server Manager also offers an optional View Script button to
create a Unicode text file that contains the current ADDSDeployment configuration as a
single Windows PowerShell script. This enables you to use the Server Manager graphical
interface as a Windows PowerShell deployment studio. Use the Active Directory Domain
Services Configuration Wizard to configure options, export the configuration, and then
cancel the wizard. This process creates a valid and syntactically correct sample for further
modification or direct use.
It should be .ps1 instead of .psl not sure if it’s a typo or it’s a tricky one.
http://technet.microsoft.com/en-us/library/dd819473.aspx
Does anyone know that are these answers provided by the people who created the questions or by others?
Hi Ehsan,
You are right, I can’t find anywhere that this script should be saved as a “psl” file instead of a standard “ps1” file.
regards,
Cyril
Answer is C.
psl is a typo, it should be ps1 format
http://www.dummies.com/how-to/content/how-to-create-and-run-a-powershell-script.html
I think the questions are imported with ocr software if i see the mistakes.
so there for a 5 is sometimes a s and 1 l And I swapped
Yes I think OCR is used on screenshots to get the question in text format…
stupid question again. You could just create a .cmd/bat which calls powershell:
powershell -command “cmdletsforADpromotion”
.ps1 will indeed be the answer that this question wants.
When you run the AD DS Wizard, you can click on “View Script” in the “Review Options” part.
This opens a Notepad window with a *.tmp file containing the PowerShell script for AD DS Deployement, with an Install-AD* command (depending on your previous choices…).
Tested in Lab:
If you save this file as a .cmd or .bat, it will give you errors if you try to run them.
Only correct extension is .ps1, using PS C:\> .\script.ps1