Skip to content

Commit 8395c21

Browse files
author
David Jones
committed
change module to only work on ps 5.1
1 parent 3f30eb7 commit 8395c21

2 files changed

Lines changed: 78 additions & 4 deletions

File tree

WindowsImageTools/WindowsImageTools.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Description = 'Tools for creating bootable physical/virtual disks from an ISO or WIM'
3434

3535
# Minimum version of the PowerShell engine required by this module
36-
# PowerShellVersion = ''
36+
PowerShellVersion = '5.1'
3737

3838
# Name of the PowerShell host required by this module
3939
# PowerShellHostName = ''
@@ -72,13 +72,13 @@
7272
FunctionsToExport = '*'
7373

7474
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
75-
CmdletsToExport = '*'
75+
CmdletsToExport = @()
7676

7777
# Variables to export from this module
78-
VariablesToExport = '*'
78+
VariablesToExport = @()
7979

8080
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
81-
AliasesToExport = '*'
81+
AliasesToExport = @()
8282

8383
# DSC resources to export from this module
8484
# DscResourcesToExport = @()
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
external help file: WindowsImageTools-help.xml
3+
Module Name: WindowsImageTools
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Get-WindowsImageFromIso
9+
10+
## SYNOPSIS
11+
Lists Windows images available in a WIM file inside an ISO.
12+
13+
## SYNTAX
14+
15+
```
16+
Get-WindowsImageFromIso [-Path] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
17+
```
18+
19+
## DESCRIPTION
20+
Mounts the specified ISO, locates the WIM file, lists its contents using Get-WindowsImage, and then dismounts the ISO.
21+
22+
## EXAMPLES
23+
24+
### EXAMPLE 1
25+
```
26+
Get-WindowsImageFromIso -Path 'C:\Images\Win10.iso'
27+
```
28+
29+
Lists the available Windows images in the WIM file inside the specified ISO.
30+
31+
## PARAMETERS
32+
33+
### -Path
34+
The path to the ISO file containing the Windows image.
35+
36+
```yaml
37+
Type: String
38+
Parameter Sets: (All)
39+
Aliases:
40+
41+
Required: True
42+
Position: 1
43+
Default value: None
44+
Accept pipeline input: False
45+
Accept wildcard characters: False
46+
```
47+
48+
### -ProgressAction
49+
{{ Fill ProgressAction Description }}
50+
51+
```yaml
52+
Type: ActionPreference
53+
Parameter Sets: (All)
54+
Aliases: proga
55+
56+
Required: False
57+
Position: Named
58+
Default value: None
59+
Accept pipeline input: False
60+
Accept wildcard characters: False
61+
```
62+
63+
### CommonParameters
64+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
65+
66+
## INPUTS
67+
68+
## OUTPUTS
69+
70+
## NOTES
71+
Author: WindowsImageTools Team
72+
Requires: Administrator privileges
73+
74+
## RELATED LINKS

0 commit comments

Comments
 (0)