# Get specifics for a module, cmdlet, or function
(Get-Command -Name).Parameters
(Get-Command -Name Get-Printer).Parameters.Keys
# Results
<#
Name
ComputerName
Full
CimSession
ThrottleLimit
AsJob
Verbose
Debug
ErrorAction
WarningAction
InformationAction
ErrorVariable
WarningVariable
InformationVariable
OutVariable
OutBuffer
PipelineVariable
#>
Get-help -Name Get-Printer -Examples
Get-help -Name Get-Printer -Full
Get-help -Name Get-Printer -Online
# Get specifics for a module, cmdlet, or function
(Get-Command -Name Get-PrintConfiguration).Parameters
(Get-Command -Name Get-PrintConfiguration).Parameters.Keys
# Results
<#
ComputerName
PrinterName
PrinterObject
CimSession
ThrottleLimit
AsJob
Verbose
Debug
ErrorAction
WarningAction
InformationAction
ErrorVariable
WarningVariable
InformationVariable
OutVariable
OutBuffer
PipelineVariable
#>
Get-help -Name Get-PrintConfiguration -Examples
Get-help -Name Get-PrintConfiguration -Full
Get-help -Name Get-PrintConfiguration -Online
Use the help file to know what is/is not available before you begin
# Get specifics for a module, cmdlet, or function
(Get-Command -Name).Parameters
(Get-Command -Name Get-Printer).Parameters.Keys
# Results
<#
Name
ComputerName
Full
CimSession
ThrottleLimit
AsJob
Verbose
Debug
ErrorAction
WarningAction
InformationAction
ErrorVariable
WarningVariable
InformationVariable
OutVariable
OutBuffer
PipelineVariable
#>
Get-help -Name Get-Printer -Examples
Get-help -Name Get-Printer -Full
Get-help -Name Get-Printer -Online
# Get specifics for a module, cmdlet, or function
(Get-Command -Name Get-PrintConfiguration).Parameters
(Get-Command -Name Get-PrintConfiguration).Parameters.Keys
# Results
<#
ComputerName
PrinterName
PrinterObject
CimSession
ThrottleLimit
AsJob
Verbose
Debug
ErrorAction
WarningAction
InformationAction
ErrorVariable
WarningVariable
InformationVariable
OutVariable
OutBuffer
PipelineVariable
#>
Get-help -Name Get-PrintConfiguration -Examples
Get-help -Name Get-PrintConfiguration -Full
Get-help -Name Get-PrintConfiguration -Online
# Get all data about one printer
Get-Printer |
Select-Object -First 1 |
Select-Object -Property '*'
# Results
<#
RenderingMode :
PrinterStatus : Normal
Type : Local
DeviceType : Print
Caption :
Description :
ElementName :
InstanceID :
CommunicationStatus :
DetailedStatus :
HealthState :
InstallDate :
Name : OneNote for Windows 10
OperatingStatus :
OperationalStatus :
PrimaryStatus :
Status :
StatusDescriptions :
BranchOfficeOfflineLogSizeMB :
Comment :
ComputerName :
Datatype : RAW
DefaultJobPriority : 0
DisableBranchOfficeLogging :
DriverName : Microsoft Software Printer Driver
JobCount : 0
KeepPrintedJobs : False
Location :
PermissionSDDL :
PortName : Microsoft.Office.OneNote_1600...
PrintProcessor : winprint
Priority : 1
Published : False
SeparatorPageFile :
Shared : False
ShareName :
StartTime : 0
UntilTime : 0
WorkflowPolicy :
PSComputerName :
CimClass : ROOT/StandardCimv2:MSFT_Printer
CimInstanceProperties : {Caption...
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
#>
Get-Printer |
Select-Object -First 1 |
Foreach {
Get-PrintConfiguration -PrinterName $PSItem.name |
Select-Object -Property '*'
}
# Results
<#
DuplexingMode : OneSided
PaperSize : Letter
Collate : True
Color : True
ComputerName :
PrintCapabilitiesXML : <?xml version="1.0"?>
<...
PrinterName : OneNote for Windows 10
PrintTicketXML : <?xml version="1.0"?>
...
PSComputerName :
CimClass : ROOT/StandardCimv2:MSFT_PrinterConfiguration
CimInstanceProperties : {Collate, Color, ComputerName, DuplexingMode, PaperSize, PrintCapabilitiesXML, PrinterName, PrintTicketXML}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
#>