Solved

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

Posted on 2013-05-22
1
450 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 24

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

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 …
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...
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

770 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