[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

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
0
Wilder1626
Asked:
Wilder1626
3 Solutions
 
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
Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

 
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
 
Wilder1626Author Commented:
Perfect all shortcut were removed.

Thanks again for your help
0

Featured Post

Become an IT Security Management Expert

In today’s fast-paced, digitally transformed world of business, the need to protect network data and ensure cloud privacy has never been greater. With a B.S. in Network Operations and Security, you can get the credentials it takes to become an IT security management expert.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now