Out-Printer 帮助信息

如下说明是翻译: help Out-Printer 产生的帮助信息.
译者: Edengundam(马涛)
 
Out-Printer
 
大纲
将输出发送到打印机.
 
语法
Out-Printer [[-name] <string>] [-inputObject <psobject>] [<CommonParameters>]
 
详细描述
Out-Printer cmdlet将输出发送到默认的打印机或备用打印机(如果指定了).
 
参数
 
-name <string>
指定备用的打印机. 参数名称("-Name")为可选项.
 
强制参数?
false
参数位置?
1
默认值
没人打印机
允许从管道绑定输入?
false
允许通配符扩展?
false
 
-inputObject <psobject>
指定要被发送到打印机输出的对象. 输入一个包含对象的变量, 或者一个能够产生对象的命令或表达式.
 
强制参数?
false
参数位置?
named
默认值
 
允许从管道绑定输入?
true (根据值)
允许通配符扩展?
false
 
<公共参数>
此命令支持公共参数: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. 更多信息, 输入, "get-help about_commonparameters".
 
输入类型
None
 
返回类型
None
 
注意
 
更多信息, 输入"Get-Help Out-Printer -detailed".需要技术信息, 输入"Get-Help Out-Printer -full".
 
如果需要为该命令提供多个参数, 请使用逗号进行分隔. 例如, "<parameter-name> <value1>, <value2>".
 
你可以使用Out-Printer内建别名"lp". 需要更多信息, 查看About_Alias.
 
Out cmdlets不会对对象进行格式化; 他们只显示这些对象, 然后将他们发送到指定的目标. 如果你给Out cmdlet发送一个没有格式化的对象, cmdlet在显示它前, 先将该对象发送给格式化cmdlet.
 
Out cmdlets没有任何名称或文件路径的参数. 要给Out cmdlets发送数据, 使用管道运算符(|)Windows PowerShell命令的输出发送给cmdlet. 你也可以将数据存储在变量中, 使用InputObject参数来讲数据传递给cmdlet. 帮助信息, 请看例子.
 
Out-Printer发送数据, 但是它不发出任和输出对象. 如果你将Out-Printer的输出通过管道发送给Get-Member, Get-Member将会报告没有任何对象被指定.
 
1
 
C:/PS>get-content $pshome/about_signing.help.txt | Out-Printer
 
此命令使用没人打印机, 打印About_Signing帮助文件的内容. 这个例子告诉您如何打印文件, 即使Out-Printer没有Path参数.
 
命令使用Get-Content cmdlet取得帮助文件的内容. 路径中包含了$pshome, 它是一个存储Windows PowerShell安装路径的内置变量. 管道运算符(|)将结果发送给Out-Printer, 后者将它们发送到默认打印机.
 
2
 
C:/PS>"Hello, World" | out-printer -name "//Server01/Prt-6B Color"
 
这个命令使用Server01上的"Prt-6B Color"打印机, 打印"Hello, World". 此命令使用Name参数指定备用的打印机. 由于参数名称是可选项, 因此你可以省略它.
 
3
 
C:/PS>$h = get-help -full get-wmiobject
 
out-printer -inputobject $h
 
这些命令打印Get-WmiObject帮助文件的完整版. 第一个命令使用Get-Help cmdlet取得Get-WmiObject帮助文件的完整版, 并将其存储在变量$h. 第二个命令将这些内容发送到默认打印机. 它使用InputObject参数将变量$h的值传递给Out-Printer.
 
相关链接
Out-Host
Out-Null
Out-String
Out-File
Out-Default
 
distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: ubuntu-desktop : Depends: gdm3 but it is not going to be installed Depends: gnome-control-center but it is not going to be installed Depends: gnome-settings-daemon but it is not going to be installed Depends: gnome-shell but it is not going to be installed Depends: language-selector-gnome but it is not going to be installed Depends: pulseaudio Depends: software-properties-gtk but it is not going to be installed Depends: ubuntu-release-upgrader-gtk but it is not going to be installed Depends: ubuntu-session but it is not going to be installed Depends: update-manager but it is not going to be installed Recommends: apport-gtk but it is not going to be installed Recommends: bluez-cups but it is not going to be installed Recommends: cups Recommends: eog but it is not going to be installed Recommends: gedit but it is not going to be installed Recommends: gnome-initial-setup but it is not going to be installed Recommends: gnome-keyring Recommends: gnome-software-plugin-snap but it is not going to be installed Recommends: gnome-todo but it is not going to be installed Recommends: hplip but it is not going to be installed Recommends: ibus Recommends: ibus-table but it is not going to be installed Recommends: libproxy1-plugin-gsettings but it is not going to be installed Recommends: libproxy1-plugin-networkmanager but it is not going to be installed Recommends: libreoffice-calc but it is not going to be installed Recommends: libreoffice-gnome but it is not going to be installed Recommends: libreoffice-impress but it is not going to be installed Recommends: libreoffice-math but it is not going to be installed Recommends: libreoffice-ogltrans Recommends: libreoffice-pdfimport but it is not going to be installed Recommends: libreoffice-writer but it is not going to be installed Recommends: nautilus-share but it is not going to be installed Recommends: network-manager-pptp-gnome but it is not going to be installed Recommends: orca but it is not going to be installed Recommends: printer-driver-splix but it is not going to be installed Recommends: pulseaudio-module-bluetooth but it is not going to be installed Recommends: seahorse but it is not going to be installed Recommends: system-config-printer but it is not going to be installed Recommends: ubuntu-software but it is not going to be installed Recommends: usb-creator-gtk but it is not going to be installed E: Unable to correct problems, you have held broken packages.
07-03
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值