Window not hidden

//Window not hidden
Window not hidden 2016-09-27T17:03:56+00:00

The Toolkit Forums General Window not hidden

  • Author
    Posts
  • Francois
    Participant
    Post count: 102
    #1652 |

    Hi,

    I am trying to run a commandline with execute-process Minimized or Hidden and it seems not working. Am I doing right? Any other alternative?

    <code>
    
    Set-StrictMode -off
    $scriptDirectory=&amp;quot;C:\Sovgarde\OracleWarehouseBuilder11gR2_Anv1&amp;quot;
    [string]$moduleAppDeployToolkitMain = &amp;quot;$scriptDirectory\_Include\AppDeployToolkit\AppDeployToolkitMain.ps1&amp;quot;
    . $moduleAppDeployToolkitMain
    
    set-variable -name Hash_Securites -visibility public -scope script -Value @(
    	                @{
    		               EXE=&amp;quot;$env:Windir\system32\cmd.exe&amp;quot;
    		               Parameters=@(&amp;quot;/C icacls $env:systemdrive\OWB11gR2 /grant *S-1-5-11:(OI)(CI)F /T /Q&amp;quot;)
                        }                   
                   )  
    
                        foreach ($exe in $Hash_Securites)  {
                            
                                If ($exe.exe.trim() -ne &amp;quot;&amp;quot;) {
                                    Execute-Process -Path &amp;quot;$($exe.exe)&amp;quot; -Parameters $exe.parameters[0] -WindowStyle Minimized
                                    
                                }
                        }
    
    </code>

    Fran├žois

    • This topic was modified 1 year, 2 months ago by  Francois.
  • Pelle
    Participant
    Post count: 100

    Have you tried adding the paramter CreateNoWindow (-CreateNoWindow:$true) to the Execute-Process command?

You must be logged in to reply to this topic.