Remove an xls files for all users on the network

Hi,

I would like to know if i can remove an xls files for all users on the network? They all have a specific excel file in shortcut but i want to remove for all individual users desktop profile.

His that possible?

if the answer is yes, what would be the fastest way?

Thanks for your help
LVL 11
Wilder1626Asked:
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.

Thomas GrassiSystems AdministratorCommented:
Are these computers all Windows 7?

You would need access to the following folder C:\Users\Username\Desktop

You could write a small batch file

@echo off
del "c:\users\joe smith\desktop\excel.lnk
exit

then use gpedit.msc  

Put the batch file in the computer and user configuration sections  Windows Settings Scripts

Put it in the Logoff and shutdown scripts

Then when ever the user logs off or restarts computer the script will run.
0
Wilder1626Author Commented:
It is on a XP version and on a remote server. All users have access to the remote server.

Would it still be the same process?
0
Tyler VerkadeCommented:
The directory would be different. Instead of "C:\Users\Username\Desktop\", it would be "C:\Documents and Settings\Username\Desktop\". But removing the shortcut would only remove that specific link. The users could still access the file through their recently opened files list in Excel unless you actually move the location of the Excel document on the server.
0
Firewall Management 201 with Professor Wool

In this whiteboard video, Professor Wool highlights the challenges, benefits and trade-offs of utilizing zero-touch automation for security policy change management. Watch and Learn!

Wilder1626Author Commented:
The direct folder is lock to all users now. so they wont access it.

Let me try this and i will let you know shortly.
0
McKnifeCommented:
If it's a domain, use group policy preferences. Those can delete shortcuts or files in general. The script mentioned is user specific, it cannot be deployed unless we use the variable %userprofile%\desktop.
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
Wilder1626Author Commented:
Perfect all shortcut were removed.

Thanks again for your help
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
Network Management

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.