Removing Network Printers

FayetteMHMR
FayetteMHMR used Ask the Experts™
on
Need to remove old network printers/copiers from all user's machines.  I have a Powershell script that remove all the specific printers/copiers as we don't want to remove all networked printers such as locally shared printers (we are in a virtual environment and share the locally connected printers over the network to the virtual machine).  Now I know that I can just put the script in a logon script and deploy it through GP but we need to run this today without interrupting the users by a logon/off of the computers.  Is there another way to deploy the Powershell script remotely?  Or perhaps there is another solution to remove the select printers through Group Policy?  We have already tried deleting the printers through Group Policy via the route of User Config > Preferences > Control Panel Settings > Printers.  But that only removes the network printers/copiers that were installed by Group Policy....not those network printers/copiers manually installed through control panel, which we also need removed.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Managing Consultant
Commented:
If you have a list of computers (which you can obtain using Get-AdComputer, for example, or a number of other ways), you can run the script remotely using Invoke-Command (assuming you have enabled PowerShell remoting on your desktops). If you haven't enabled PSRP, then you can use psexec (old school, but it still works great! - sysinternals.com).

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial