Brian Madden Logo
Your independent source for application and desktop virtualization.
Marketplace

advertisement

Need Citrix Logon script!, in the Scripting / Automation forum on BrianMadden.com

rated by 0 users
This post has 6 Replies | 0 Followers

Guest Posted: 09-05-2007 9:49 AM
I'm new to Citrix and scripting, can anyone help me with basic Citrix logon script that does the followin:

1. If a user belongs to CitrixOffice group than it copy the Office icon to their desktop.
2. If a user belongs to CitrixOffice group than it map drive U:\server\shared\%username%
3. Route user document folders to U:\server\shared\%username%
4. and some basic lockdown of Citrix usuage!

Thanks in advance.


1. Use PNAgent
2. Use the "Net Use" command
3. Group Polices
4. More Group Policies
  • | Post Points: 5
I will use the net use and group policies but you have any working script?
  • | Post Points: 20
Top 10 Contributor
Points 20,562
I don't think there is a generic script you can drop into your environment. However, you could create one in a short time to meet those basic needs. Kix is easy to use. Here's an older example of what can be done - http://www.brianmadden.com/content/article/Basic-KIX-Login-Script-for-Citrix-Users

Rudy

  • | Post Points: 5
Top 10 Contributor
Points 15,602
Hi,

You should be able to accomplish all of these with a GPO that is filtered to apply only to the CitrixOffice security group.

1. If a user belongs to CitrixOffice group, then copy the Office icons to their desktop.

You could do this by applying NTFS permissions to icons contained within the All Users profile

2. If a user belongs to CitrixOffice group than it map drive U:\server\shared\%username%

Create a GPO called CitrixOffice (whatever), filter the GPO to apply only to members of the CitrixOffice group, and define a login script within the GPO that maps the drive

3. Route user document folders to U:\server\shared\%username%

You can also accomplish this with the same GPO defined in the last step - use folder redirection.

4. and some basic lockdown of Citrix usage!

Again, can be accomplished by using a GPO

Take note that by default, the user configuration portion of a GPO normally is applied based on the location of the user object in AD. For Citrix servers, you want to create an OU for the Citrix server computer accounts, then apply Group Policy loopback. This will ensure that settings in the user portion of the GPO are applied based on the location of the Citrix server computer account rather than on the location of the user account in AD.

Cheers,

Alan Osborne
President (MCSE, CCNA, VCP, CCA)
VCIT Consulting - Citrix/Terminal Services Remote Desktop Solutions for SMB
p: 604-288-7325
c: 778-836-8025
web: http://www.vcit.ca
blog: http://www.vcit.ca/wordpress

  • | Post Points: 20
Thanks for the info that is really nice of you.
  • | Post Points: 5
Not Ranked
Points 375
Lets see...
1 & 2-- To copy the office icons
IF INGROUP("CitrixOffice")
Your general copy statement here
net use command here

3 -- use folder redirection in Group Policy
4 -- Check out microsofts article on locking down a terminal server. They have all the GPOs and such that you could apply.

also on a side note... I wouldn't set NTFS permissions on the all users cause that always gets messed up. Here we have a script that runs on logon to create the icons we need in the start menu and then when the user logs off we have a script that deletes the local profile. It helps keep the servers clean of multiple profiles, and ensures a good copy of the icons and information every time they log in.
  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Copyright © 1997-2008 The Brian Madden Company, LLC | Disclosures | Privacy | Terms of Use | Contact Info