Skip to content

Commit

Permalink
Fixed small typos and issue with intunewin sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Joly0 committed Apr 4, 2023
1 parent 3945a20 commit c141019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Replaced PSexec with ServiceUI for intunewin sandbox
### Removed
- Removed psexec in favor of ServiceUI
- Removed PSexec in favor of ServiceUI


## 2023-03-06
### Added
Expand Down
4 changes: 2 additions & 2 deletions Sources/Run_in_Sandbox/IntuneWin_Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Expand-Archive -LiteralPath "$Intunewin_Extracted_Folder\$IntuneWin_Rename" -Des
Remove-Item "$Intunewin_Extracted_Folder\$IntuneWin_Rename" -Force
Start-Sleep 1

$ServiceUI = "C:\RunInSandbox\ServiceUI.exe"
$ServiceUI = "C:\Run_in_Sandbox\ServiceUI.exe"
$WorkDir = "$Intunewin_Extracted_Folder\$FileName"
$File = "$Sandbox_Folder\Intunewin_Install_Command.txt"
$command = Get-Content -Raw $File


$cmd = "$ServiceUI -process:explorer.exe $command"
$cmd = "$ServiceUI -process:explorer.exe C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -NoProfile -WindowStyle Hidden -Command `"$command`""

Set-Location "$Intunewin_Extracted_Folder\$FileName"

Expand Down

0 comments on commit c141019

Please sign in to comment.