gahhon Posted February 6, 2019 Posted February 6, 2019 (edited) I have a application that have a function is to create a shortcut to desktop, lets say is ChromePortable.lnk. $iCreate = FileCreateShortcut($DIR_WA_FOLDER & '\GoogleChromePortable.exe', $DIR_SHORTCUT, $DIR_WA_FOLDER, '--kiosk "https://example.com/"') So the shortcut will be launch as kiosk mode and force to enter the specific website. However, the user is still able to right-click on the shortcut and modify the target value to remove the kiosk mode. What can I do to disable the user to editing the target value? So far, I had asked and tried from SuperUser for advises Disable Shortcut Target Field icacls "ChromePortable.lnk" /GRANT EVERYONE:RX So this will set the permission of this shortcut file to only Read & Execute only! But after I set it, the user is still can modify. Please kindly advise. Please note and assume that user don't have Administration account or etc, that should be only have 1 account to logon to the computer. EDIT: I must disable inheritance to remove all others permissions like SYSTEM, ADMINISTRATORS, etc. Then only GRANT everyone for READ & EXECUTE only. But still the user can go to edit the permissions tho. Any advise? Edited February 6, 2019 by gahhon Improve what i had tried.
Bert Posted February 6, 2019 Posted February 6, 2019 (edited) Disable the context click. That is a registry hack if I remember right. edit: here you are - https://www.thewindowsclub.com/enable-disable-right-click-context-menus-windows-explorer Edited February 6, 2019 by Bert The Vollatran project My blog: http://www.vollysinterestingshit.com/
gahhon Posted February 6, 2019 Author Posted February 6, 2019 (edited) 14 minutes ago, Bert said: Disable the context click. That is a registry hack if I remember right. edit: here you are - https://www.thewindowsclub.com/enable-disable-right-click-context-menus-windows-explorer I tried edit the regedit value, but still can right-click the shortcut at desktop Is that any advise that can be done with AutoIT rather than I go modify someone computer regedit. Thanks Edited February 6, 2019 by gahhon
Bert Posted February 6, 2019 Posted February 6, 2019 Did you google to see how to disable the context click on everything? The Vollatran project My blog: http://www.vollysinterestingshit.com/
gahhon Posted February 6, 2019 Author Posted February 6, 2019 23 minutes ago, Bert said: Did you google to see how to disable the context click on everything? I think need to restart computer in order to take effect. But before that, I don't need disable for everything tho, but just the specific item on desktop. Any idea?
careca Posted February 6, 2019 Posted February 6, 2019 One idea would be to make a shortcut for an autoit exe, and that exe would then call the target with the parameters you set. No user can edit the exe. gahhon and FrancescoDiMuro 2 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
gahhon Posted February 6, 2019 Author Posted February 6, 2019 40 minutes ago, careca said: One idea would be to make a shortcut for an autoit exe, and that exe would then call the target with the parameters you set. No user can edit the exe. Please kindly provide example.
FrancescoDiMuro Posted February 6, 2019 Posted February 6, 2019 @gahhon Nothing so difficult to try it yourself. Instead of make a shortcut of Google Chrome, you make a shortcut of your exe, which launches Google Chrome in kiosk mode. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
gahhon Posted February 6, 2019 Author Posted February 6, 2019 12 minutes ago, FrancescoDiMuro said: @gahhon Nothing so difficult to try it yourself. Instead of make a shortcut of Google Chrome, you make a shortcut of your exe, which launches Google Chrome in kiosk mode. I don't understand it tho. I try to change the extension from .lnk to .exe in the FileCreateShortcut function but still can edit the path.
FrancescoDiMuro Posted February 6, 2019 Posted February 6, 2019 @gahhon You create an .exe from which you launch Google Chrome in kiosk mode, and then a shortcut to your .exe, so, no one can edit the .exe since it's compiled. No way to be more explicit. gahhon 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
gahhon Posted February 6, 2019 Author Posted February 6, 2019 Much appreciate for the ideas given and also explanation. @FrancescoDiMuro @careca Now the application flow is work as expected.
FrancescoDiMuro Posted February 6, 2019 Posted February 6, 2019 @gahhon The idea comes from @careca, so, he deserves one more "thank you". By the way, happy to have helped gahhon 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
careca Posted February 6, 2019 Posted February 6, 2019 Nothing preventing the user to create a shortcut to chrome, without any switches, but as long as it's good for you, it's good for me. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now