Jump to content

Default RDP Printer


Recommended Posts

Guest Mark Stoker
Posted

When the user connects to the server it 'creates' an instance of the printer.

 

I have a script that runs when the users logs on - this script is designed

to get the users default printer and write it into a .ini file we have.

 

It seems that the login script (GP set) runs before the users printer is

'created' and they always get the 'Microsoft Office Document Image Writer' as

the default printer. I even tried running the script from the start-up menu

but this doesn't work either.

  • Replies 3
  • Created
  • Last Reply
Posted

RE: Default RDP Printer

 

Hi Mark,

 

Why are you using personalized scripts when the functionality is in MS

Windows?

You can set printer redirection settings in the GPO:

computer_configuration\administrative_templates\

windows_components\terminal_services\client/server_data_redirection

 

Over here you can use printer redirection and there is also a setting to set

the local default printer as the default in the TS session.

 

When the printer not appears check the following:

- redirection setting in the client

- the printer driver might not be know on the TS. Install a dummy printer on

lpt1 via an administrator with the driver you need. After that you can remove

the dummy.

 

Hope this helps.

Cheers,

Bas.

Guest Mark Stoker
Posted

RE: Default RDP Printer

 

 

 

"Bas H." wrote:

> Hi Mark,

>

> Why are you using personalized scripts when the functionality is in MS

> Windows?

> You can set printer redirection settings in the GPO:

> computer_configuration\administrative_templates\

> windows_components\terminal_services\client/server_data_redirection

>

> Over here you can use printer redirection and there is also a setting to set

> the local default printer as the default in the TS session.

>

> When the printer not appears check the following:

> - redirection setting in the client

> - the printer driver might not be know on the TS. Install a dummy printer on

> lpt1 via an administrator with the driver you need. After that you can remove

> the dummy.

>

> Hope this helps.

> Cheers,

> Bas.

 

Sorry, I might have not made myself clear. I know all about TS printers and

the settings etc.. What I'm trying to achieve is a script that runs when the

user log on. This script will 'get' the name of the users default printer

 

e.g HP LaserjJet 4/Session 3

 

this printer name will CHANGE each time the user logs on depending on the

session number. e.g next time it could be HP LaserJet 4/Session 900

 

The script I have now does not pick this name up. When I run the script

manually when the user has completed logging on it does.

Posted

RE: Default RDP Printer

 

Mmmm, I think you analysis is clear. I would suggest to start the script from

startup, but you’ve tried that already…

 

You could schedule a task, but you never know when the task must run. Plus

the task must be started as the user and you don’t have all the passwords.

Not an option either…

 

Or does the script only register one printer (the first). What if you run

the command in the script a few times?

 

Hopefully I trigger something at you end.

Otherwise I’m afraid I can’t help any further.

Good luck anyway!


×
×
  • Create New...