Windows 7 - Mapping Network Printers with a Script
Hi there, I'm having an issue mapping network printers in Windows 7 using VBS and the AddWindowsPrinterConnection method. I have a script which automatically maps all the printers. This script works correctly, without issue on Windows XP. In Windows 7 I get "Can't Find Module" as an error. I've diabled Group Policy settings for Point and Print, and the restrictions thereof. UAC is turned off, and Permissions is allowed for Standard Users to install Printer Drivers. What am I doing wrong? What could the problem be?
March 8th, 2010 9:10pm

Very basic question: Are you running the script with elevated permissions? UAC may be getting in your way.-Noel
Free Windows Admin Tool Kit Click here and download it now
March 9th, 2010 2:01am

Why not use Group Policy for mapping the printers?My idea of a party is a virtualization server and a room of TechNet DVDs
March 9th, 2010 3:14am

UAC is turned off.
Free Windows Admin Tool Kit Click here and download it now
March 9th, 2010 6:56am

It's a 2k3 Server machine, so Group Policy is a bit of a pain in the butt to make work for a few Win 7 machines
March 9th, 2010 6:56am

Hello,The script "WshNetwork.AddWindowsPrinterConnection" may not work in windows 7.Use the following way to add the printer:$printer = [wmiclass]"win32_printer"$printer.AddPrinterConnection("\\server\printer")Thomas77
Free Windows Admin Tool Kit Click here and download it now
March 9th, 2010 11:09am

That looks like a language other than VBS... Powershell Perhaps?
March 10th, 2010 7:18pm

That is powershell scripting. My experiance is it is much easier using powershell scripting with Win7 clients. Sean
Free Windows Admin Tool Kit Click here and download it now
September 28th, 2010 4:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics