'Trying to execute a Powershell's script using a Powerhshell script
As the title say, I'm trying to execute a powershell's script using my own powershell script.
Ok now this works
ForEach ($found in $installers)
{
&$found.FullName
}
But now I would like to try to search the file that -include bot "INS" and "06651" I tried && -and but doesnt work...
If guys have any ideas
Solution 1:[1]
Should work.
$installers = Get-ChildItem -Path "C:\Windows\ccmcache" -Include *INS_PTE_06651_MOZILLA-FIREFOX-ESR_52.5.3_1.2_PRD_EXE_GLO.ps1* -File -Recurse -ErrorAction SilentlyContinue
foreach ($found in $installers){
& $found.FullName
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
