Quantcast
Channel: Wsus Package Publisher
Viewing all articles
Browse latest Browse all 3825

New Post: Copy a file to windows dir

$
0
0
Hi Daniel,
i created a customer update and a the powershell task and return code static "0".
If you return a static code, this mean that the CustomUpdate Engine will always return this code. '0' mean that all is fine. You should set the 'Script-Item' to store the return code into a variable and return this variable at the end of the custom update.

Return Code

In your ps1 script, you have to manage the return code or it will always return '0'.
but i can't found the saplogon.ini in %windir%.
Many things can explain this :
  • You may have forgot to add the 'SapLogon.ini' file to the additional file when you create the update :
    Additionnal File
  • Computers may not be allowed to execute Powershell Script. See Set-ExecutionPolicy
  • The Powershell script may not be able to translate the environement variable that you are using "$env:windir". If you don't have check the option "Can request user input", the update is deploy with the 'System' Account, so environnement variable have no meaning. Try to check this option.

Viewing all articles
Browse latest Browse all 3825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>