Good day,
I have done some research on this and have found many helpful threads on this. The script runs, but when the install seems to be complete the icon which is created for the app disappears and the app is not showing as installed when i look into my applications list in control panel. The following is the script, what am i not seeing, based on what i have read this should work.
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null $listpath = [Microsoft.VisualBasic.interaction]::InputBox("Please provide path of PC list txt file,'C:\Temp\pclist.txt'", "PC List Path", "$env:currentpath") $computers = Get-Content "$listpath" $SourceFile = [Microsoft.VisualBasic.interaction]::InputBox("Please provide the install path,'\\Server\Install folder\installfile.exe'", "Install Path", "$env:path") $Install = (split-path $SourceFile -leaf) foreach ($computer in $computers) { Copy-Item -Path $SourceFile -Destination "\\$computer\C$\temp" -force ([WMICLASS]"\\$computer\ROOT\CIMV2:Win32_Process").Create("\\$computer\C$\temp\$Install") Out-File -FilePath c:\temp\installed.txt -Append -InputObject "$computer" }
Thanks in advance
- Edited by KaGeLance 10 hours 29 minutes ago