Hi,
To install an application, I need to create a script that renames DLL.
By default, on this DLL, only "TrustedInstaller" is "owner", same for the rights.
So I create a script as an application in SCCM, this script do the account "SYSTEM" owner, and gives Full Control to SYSTEM on thisL. However, this is not working, and I need your help if possible.
Here is my script:
takeown /F C:\Windows\System32\d3d11.dll echo y| cacls c:\Windows\System32\d3d11.dll /G ADMINISTRATORS:F SYSTEM:F REN C:\Windows\System32\d3d11.dll d3d11.old
Then I start the deployment of this application with SCCM and I ask to run with the system account.
The first line seems to work, because after execution through SCCM, I can see the Owner of the file is "System".
However, rights (or permissions) are not changed, and the DLL is not renamed.
This script works when I run it "by hand", but does not work on deployment via SCCM.
Have you any idea ?
Thank you all!