Hello out there,
I am constructing a script to fix least user access bugs that I encounter for a particular legacy piece of software. I need to change security permissions on files and folders as well as registry keys and specific values.
I currently have a subroutine that calls cacls.exe to change the permissions on the files or folders, but I'd like to do it inherent to the script without having to call an executable. I haven't found a way to do that up to this point. Any ideas?
My main concern is to be able to change permissions on some registry keys and values as needed to add modify access so that limited Windows users can run the program. I can't use cacls.exe for this. I can do this manually, but am not sure how to get it done via a script.
Thanks for any ideas!
Mike
I am constructing a script to fix least user access bugs that I encounter for a particular legacy piece of software. I need to change security permissions on files and folders as well as registry keys and specific values.
I currently have a subroutine that calls cacls.exe to change the permissions on the files or folders, but I'd like to do it inherent to the script without having to call an executable. I haven't found a way to do that up to this point. Any ideas?
My main concern is to be able to change permissions on some registry keys and values as needed to add modify access so that limited Windows users can run the program. I can't use cacls.exe for this. I can do this manually, but am not sure how to get it done via a script.
Thanks for any ideas!
Mike