Copy-PSModuleToWim
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
Copied!
Last modified 11mo ago
Copy link