HSESupport
MIS
Hello guru's
Can I run something past those with more Citrix/VBS/heck.....just the more knowledgeable!
Does the following look right'ish? I want to call a script from the logon script which will check the ClientName, and depending on the result set a default printer......I went with VBS, so.....
On Error Resume Next
Dim objWshNetwork
Dim objWshShell
Dim strWorkstation 'Local Computer Name
'Get Computername & store as strWorkstation
strWorkstation = WshShell.ExpandEnvironmentStrings("%clientname%")
'Enter into Select Case selection based upon WorkStation name
Select Case strWorkstation
Case "ClientNameWhatever"
objNetwork.SetDefaultPrinter "PrinterWhatever"
End Select
Next
Rgds,
Peter Mannion.
Can I run something past those with more Citrix/VBS/heck.....just the more knowledgeable!
Does the following look right'ish? I want to call a script from the logon script which will check the ClientName, and depending on the result set a default printer......I went with VBS, so.....
On Error Resume Next
Dim objWshNetwork
Dim objWshShell
Dim strWorkstation 'Local Computer Name
'Get Computername & store as strWorkstation
strWorkstation = WshShell.ExpandEnvironmentStrings("%clientname%")
'Enter into Select Case selection based upon WorkStation name
Select Case strWorkstation
Case "ClientNameWhatever"
objNetwork.SetDefaultPrinter "PrinterWhatever"
End Select
Next
Rgds,
Peter Mannion.