Batch or Script to remove Libaries and Control Panel icons from Desktop

After setting CLASSIC VIEW in Windows 7, users now have the icons “Libraries” and “Control Panel” available on the desktop.  While I fould an article which references the registry keys to delete, I would like to automate the removal through a batch file or script.  I tried the VBS script below but ran into a syntax error.  I am not well-versed in scripting.  Thanks for any help!

Remove Libraries and Control Panel Icons from Desktop
LVL 1
davisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Smith and AndersenCommented:
Set the reg entries in a user gpo
0
davisAuthor Commented:
thanks for the feedback but i could use a little more assistance.   since i don't have access to the domain servers to apply GPO, I need to use an independent script/batch.
0
achaldaveCommented:
Classic start menu is not available on windows 7 and if it is forced it adds those icons.
http://support.microsoft.com/kb/2563515

You can use REG command to delete registry keys through Batch file
http://www.petri.co.il/reg_command_in_windows_xp.htm

Also consider using Group policy to control start menu and control panel

http://technet.microsoft.com/en-us/library/ee617162%28v=WS.10%29.aspx
http://technet.microsoft.com/en-us/library/ee617167%28v=WS.10%29.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

davisAuthor Commented:
Thanks!  I reviewed all the llinks you provided.  I believe the 'REG command to del reg keys through batch file' is worth testing.  I will do so and reply with my results.
0
Ahmed786Commented:
Hi, You want to remove some Icons from Control Panel or completely Control panel from all users ?

Meanwhile pls find attached Reg to disable Libraries
0
Ahmed786Commented:
0
Ahmed786Commented:
If you are trying to hide completely your Control panel then you may try this.

Type regedit into the Search box in the Start menu and hit Enter

In Registry Editor navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Policies\Explorer. Then right-click in the right pane and create a new DWORD (32-bit) Value.

Name the value NoControlPanel. Then right-click on the new Value and click Modify

In the Value data field change the value to “1” then click OK. Close out of Registry Editor and restart the machine to complete the process.

Reboot and see the changes, you’ll notice Control Panel is no longer listed in the Start menu.
0
davisAuthor Commented:
I simply would like to remove the icons from the desktop - the 'Control Panel' and the 'Libraries'
0
Ahmed786Commented:
so please proceed with above what i have given
0
Ahmed786Commented:
Is that works ?
0
davisAuthor Commented:
While the top and bottom olinks were insightful, the one which worked was the 'reg command to delete registry keys'.  This is what I was looking for - simple and effective.  thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.