How to programatically change the Print Orientation of default pri

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to programatically change the default printer orientation for users
logging into Windows 2000 (Terminal Services). The reason is crazy, but
valid.

I have seen Pageset (http://support.microsoft.com/kb/198901/EN-US/) and have
made this work, except that it requires admin or power user rights (something
I don't want to give out).

What I would like is some method to change the orientation of the default
printer that does not require admin rights. Any language or EXE is fine.

Any thoughts out there?
 
Check out prnadmin.dll from the W2k Resource Kit. I use it to add printers, which requires Power User/Admin rights, but perhaps changing the orientation of the default printer won't.
Read the documentation and sample scripts that come with it, they're very useful.
I found the dll, scripts and docs in NETMGMT.CAB on the W2k ResKit CD.
Open it with WinZip, sort by name, and extract everything that begins with "prn".

hth,

-Peter
 
Back
Top