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

New Post: Powershell script not running?

$
0
0
After some trial and error I was able to make it work. My custom update xml is below. What's odd though is that the update ran just fine, but there was still no CustomUpdateEngine.log at C:\Windows\Temp.
<CustomUpdate>
<Action>
<ElementType>CustomUpdateElements.VariableElement</ElementType>
<Name>ret</Name>
<Type>Int</Type>
<ID>9dc0ecf3-6d10-489a-ade4-185dbd850217</ID>
</Action>
<Action>
<ElementType>CustomUpdateElements.ExecutableElement</ElementType>
<PathToExecutable>%windir%\System32\WindowsPowershell\v1.0\powershell.exe</PathToExecutable>
<Parameters>-ExecutionPolicy Bypass -WindowStyle Hidden -NonInteractive -NoProfile -File jUI32.ps1</Parameters>
<KillProcess>False</KillProcess>
<TimeBeforeKilling>10</TimeBeforeKilling>
<Variable>9dc0ecf3-6d10-489a-ade4-185dbd850217</Variable>
</Action>
</CustomUpdate>

Viewing all articles
Browse latest Browse all 3825

Trending Articles



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