Log-in Script

Dear,

I have a Script that makes change in the registry. I make a new group policy in the active directory and I add the script to work when the user make log-in. when the users make log-in, a MSG appear to ask applying the Script (Yes  No), when the users press on Yes, another MSG appear to say the key its add successfully in the registry.

I need to apply the same script with the same way (Using group policy) but I dont need the MSG appear for the users. I need the script to add silently the key to the registry.

Script
HKEY_CURRENT_USER\Software\CITRIX\Program Neighborhood Agent]
"Application Cache"="C:\\Documents and Settings\\test\\Application Data\\Citrix\\PNAgent\\AppCache"
"Cached Icon Location"="C:\\Documents and Settings\\test\\Application Data\\Citrix\\PNAgent\\AppCache\\22877640.ico"
"lastUserName"="TEST"
"lastPassword"=""
"lastSavePassword"=dword:00000000
"lastDomainName"="SHBCA"
"lastCredentialType"=dword:00000002
"Config URL"="http://cactxweb/Citrix/PNAgent/config.xml"
"Enum URL"="http://cactxweb/Citrix/PNAgent/enum.aspx"
"Enum_Smartcard URL"="https://cactxweb/Citrix/PNAgent/smartcard_enum.aspx"
"Launch URL"="http://cactxweb/Citrix/PNAgent/launch.aspx"
"Launch_Smartcard URL"="https://cactxweb/Citrix/PNAgent/smartcard_launch.aspx"
"Reconnect URL"="http://cactxweb/Citrix/PNAgent/reconnect.aspx"
"Reconnect_Smartcard URL"="https://cactxweb/Citrix/PNAgent/smartcard_reconnect.aspx"
"Desktop Icon Name"="My Program Neighborhood Applications"
"Desktop Icon Location"="http://CACTXWEB/Citrix/PNAgent/config.xml"
"Display StartMenu"=dword:00000001
"Display Desktop"=dword:00000000
"Display SystemTray"=dword:00000001
"Application Startup Refresh"=dword:00000001
"Launch Refresh"=dword:00000000
"Hourset Poll"=dword:00000001
"Refresh Interval Hours"=dword:00000006
"Login Option"=dword:00000000
"Program Folder"=dword:00000001
"Window Size"=dword:00000000
"Audio Quality"=dword:00000000
"Reconnect Logon Discon"=dword:00000000
"Reconnect Logon Active"=dword:00000000
"Reconnect Button Discon"=dword:00000000
"Reconnect Button Active"=dword:00000000



Thanks

devdeptAsked:
Who is Participating?
 
mgcITConnect With a Mentor Commented:
basically you need 2 files for your login script.

the first will be a batch file.  this is the file that actually gets executed at login.  name the file "something.bat"
the contents should be:

REGEDIT /s Filename.REG

this line of code calls a .reg file using the REGEDIT command.  The /s makes it silent so you don't get those message prompts.


the 2nd file will be a registry file (.reg).  This file is called by your batch file and contains all the registry info that gets imported.
the contents should be (what you already have):

Windows Registry Editor Version 5.00

HKEY_CURRENT_USER\Software\CITRIX\Program Neighborhood Agent]
"Application Cache"="C:\\Documents and Settings\\test\\Application Data\\Citrix\\PNAgent\\AppCache"
"Cached Icon Location"="C:\\Documents and Settings\\test\\Application Data\\Citrix\\PNAgent\\AppCache\\22877640.ico"
"lastUserName"="TEST"
"lastPassword"=""
"lastSavePassword"=dword:00000000
"lastDomainName"="SHBCA"
"lastCredentialType"=dword:00000002
"Config URL"="http://cactxweb/Citrix/PNAgent/config.xml"
"Enum URL"="http://cactxweb/Citrix/PNAgent/enum.aspx"
"Enum_Smartcard URL"="https://cactxweb/Citrix/PNAgent/smartcard_enum.aspx"
"Launch URL"="http://cactxweb/Citrix/PNAgent/launch.aspx"
"Launch_Smartcard URL"="https://cactxweb/Citrix/PNAgent/smartcard_launch.aspx"
"Reconnect URL"="http://cactxweb/Citrix/PNAgent/reconnect.aspx"
"Reconnect_Smartcard URL"="https://cactxweb/Citrix/PNAgent/smartcard_reconnect.aspx"
"Desktop Icon Name"="My Program Neighborhood Applications"
"Desktop Icon Location"="http://CACTXWEB/Citrix/PNAgent/config.xml"
"Display StartMenu"=dword:00000001
"Display Desktop"=dword:00000000
"Display SystemTray"=dword:00000001
"Application Startup Refresh"=dword:00000001
"Launch Refresh"=dword:00000000
"Hourset Poll"=dword:00000001
"Refresh Interval Hours"=dword:00000006
"Login Option"=dword:00000000
"Program Folder"=dword:00000001
"Window Size"=dword:00000000
"Audio Quality"=dword:00000000
"Reconnect Logon Discon"=dword:00000000
"Reconnect Logon Active"=dword:00000000
"Reconnect Button Discon"=dword:00000000
"Reconnect Button Active"=dword:00000000
0
 
AmazingTechCommented:
This is a .REG file.

In your group poilcy instead of naming the reg file call it with REGEDIT.

So:

REGEDIT /s Filename.REG
0
 
devdeptAuthor Commented:
i didn't get this, what you mean, what i have to do exactly
0
 
AmazingTechCommented:
Your posted script in your question how do you put it into a GPO?
0
 
devdeptAuthor Commented:
I put it as Log-in script in GPO. i'm ask for "REGEDIT /s Filename.REG" where i have to put this.
 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.