Ownership from TrustedInstaller

Hi,

We are trying to make a script to revoke permissions on an exe file from Everyone on multiple computers, but this file is under TrustedInstaller ownership. Can we create a script to take ownership of a file from TrustedInstaller and assign its ownership to the Administrators group?

Regards,

Virgo

June 9th, 2015 6:44am

Hi

you can use takeown

Free Windows Admin Tool Kit Click here and download it now
June 9th, 2015 6:46am

Hi,

Thanks for replying, I used takeown but its showing access denied, I should run cmd as Administrator, how can I do this in no user interaction script? used runas also, but it asks for the password input.

Regards,

Sadain Mustafa

June 9th, 2015 7:11am

All I can think in this moment is creating a scheduled task which will run the script as system. You can then trigger the scheduled task to run anytime you want from cmd line or script with schtasks /run
Free Windows Admin Tool Kit Click here and download it now
June 9th, 2015 8:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics