meph’s blog

2009/03/31

Printer installation on remote computers

Filed under: Scripting — Tags: , , — Michael @ 08:19

Create a text file with the following content and save it as .vbs:

Dim compName
compName = Inputbox("Enter the name of the computer on which you would like
to install a printer:","Printer installation on a remote computer")
Set WShell = CreateObject("WScript.Shell")
WShell.Run "rundll32 printui.dll,PrintUIEntry /il /c\\" & (compName)

Double-click the file and enter the name of the computer, on which you would like to install a printer. Et voila!

For further interesting parameters of the printer UI: Start – Run – rundll32 printui.dll,PrintUIEntry /?

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: