LogoLogo
OSDeploy.comTwitterGitHubPowerShell Gallery
  • OSD PowerShell Module
  • Functions
  • Docs
    • OSDCloud
    • OSDPad
    • OSDHelp
      • Autopilot
    • Guides
      • UEFI System Firmware Update
      • In Your Code
      • New-OSDBoot.usb
      • Partitions
        • New-OSDDisk (Information)
        • New-OSDDiskWinPE (GPT)
        • New-OSDDiskWinPE (2 Disks)
        • AutoUnattend.xml
    • OSDWindowsImage
    • Windows Setup Environment
      • Execution Policy
      • WinSE Settings
      • Import Modules
      • Automation
    • Release Notes
    • Trash
      • Adk
        • Edit-ADKwinpe.wim
        • Get-ADKpaths
        • New-ADK.iso
        • New-ADKcopype
      • Appx
      • Block
      • CloudDriver
      • Dell
        • Get-DellCatalogPC
        • Get-MyDellBIOS
        • Update-MyDellBios
      • Disk
        • Backup-Disk.ffu
        • Clear-LocalDisk
        • Clear-USBDisk
        • Get-LocalDisk
        • Get-OSDDisk
        • Get-USBDisk
        • New-OSDisk
          • Old Version
            • Sandbox
            • Partition Layout
            • Partition Sizes
            • Volume Labels
            • AutoUnattend.xml
        • Get-USBVolume
      • Dism
        • Get-MyWindowsCapability
        • Get-MyWindowsPackage
        • Set-WimExecutionPolicy
        • Set-WindowsImageExecutionPolicy
      • Display
        • Get-VidConRes
      • Driver
        • Get-OSDDriverWmiQ
        • Get-OSDDriver
      • General
        • Get-OSD
        • Get-OSDClass
        • Get-OSDGather
        • Get-OSDPower
        • Get-RegCurrentVersion
        • Get-SessionsXml
        • Save-OSDDownload
      • MyBitLocker
        • Get-MyBitLockerKeyProtectors
        • Backup-MyBitLocker
        • Save-MyBitLockerExternalKey
        • Save-MyBitLockerKeyPackage
        • Save-MyBitLockerRecoveryPassword
        • Unlock-MyBitLockerExternalKey
      • OOBE
      • PSModule
        • Copy-PSModuleToFolder
        • Copy-PSModuleToWim
        • Copy-PSModuleToWindowsImage
      • WebConnection
      • WebPSScript
      • WinPEWim
      • WinPE
        • Enable-PEWimPSGallery
        • Get-OSDWinPE
Powered by GitBook
On this page

Was this helpful?

  1. Docs
  2. Trash
  3. PSModule

Copy-PSModuleToWindowsImage

OSD 21.2.9.2+

PS C:\> Get-Help Copy-PSModuleToWim -Full

NAME
    Copy-PSModuleToWim
    
SYNOPSIS
    Copies the latest installed named PowerShell Module to a Windows Image .wim file (Mount | Copy | Dismount -Save)
    
    
SYNTAX
    Copy-PSModuleToWim [[-ExecutionPolicy] <String>] [-ImagePath] <String[]> [[-Index] <UInt32>] [-Name] <String[]> [<CommonParameters>]
    
    
DESCRIPTION
    Copies the latest installed named PowerShell Module to a Windows Image .wim file (Mount | Copy | Dismount -Save)
    

PARAMETERS
    -ExecutionPolicy <String>
        Specifies the new execution policy. The acceptable values for this parameter are:
        - Restricted. Does not load configuration files or run scripts. Restricted is the default execution policy.
        - AllSigned. Requires that all scripts and configuration files be signed by a trusted publisher, including scripts that you write on the local computer.
        - RemoteSigned. Requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher.
        - 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.
        - Bypass. Nothing is blocked and there are no warnings or prompts.
        - 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.
        
        Required?                    false
        Position?                    1
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    -ImagePath <String[]>
        Specifies the location of the WIM or VHD file containing the Windows image you want to mount.
        
        Required?                    true
        Position?                    2
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    -Index <UInt32>
        Index of the WIM to Mount
        Default is 1
        
        Required?                    false
        Position?                    3
        Default value                1
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    -Name <String[]>
        Name of the PowerShell Module to Copy
        
        Required?                    true
        Position?                    4
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  true
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). 
    
INPUTS
    
OUTPUTS
    
NOTES
    
    
        21.2.9  Initial Release
    
    
RELATED LINKS
    https://osd.osdeploy.com/module/functions/psmodule/copy-psmoduletowim




PS C:\> Get-Help Copy-PSModuleToWindowsImage -Full

NAME
    Copy-PSModuleToWindowsImage
    
SYNOPSIS
    Copies the latest installed named PowerShell Module to a mounted Windows Image
    
    
SYNTAX
    Copy-PSModuleToWindowsImage [[-ExecutionPolicy] <String>] [[-Path] <String[]>] [<CommonParameters>]
    
    
DESCRIPTION
    Copies the latest installed named PowerShell Module to a mounted Windows Image
    

PARAMETERS
    -ExecutionPolicy <String>
        Specifies the new execution policy. The acceptable values for this parameter are:
        - Restricted. Does not load configuration files or run scripts. Restricted is the default execution policy.
        - AllSigned. Requires that all scripts and configuration files be signed by a trusted publisher, including scripts that you write on the local computer.
        - RemoteSigned. Requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher.
        - 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.
        - Bypass. Nothing is blocked and there are no warnings or prompts.
        - 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.
        
        Required?                    false
        Position?                    1
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    -Path <String[]>
        Specifies the full path to the root directory of the offline Windows image that you will service
        If a Path is not specified, all mounted Windows Images will be modified
        
        Required?                    false
        Position?                    2
        Default value                
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). 
    
INPUTS
    
OUTPUTS
    
NOTES
    
    
        21.2.9  Initial Release
    
    
RELATED LINKS
    https://osd.osdeploy.com/module/functions/psmodule/copy-psmoduletowindowsimage
PreviousCopy-PSModuleToWimNextWebConnection

Last updated 4 years ago

Was this helpful?