shoris
asked on
Citrix Logon Script
I have Presentation server 4.0 installed.. I have the loopback configured and all of the polices. Citrix is installed on a Windows 2003 member server, my domain is Windows 2000 server. At any rate, i was hoping someone can help me out. I want to write a script.. whether its a batch file or vbs script, does anyone have any suggestions on how can i have mapped drves to share directory but most importantly to map the network printers automatically when they log on. Any suggestions? Again remember this is to be done on a terminal server of course that's where only citrix can reside.. :)
ASKER
Wow thank you.. that looks like an easy script.. I'm going to try this.. I will respond back.
Thank you.
Thank you.
ASKER
For some reason it doesn't map everything. I think it logs in to quickly.. could there be sync/async setting i have to enable/disable on the box?
You can test the script from another computer on the domain.
1. Copy the file to your test machine.
2. Go to the command-line (Start>Run>cmd).
3. Execute "cscript script.vbs".
If there is an error it will show up on the screen and let you know which line of the script it is on. If you show me your script and let me know which line the error is on we should be able to get it worked out.
1. Copy the file to your test machine.
2. Go to the command-line (Start>Run>cmd).
3. Execute "cscript script.vbs".
If there is an error it will show up on the screen and let you know which line of the script it is on. If you show me your script and let me know which line the error is on we should be able to get it worked out.
Hello,
Why mapping the printers, when usually Citrix "auto-Map" the printers on the Client PC ?
Chris
Why mapping the printers, when usually Citrix "auto-Map" the printers on the Client PC ?
Chris
ASKER
I have Citrix Presentation 3 on a Windows 2003 box.. I imported my printer server under Printer managment.. now i'm confused on how to do the Auto Creation for that.. :)
ASKER
Sorry i meant Citrix Presentation 4 not 3
Let me look into that, I installed it not so long, I should be able to get it soon.
I think scripting for the printer simply won't work under Citrix.
I think scripting for the printer simply won't work under Citrix.
ASKER
oK.. I will await. :)
Got it
Look into your Policies under Citrix PS console.
If you don't any Citrix policies, create one. Now, look in "printing" section, you should there all what you need !
So far, in my Citrix env, also the "Defaut Cleint printer" is attached in Citrix, to limit bandwtih.
Also, don't forget that print-out can be printed not exactly where the users want (like kilometer away) if they're connecting from a remote location.
Look into your Policies under Citrix PS console.
If you don't any Citrix policies, create one. Now, look in "printing" section, you should there all what you need !
So far, in my Citrix env, also the "Defaut Cleint printer" is attached in Citrix, to limit bandwtih.
Also, don't forget that print-out can be printed not exactly where the users want (like kilometer away) if they're connecting from a remote location.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok.. I'm confused.. I have added the policy.. I have applied the policy for the group of Citrix users.. But when i log on as the user.. i still don't get the printers auto created.
nothing in the event log ?
Also, might have a mismatch between the registry name of the client printer and the server printer.
1- close the citrix session
2- remove the printer / client side
3- reinstall the printer on the client
4- reconnect to citrix
Also, might have a mismatch between the registry name of the client printer and the server printer.
1- close the citrix session
2- remove the printer / client side
3- reinstall the printer on the client
4- reconnect to citrix
<======Begin Text======>
Set oNet = CreateObject("WScript.Netw
oNet.AddWindowsPrinterConn
oNet.MapNetworkDrive "DriveLetter", "\\FileServer\FileShare"
set oNet = Nothing
<======End Text======>
To create the GPO:
1. Open "Active Directory Users and Computers"
2. Right-click the OU for the Citrix servers and choose "Properties"
3. Go to the "Group Policy" tab
4. Press the "New" button to create a new GPO and name the GPO
5. Select the new GPO and press the "Edit" button
6. Go to "User Configuration\Windows Settings\Scripts(Logon/Log
7. Hit the "Show Files" button and copy the logon script to the folder in the "Show Files" dialogue box
8. Select the copied file and hit the "Open" button
This should map your printers and drives for anyone logging on to your Citrix servers. This is fine if you are publishing desktops. If you are publishing applications you should consider using Citrix to Publish your printers. Your installation media will have good documentation on how to do this.