Solved

Batch File to delete link from start menu of all user accounts

Posted on 2013-05-22
1
447 Views
Last Modified: 2013-06-22
Do you have an example that I can use to create a batch file that will delete a link from the start menu of all users?
0
Comment
Question by:SDJ_1
1 Comment
 
LVL 23

Accepted Solution

by:
Coralon earned 500 total points
ID: 39189723
A lot depends on *where* the user profile is.  

Assuming it is local and on Windows 7:

cd %systemdrive%\users
for /d %f in (*) do del "%f\Microsoft\Windows\Start Menu\Programs\<folder>\<linkfile>

Open in new window


If you have a profile share, you'd do the same for command from the roaming profile directory.

This is all based on people having the link in their own start menu.  If it is in the All User's menu, it would be in %systemdrive%\programdata\Microsoft\windows\start menu\programs

Coralon
0

Featured Post

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now