Solved

More default printer problems..

Posted on 2001-08-21
2
137 Views
Last Modified: 2010-08-05
Upon the advice of people here, I am setting printers up using con2prt. This works okay, under a Group Policy at user level. However, if I move this to computer level it runs the script, but fails - this seems to be because it can't reach the printers on the server? Has anyone successfully configured remote printers on a per-computer basis?? The reason I want to do this is because we have students and the printers they use depends on which lab they are in - so I can't set things up on a per-user basis.

Additionally sometimes when a user logs in they can see the printers, but they can't be contacted. However when we login as administrator on the computer the queues can be opened okay. Then after a reboot and login as a user again everything is fine - why is this?
0
Comment
Question by:dd021197
2 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 6409947
Could it be that you are not disconnecting the previous default printer.
I would delete before adding.

Another option that may work....
3292 > Allow users to always install with System privileges. Administrator priv

 Windows 2000 has an Always install with elevated privileges Group Policy, that directs Windows Installer to always use System permissions when installing a program.

 I quote the Resource Kit:

 This policy extends elevated privileges to all programs. These privileges are usually reserved for programs that have been assigned
 to the user (offered on the desktop), assigned to the computer (installed automatically), or made available in Add/Remove Programs
 in Control Panel. This policy lets users install programs which require access to directories that the user might not have permission to
 view or change, including directories on highly restricted computers.

 Skilled users can take advantage of the permissions this entry grants to change their permissions and gain permanent access to
 restricted files and folders. Note that the User Configuration version of this entry is not guaranteed to be secure.

 This policy can be implemented at Computer Configuration\Administrative Templates\Windows Components\Windows
 Installer or User Configuration\Administrative Templates\Windows Components\Windows Installer.

 When enabled, Windows Installer defaults to using System privileges for the effected users' or computers' install.

 When I enabled the policy in Computer Configuration, it did an Add Value name AlwaysInstallElevated, as a
 REG_DWORD data type, and set the data value to 1, at the following keys:

 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer

 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalMachine\Software\Policies\Microsoft\Windows\Installer

 HKEY_USERS\<SID>\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalMachine\Software\Policies\Microsoft\Windows\Installer

-------------------

I hope this helps !

0
 
LVL 4

Accepted Solution

by:
arminl earned 200 total points
ID: 6411516
My way to solve this was dead easy: I set a machine level environment variable named "defaultprinter" every time I install a computer somewhere.

And my login script has the following lines:

if [%DefaultPrinter%]==[] Goto noPrinter
%0\..\con2prt -c %DefaultPrinter%
if errorlevel 1 ..... (do some error handling)
:NoPrinter

The admin setting up a new box is responsible to see which printer is closest and punch in the variable.

Note that through using regedt32 over the network you can also set the variable remotely, you don't have to walk up your computers to change the default printer assignment.

Primitive, but effective, and works with pre-w2k NT clients as well.

Armin Linder

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question