NetSetMan Support
You are not logged in.
- Topics: Active | Unanswered
Pages: 1
#1 2010-10-12 03:10
- hh
- Member
- Registered: 2010-10-12
- Posts: 3
Printer in limited account
Setting the printer gives a message "File not found" when run under limited account and NSM Service. Operative system is Windows 7 x64.
[0:04] Printer: Start
[0:04] Printer: Error 2
The system cannot find the file specified
When run without the service but providing the password, it sets the default printer for the administrator account, not for the limited account.
The following PowerShell command does change the default printer for the limited account; thus proving that it is possible to do it programmatically.
( Get-WmiObject win32_printer | where { $_.Name -eq "EPSON" } ).SetDefaultPrinter()
++Hector
Last edited by hh (2010-10-12 03:15)
Offline
#2 2010-10-16 22:46
- NetSetMan Support
- Administrator
- Registered: 2005-08-06
- Posts: 1,878
Re: Printer in limited account
The printer feature has been modified in 2008 the last time. Since then all previous problems seemed to have been solved. I will keep your problem in mind, but as long as this problem is not a general issue the function won't be changed. To solve your problem I'd recommend to use your script as a script inside NSM. That way your script will be activated whenever a profile is activated.
Offline
#3 2010-10-20 02:06
- hh
- Member
- Registered: 2010-10-12
- Posts: 3
Re: Printer in limited account
The issue seems to be a timing one. I have a wireless and a wired connection. When I switch connections, I turn off the superfluous card. It seems that turning on a card takes some extra time so that the printer is not found (?). If I run NetSetMan a second time, it will find the printer and set it correctly.
I'd recommend to use your script as a script inside NSM. That way your script will be activated whenever a profile is activated.
That was my "workaround" ;-)
Offline
Pages: 1