Add network for remote user

Is there a way to add a network printer into a user's profile without using active directory/group policy logon script or interactively remoting into their session?

Would rather not give the end-user admin rights if possible.

Windows XP
garryshapeAsked:
Who is Participating?
 
garryshapeConnect With a Mentor Author Commented:
Correction:
The prnmngr tool doesn't work, at least I couldn't get it to work. It says to use a -s switch for the remote computer, but no matter how I use it it keeps adding the printer to my local computer and not the target computer.

I tried psexec (pstools) but it cannot run the prnmngr due to errors.

Solution:
made batch file with the following lines:
rundll32 printui.dll,PrintUIEntry /in /q /n\\server\printer
rundll32 printui.dll,PrintUIEntry /y /n\\server\printer

Saved that as a .bat with my \\server\printer in it.
used psexec to copy/execute on the remote maching
0
 
Chris DentPowerShell DeveloperCommented:

Hmm you don't need more than standard user rights to add a printer connection.

Chris
0
 
garryshapeAuthor Commented:
I am wondering if there's a way for me to do it remotely to a PC, though, instead of sending the user instructions on how to add the printer.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
garryshapeAuthor Commented:
Should I add a vbscript to add a printer in their startup folder?
0
 
garryshapeAuthor Commented:
I ended up using this and it seems to work

http://ss64.com/nt/prnmngr.html
0
 
garryshapeAuthor Commented:
I logged on as different users and verified the printer is there and defaulted.

This solution is good for when you don't want to use a logon script but just a one-time script to add a printer and optionally make it default for all user's on a PC without shadowing the user or interrupting them.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.