From 860f21377101796cdffe915d9c95dde9fe0eff23 Mon Sep 17 00:00:00 2001 From: MaratMussabekov <48041687+MaratMussabekov@users.noreply.github.com> Date: Sat, 28 Aug 2021 21:24:43 +0500 Subject: [PATCH 1/2] Update Set-PrintConfiguration.md --- .../winserver2019-ps/printmanagement/Set-PrintConfiguration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md b/docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md index 824e1cfe3f..d674759585 100644 --- a/docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md +++ b/docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md @@ -77,7 +77,7 @@ The final command sets the value of the printer configuration to the modified va ### Example 3: Set the default paper size of all printers ``` -PS C:\>$Printers = Get-Printer * Foreach ($Printer in $Printers){ Set-PrintConfiguration -PrinterName $Printer.name -PaperSize A4} +PS C:\>$Printers = Get-Printer ; Foreach ($Printer in $Printers){ Set-PrintConfiguration -PrinterName $Printer.name -PaperSize A4} ``` This command gets all the printers into a variable $Printers and then loops through all the printers and displays the properties. From b9e4eec2c2a41257a47d8cd5839053fd09100179 Mon Sep 17 00:00:00 2001 From: MaratMussabekov <48041687+MaratMussabekov@users.noreply.github.com> Date: Fri, 3 Sep 2021 14:18:04 +0500 Subject: [PATCH 2/2] Update docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md Co-authored-by: Dario Woitasen <33589238+dariomws@users.noreply.github.com> --- .../winserver2019-ps/printmanagement/Set-PrintConfiguration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md b/docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md index d674759585..55e3911903 100644 --- a/docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md +++ b/docset/winserver2019-ps/printmanagement/Set-PrintConfiguration.md @@ -77,7 +77,7 @@ The final command sets the value of the printer configuration to the modified va ### Example 3: Set the default paper size of all printers ``` -PS C:\>$Printers = Get-Printer ; Foreach ($Printer in $Printers){ Set-PrintConfiguration -PrinterName $Printer.name -PaperSize A4} +PS C:\> $Printers = Get-Printer ; Foreach ($Printer in $Printers){Set-PrintConfiguration -PrinterName $Printer.name -PaperSize A4} ``` This command gets all the printers into a variable $Printers and then loops through all the printers and displays the properties.