Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to disable renaming of files

Featured Replies

Hi,

we got a policy implemented in our network that only allows certain apps to run.

Users are getting around it by renaming the disallowed app to something that's on the allowed list (e.g. notepad.exe).

Is there a way to prevent users from renaming files in a certain directory?

Thank you,

Matthias

If they don't have the ntfs right to write/modify in this folder, they won't be able to rename a file.

yep,

if by chance it is running fat32 just run convert.exe, convert the file system.

ntfs has permissions that allow access but not read/write.

I am under the assumption this is a work type thing, and the OP might not be able to simply lock the folder, employee's usually need some form of write access. Not to mention the number of employee's who have local admin rights and can simply unlock the folder if they wanted to.

So while we cannot stop them from renaming the .exe in all cases, they probably cannot change it's Window Title. You could add this script to logon via group policy and it will run silently all day, preventing any windows from opening with that App's title. No idea what app we are talking about, so here is a sample that kills VMware, adjust as necessary.

Prevent_VMware.vbs

Set WshShell = Wscript.CreateObject("WScript.Shell")
Do While Not Wshshell.AppActivate ("VMware Workstation")
Wscript.sleep 1000
Loop
Wshshell.AppActivate "VMware Workstation"
Wshshell.SendKeys "%{F4}"

EDIT: Actually, this would only prevent the first VMware window and then quit, you would need to be re-write something that would stay running longer. But you get the idea.

Edited by MrJinje

  • Author

I am under the assumption this is a work type thing, and the OP might not be able to simply lock the folder, employee's usually need some form of write access. Not to mention the number of employee's who have local admin rights and can simply unlock the folder if they wanted to.

So while we cannot stop them from renaming the .exe in all cases, they probably cannot change it's Window Title. You could add this script to logon via group policy and it will run silently all day, preventing any windows from opening with that App's title. No idea what app we are talking about, so here is a sample that kills VMware, adjust as necessary.

Prevent_VMware.vbs

Set WshShell = Wscript.CreateObject("WScript.Shell")
Do While Not Wshshell.AppActivate ("VMware Workstation")
Wscript.sleep 1000
Loop
Wshshell.AppActivate "VMware Workstation"
Wshshell.SendKeys "%{F4}"

EDIT: Actually, this would only prevent the first VMware window and then quit, you would need to be re-write something that would stay running longer. But you get the idea.

Thank you for the script. I'll have a closer look at it.

Matthias

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.