| external help file | WindowsCompatibility-help.xml |
|---|---|
| Module Name | WindowsCompatibility |
| online version | |
| schema | 2.0.0 |
Copy modules from the compatibility session that are directly usable in PowerShell Core.
Copy-WinModule [[-Name] <String[]>] [-ComputerName <String>] [-ConfigurationName <String>]
[-Credential <PSCredential>] [-Destination <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
Copy modules from the compatibility session that are directly usable in PowerShell Core. By default, these modules will be copied to $Home/Documents/PowerShell/Modules. This can be overridden using the -Destination parameter. Once these modules have been copied, they will be available just like the other native modules for PowerShell Core.
Note that if there already is a module in the destination corresponding to the module to be copied's name, it will not be copied.
Copy-WinModule hyper-v -WhatIf -VerboseRun the copy command with -WhatIf to see what would be copied to $PSHome/Modules. Also show Verbose information.
Copy-WinModule hyper-v -Destination ~/Documents/PowerShell/ModulesCopy the specified module to your user module directory.
If you don't want to use the default compatibility session, use this parameter to specify the name of the computer on which to create the compatibility session. (Defaults to 'localhost')
Type: StringParameter Sets: (All)Aliases: cnRequired: FalsePosition: NamedDefault value: localhostAccept pipeline input: FalseAccept wildcard characters: FalseSpecifies the configuration to connect to when creating the compatibility session (Defaults to 'Microsoft.PowerShell')
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: Microsoft.PowerShellAccept pipeline input: FalseAccept wildcard characters: FalseIf needed, use this parameter to specify credentials for the compatibility session
Type: PSCredentialParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseThe location where compatible modules should be copied to
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseSpecifies names or name patterns of modules that will be copied. Wildcard characters are permitted.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: *Accept pipeline input: FalseAccept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cfRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wiRequired: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseThis 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).