Im trying to install an msi through msiexec but the location of the file is stored on a network drive. I keep getting this error:
Start-Process : A positional parameter cannot be found that accepts argument '\*****shareddataphishmePhishMe2010-13.msi'. At C:UsersnicpitDocumentsWorkScriptsPhishMeInstaller.ps1:73 char:1 + Start-Process "msiexec.exe" -ArgumentList /i "$PhishMe" /qb -Wait + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Start-Process], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand
Here is my code:
$PhishMe = "\*****shareddataphishmePhishMe2010-13.msi" Start-Process "msiexec.exe" -ArgumentList /i "$PhishMe" /qb -Wait
submitted by /u/Thealmightyshid
[link] [comments]
The post Passing network location to msiexec appeared first on How to Code .NET.