.Reg file containing string value(s)

Associate
Joined
13 Jun 2005
Posts
1,416
Location
West Midlands
Hi Guys,

To cut a long story short, I have created a .reg file which I would like to add to a logonscript so that it runs on my users PC's automatically.

The content of the .reg file is as follows (I have starred out any company specific information) -

[HKEY_CURRENT_USER\Software\Microsoft\MSCRMClient]
"AllowedAppointmentClasses"="*****.*****.*****"

[HKEY_CURRENT_USER\Software\Microsoft\MSCRMClient]
"AllowedEmailClasses"="*****.*****.*****"

To test the .reg file, I removed the string values from the registry of the PC (Win 7 64bit) that the .reg file was created on. I then ran the .reg file. It appeared to run fine without any errors. I checked the registry to see if the string values had returned after the .reg file was run but there were not present. I did search for the string values which returned nothing.

Any ideas what I am doing wrong?
 
Fixed it. I am a complete tool!

As per LizardKings post I missed out the top line. I entered REGEDIT4, saved and ran - bam it worked!

Thanks guys :)
 
Back
Top Bottom