Browse Source

fixing windows

afeiszli 3 years ago
parent
commit
ba99943926
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/netclient-install.ps1

+ 1 - 1
scripts/netclient-install.ps1

@@ -52,7 +52,7 @@ new-module -name netclient-install -scriptblock {
     echo "outpath: $outpath"
     echo "outpath: $outpath"
     $NetArgs = @("join","-t",$token)
     $NetArgs = @("join","-t",$token)
     echo "netargs: $NetArgs"
     echo "netargs: $NetArgs"
-    Start-Process -Filepath $outpath -ArgumentList $NetArgs -wait -NoNewWindow
+    Start-Process -Filepath $outpath -ArgumentList $NetArgs -Wait
     Add-MpPreference -ExclusionPath "C:\ProgramData\Netclient"
     Add-MpPreference -ExclusionPath "C:\ProgramData\Netclient"
 
 
     if ((Get-Command "netclient.exe" -ErrorAction SilentlyContinue) -eq $null) { 
     if ((Get-Command "netclient.exe" -ErrorAction SilentlyContinue) -eq $null) {