$DrivesBeforeMount = (Get-PSDrive).Name Mount-DiskImage -ImagePath 'C:\Users\Administrator\Downloads\install' $DrivesAfterMount = (Get-PSDrive).Name $DriveLetterUsed = (Compare-Object -ReferenceObject $DrivesBeforeMount -DifferenceObject $DrivesAfterMount).InputObject Set-Location -Path "$DriveLetterUsed`:\" ////////////////////////////////////////////////////// Invoke-Command -ComputerName WIN-EMERI3HG1KH -ScriptBlock {Start-Process "C:\Instalacija\MSOffice2016\setup.exe" -ArgumentList "/q" -Wait} Invoke-Command -ComputerName WIN-EMERI3HG1KH -ScriptBlock {Start-Process "C:\Instalacija\MSOffice2016\setup.exe" -ArgumentList "/q" -Wait} Write-Host "Install MS Office 2016 Pro koncana"