![]() |
Answer: Invoke the command `Invoke-Command -ComputerName RemotePC -ScriptBlock {Remove-Printer -Name “PrinterName”}`Access the Remote ComputerEnsure you have administrative rights to access the remote computer, typically through Remote Desktop or PowerShell. Identify the PrinterDetermine the name of the printer you want to remove. Use PowerShellOpen PowerShell with administrative privileges. Execute Removal CommandRun the following command:
Replace “RemotePC” with the target computer’s name and “PrinterName” with the actual name of the printer to be removed. ConclusionRemoving a network printer from a remote computer is streamlined with PowerShell, allowing administrators to efficiently manage printers without physical access to the device. This process saves time and reduces the need for onsite maintenance. |
Reffered: https://www.geeksforgeeks.org
Computer Networks |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |