Terminal Services / Remote Desktop Configuration

  • Thread starter Thread starter Kevin Williams
  • Start date Start date
K

Kevin Williams

I'm having some troubles with Terminal Services (Remote Desktop) in my XPE
image...

I'm connecting using the Remote Desktop client that comes with XP Pro. In
the client, I have configured the display to use 16 bit color and to
automatically connect local drives and printers. When I connect, I always
get 256 colors and my local printer isn't connected (the local drives work
fine, however). I suspect the video may be because I don't have the right
video driver component loaded in the XPE image, but I DO have the proper
printer driver component loaded.

I've also been unable to get Event Viewer to show up in Administrative Tools
on my XPE machine.

So, my questions:

1) Can someone confirm/deny my 256 color problem - do I just need to load
a video driver component?
2) What about the printer problem? This one is critical to me - I need to
be able to connect to the XPE machine via Remote Desktop and print to my
local printer.
3) What components do I need to load in order to see Event Viewer under
Administrative Tools in XPE? I already have "Administration Support Tools"
and the "Event Log" components in my image and I do have an Administrative
Tools icon in Control Panel - just no "Event Log" option.

Thanks in advance for any help!
-Kevin
 
Hi Kevin

Think I have the same issue as you with the Remote Desktop, but seems like
one no has a solution?

The Driver I use works fine on a Windows XP Pro, but on Embedded with the
same VGA driver I only get 256 colors icons but everything else is in corret

About the event log, can you access it from "Computer Management"?

/Peter
 
Kevin,
On your xp pro machine make sure that you have you color depth set at 32
bit, and when you rdp make sure to select the color depth (24 bit in this
case). You'll notice that your connection through rdp is always one notch
below your current color depth. For example if you are running 24 bit on
your pro machine then you will only see 16 or less with rdp.

Regards,

Sean Gahan
 
I am indeed running 32-bit color on my XP Pro desktop and have tried
selecting both 16-bit and 24-bit color as options in the Remote Desktop
client. When I connect to other XP Pro machines, everything is fine - the
problem only appears to happen when connecting to an XPE machine.

This problem is of much less concern to me at the moment than the printer
mapping issue.

-Kevin
 
Still haven't had anyone even attempt to answer my most critical issue...

Does anyone know how to get local printers to connect when making a Remote
Desktop connection to an XPE machine? Hasn't anyone else even tried it?

-Kevin
 
Kevin,
You could try running a script at logon that would connect to a printer.

Regards,

Sean Gahan
 
*****add a printer
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServer1\Xerox300"
WshNetwork.SetDefaultPrinter \\PrintServer1\Xerox300

*****enumerate printer connections*****
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer")
For Each objPrinter in colInstalledPrinters
Wscript.Echo "Name: " & objPrinter.Name
Wscript.Echo "Location: " & objPrinter.Location
Wscript.Echo "Default: " & objPrinter.Default
Next



*****install a printer*****
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objPrinter = objWMIService.Get("Win32_Printer").SpawnInstance_
objPrinter.DriverName = "HP LaserJet 4000 Series PS"
objPrinter.PortName = "IP_169.254.110.160"
objPrinter.DeviceID = "ScriptedPrinter"
objPrinter.Location = "USA/Redmond/Building 37/Room 114"
objPrinter.Network = True
objPrinter.Shared = True
objPrinter.ShareName = "ScriptedPrinter"
objPrinter.Put_



*****install printer drivers*****
Set objWMIService = GetObject("winmgmts:")
Set objDriver = objWMIService.Get("Win32_PrinterDriver")
objDriver.Name = "Apple LaserWriter 8500"
objDriver.SupportedPlatform = "Windows NT x86"
objDriver.Version = "3"
errResult = objDriver.AddPrinterDriver(objDriver)

Terminal services properties (look at the bottom for printer)
Set objUser = GetObject("LDAP://cn=youngrob,ou=r&d,dc=fabrikam,dc=com")

WScript.Echo objUser.Name & " Terminal Services Profile Settings"
WScript.Echo "--------------------------------------------------"

'**********************************************************************
'* Terminal Services Profile tab
'**********************************************************************
WScript.Echo "Allow Logon: " & objUser.AllowLogon

WScript.Echo "Terminal Services Home Directory: " & _
objUser.TerminalServicesHomeDirectory

WScript.Echo "Terminal Services Home Drive: " & _
objUser.TerminalServicesHomeDrive

WScript.Echo "Terminal Services Profile Path: " & _
objUser.TerminalServicesProfilePath

'**********************************************************************
'* Remote control tab
'**********************************************************************
WScript.Echo "Enable Remote Control: " & objUser.EnableRemoteControl

'**********************************************************************
'* Sessions tab
'**********************************************************************
WScript.Echo "Broken Connection Action: " & objUser.BrokenConnectionAction
WScript.Echo "Max Connection Time: " & objUser.MaxConnectionTime
WScript.Echo "Max Disconnection Time: " & objUser.MaxDisconnectionTime
WScript.Echo "Max Idle Time: " & objUser.MaxIdleTime
WScript.Echo "Reconnection Action: " & objUser.ReconnectionAction

'**********************************************************************
'* Environment tab
'**********************************************************************
WScript.Echo "Connect Client Drives At Logon: " & _
objUser.ConnectClientDrivesAtLogon

WScript.Echo "Connect Client Printers At Logon: " & _
objUser.ConnectClientPrintersAtLogon

WScript.Echo "Default To Main Printer: " & _
objUser.DefaultToMainPrinter

WScript.Echo "Terminal Services Initial Program: " & _
objUser.TerminalServicesInitialProgram

WScript.Echo "Terminal Services Work Directory: " & _
objUser.TerminalServicesWorkDirectory



*****Set the default printer*****
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer Where Name = 'ScriptedPrinter'")
For Each objPrinter in colInstalledPrinters
objPrinter.SetDefaultPrinter()
Next
 
Kevin,

Obvious question first. Can you print from your XPe device when you logged
in normally and not remoting in?
 
Back
Top