0
0
PowerShellscripting~10 mins

Module manifest (.psd1) in PowerShell - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start a new module manifest with the correct command.

PowerShell
New-ModuleManifest -Path "MyModule.psd1" -RootModule [1]
Drag options to blanks, or click blank then click option'
AMyModule.psm1
BMyModule.psd1
CMyModule.psm2
DMyModule.psm0
Attempts:
3 left
💡 Hint
Common Mistakes
Using the manifest file (.psd1) as the root module.
Using incorrect file extensions like .psm2 or .psm0.
2fill in blank
medium

Complete the code to specify the module version in the manifest.

PowerShell
@{
  ModuleVersion = '[1]'
}
Drag options to blanks, or click blank then click option'
Aone
Bv1
Cversion1
D1.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-numeric version strings.
Omitting the version or using invalid formats.
3fill in blank
hard

Fix the error in the manifest snippet by completing the key name correctly.

PowerShell
@{
  [1] = 'MyModule'
}
Drag options to blanks, or click blank then click option'
AModuleName
BNameModule
CModule_Name
DModName
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect key names like 'NameModule' or 'ModName'.
Adding underscores in the key name.
4fill in blank
hard

Fill both blanks to define the author and description in the manifest.

PowerShell
@{
  Author = '[1]'
  Description = '[2]'
}
Drag options to blanks, or click blank then click option'
AJohn Doe
BJane Smith
CSample module for automation
DTest module
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping author and description values.
Using empty or too short descriptions.
5fill in blank
hard

Fill all three blanks to create a hashtable with required fields: RootModule, ModuleVersion, and GUID.

PowerShell
@{
  RootModule = '[1]'
  ModuleVersion = '[2]'
  GUID = '[3]'
}
Drag options to blanks, or click blank then click option'
AMyModule.psm1
B1.0.0
C12345678-1234-1234-1234-123456789abc
DMyModule.psd1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the manifest file as RootModule.
Using invalid version formats.
Using incorrect GUID format.