Copy-PSModuleToWindowsImage
OSD 21.2.9.2+
1
PS C:\> Get-Help Copy-PSModuleToWim -Full
2
3
NAME
4
Copy-PSModuleToWim
5
6
SYNOPSIS
7
Copies the latest installed named PowerShell Module to a Windows Image .wim file (Mount | Copy | Dismount -Save)
8
9
10
SYNTAX
11
Copy-PSModuleToWim [[-ExecutionPolicy] <String>] [-ImagePath] <String[]> [[-Index] <UInt32>] [-Name] <String[]> [<CommonParameters>]
12
13
14
DESCRIPTION
15
Copies the latest installed named PowerShell Module to a Windows Image .wim file (Mount | Copy | Dismount -Save)
16
17
18
PARAMETERS
19
-ExecutionPolicy <String>
20
Specifies the new execution policy. The acceptable values for this parameter are:
21
- Restricted. Does not load configuration files or run scripts. Restricted is the default execution policy.
22
- AllSigned. Requires that all scripts and configuration files be signed by a trusted publisher, including scripts that you write on the local computer.
23
- RemoteSigned. Requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher.
24
- Unrestricted. Loads all configuration files and runs all scripts. If you run an unsigned script that was downloaded from the Internet, you are prompted for permission before it runs.
25
- Bypass. Nothing is blocked and there are no warnings or prompts.
26
- Undefined. Removes the currently assigned execution policy from the current scope. This parameter will not remove an execution policy that is set in a Group Policy scope.
27
28
Required? false
29
Position? 1
30
Default value
31
Accept pipeline input? true (ByPropertyName)
32
Accept wildcard characters? false
33
34
-ImagePath <String[]>
35
Specifies the location of the WIM or VHD file containing the Windows image you want to mount.
36
37
Required? true
38
Position? 2
39
Default value
40
Accept pipeline input? true (ByPropertyName)
41
Accept wildcard characters? false
42
43
-Index <UInt32>
44
Index of the WIM to Mount
45
Default is 1
46
47
Required? false
48
Position? 3
49
Default value 1
50
Accept pipeline input? true (ByPropertyName)
51
Accept wildcard characters? false
52
53
-Name <String[]>
54
Name of the PowerShell Module to Copy
55
56
Required? true
57
Position? 4
58
Default value
59
Accept pipeline input? true (ByPropertyName)
60
Accept wildcard characters? true
61
62
<CommonParameters>
63
This cmdlet supports the common parameters: Verbose, Debug,
64
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
65
OutBuffer, PipelineVariable, and OutVariable. For more information, see
66
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
67
68
INPUTS
69
70
OUTPUTS
71
72
NOTES
73
74
75
21.2.9 Initial Release
76
77
78
RELATED LINKS
79
https://osd.osdeploy.com/module/functions/psmodule/copy-psmoduletowim
80
81
82
83
84
PS C:\> Get-Help Copy-PSModuleToWindowsImage -Full
85
86
NAME
87
Copy-PSModuleToWindowsImage
88
89
SYNOPSIS
90
Copies the latest installed named PowerShell Module to a mounted Windows Image
91
92
93
SYNTAX
94
Copy-PSModuleToWindowsImage [[-ExecutionPolicy] <String>] [[-Path] <String[]>] [<CommonParameters>]
95
96
97
DESCRIPTION
98
Copies the latest installed named PowerShell Module to a mounted Windows Image
99
100
101
PARAMETERS
102
-ExecutionPolicy <String>
103
Specifies the new execution policy. The acceptable values for this parameter are:
104
- Restricted. Does not load configuration files or run scripts. Restricted is the default execution policy.
105
- AllSigned. Requires that all scripts and configuration files be signed by a trusted publisher, including scripts that you write on the local computer.
106
- RemoteSigned. Requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher.
107
- Unrestricted. Loads all configuration files and runs all scripts. If you run an unsigned script that was downloaded from the Internet, you are prompted for permission before it runs.
108
- Bypass. Nothing is blocked and there are no warnings or prompts.
109
- Undefined. Removes the currently assigned execution policy from the current scope. This parameter will not remove an execution policy that is set in a Group Policy scope.
110
111
Required? false
112
Position? 1
113
Default value
114
Accept pipeline input? true (ByPropertyName)
115
Accept wildcard characters? false
116
117
-Path <String[]>
118
Specifies the full path to the root directory of the offline Windows image that you will service
119
If a Path is not specified, all mounted Windows Images will be modified
120
121
Required? false
122
Position? 2
123
Default value
124
Accept pipeline input? true (ByPropertyName)
125
Accept wildcard characters? false
126
127
<CommonParameters>
128
This cmdlet supports the common parameters: Verbose, Debug,
129
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
130
OutBuffer, PipelineVariable, and OutVariable. For more information, see
131
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
132
133
INPUTS
134
135
OUTPUTS
136
137
NOTES
138
139
140
21.2.9 Initial Release
141
142
143
RELATED LINKS
144
https://osd.osdeploy.com/module/functions/psmodule/copy-psmoduletowindowsimage
Copied!
Last modified 11mo ago
Copy link