Solved

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

Posted on 2013-05-22
1
459 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 25

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

717 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