diff --git a/reference/7/Microsoft.PowerShell.Management/Get-Clipboard.md b/reference/7/Microsoft.PowerShell.Management/Get-Clipboard.md new file mode 100644 index 000000000000..3b05de53ae7f --- /dev/null +++ b/reference/7/Microsoft.PowerShell.Management/Get-Clipboard.md @@ -0,0 +1,77 @@ +--- +external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml +keywords: powershell,cmdlet +locale: en-us +Module Name: Microsoft.PowerShell.Management +ms.date: 08/09/2019 +online version: https://go.microsoft.com/fwlink/?linkid=526219 +schema: 2.0.0 +title: Get-Clipboard +--- +# Get-Clipboard + +## SYNOPSIS +Gets the contents of the clipboard. + +[!NOTE] +> On Linux, this cmdlet requires the `xclip` utility to be in the path. + +## SYNTAX + +``` +Get-Clipboard [-Raw] [] +``` + +## DESCRIPTION + +The `Get-Clipboard` cmdlet gets the contents of the clipboard as text. + +## EXAMPLES + +### Example 1: Get the content of the clipboard and display it to the command-line + +In this example we have copied the text "hello" into the clipboard. + +```powershell +Get-Clipboard +``` + +```Output +hello +``` + +## PARAMETERS + +### -Raw + +Indicates that this cmdlet ignores newline characters and gets the entire contents of the clipboard. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters + +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). + +## INPUTS + +## OUTPUTS + +### System.String + +## NOTES + +## RELATED LINKS + +[Set-Clipboard](Set-Clipboard.md) diff --git a/reference/7/Microsoft.PowerShell.Management/Set-Clipboard.md b/reference/7/Microsoft.PowerShell.Management/Set-Clipboard.md new file mode 100644 index 000000000000..785dfa18ce3c --- /dev/null +++ b/reference/7/Microsoft.PowerShell.Management/Set-Clipboard.md @@ -0,0 +1,103 @@ +--- +external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml +keywords: powershell,cmdlet +locale: en-us +Module Name: Microsoft.PowerShell.Management +ms.date: 08/09/2019 +online version: https://go.microsoft.com/fwlink/?linkid=526220 +schema: 2.0.0 +title: Set-Clipboard +--- +# Set-Clipboard + +## SYNOPSIS +Sets the contents of the clipboard. + +## SYNTAX + +``` +Set-Clipboard [-Value] [-Append] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION + +The `Set-Clipboard` cmdlet sets the contents of the clipboard. + +[!NOTE] +> On Linux, this cmdlet requires the `xclip` utility to be in the path. + +## EXAMPLES + +### Example 1: Copy text to the clipboard + +```powershell +Set-Clipboard -Value "This is a test string" +``` + +## PARAMETERS + +### -Append + +Indicates that the cmdlet does not clear the clipboard and appends content to it. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm + +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf + +Shows what would happen if the cmdlet runs. The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters + +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). + +## INPUTS + +### System.String[] + +## OUTPUTS + +## NOTES + +## RELATED LINKS + +[Get-Clipboard](Get-Clipboard.md)