Upload files to "/"
This commit is contained in:
+5
-5
@@ -66,7 +66,7 @@ $AppCount = 0
|
|||||||
foreach ($Mfg in $MfgsToCheck) {
|
foreach ($Mfg in $MfgsToCheck) {
|
||||||
$MfgCount = 0
|
$MfgCount = 0
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host " $Mfg:" -ForegroundColor Cyan
|
Write-Host " ${Mfg}:" -ForegroundColor Cyan
|
||||||
|
|
||||||
foreach ($Pattern in $Patterns[$Mfg]) {
|
foreach ($Pattern in $Patterns[$Mfg]) {
|
||||||
try {
|
try {
|
||||||
@@ -99,7 +99,7 @@ foreach ($Mfg in $MfgsToCheck) {
|
|||||||
$MfgAppx = Get-AppxPackage -Name "*$Mfg*" -AllUsers -ErrorAction SilentlyContinue
|
$MfgAppx = Get-AppxPackage -Name "*$Mfg*" -AllUsers -ErrorAction SilentlyContinue
|
||||||
if ($MfgAppx) {
|
if ($MfgAppx) {
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host " $Mfg:" -ForegroundColor Cyan
|
Write-Host " ${Mfg}:" -ForegroundColor Cyan
|
||||||
foreach ($App in $MfgAppx) {
|
foreach ($App in $MfgAppx) {
|
||||||
Write-Host " - $($App.Name)" -ForegroundColor Red
|
Write-Host " - $($App.Name)" -ForegroundColor Red
|
||||||
$GlobalResults.AppxPackages += @{Manufacturer = $Mfg; Name = $App.Name }
|
$GlobalResults.AppxPackages += @{Manufacturer = $Mfg; Name = $App.Name }
|
||||||
@@ -128,7 +128,7 @@ $ServiceCount = 0
|
|||||||
foreach ($Mfg in $MfgsToCheck) {
|
foreach ($Mfg in $MfgsToCheck) {
|
||||||
$MfgServices = 0
|
$MfgServices = 0
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host " $Mfg:" -ForegroundColor Cyan
|
Write-Host " ${Mfg}:" -ForegroundColor Cyan
|
||||||
|
|
||||||
foreach ($ServiceName in $ServicePatterns[$Mfg]) {
|
foreach ($ServiceName in $ServicePatterns[$Mfg]) {
|
||||||
try {
|
try {
|
||||||
@@ -160,7 +160,7 @@ foreach ($Mfg in $MfgsToCheck) {
|
|||||||
$MfgTasks = Get-ScheduledTask -TaskPath "*$Mfg*" -ErrorAction SilentlyContinue
|
$MfgTasks = Get-ScheduledTask -TaskPath "*$Mfg*" -ErrorAction SilentlyContinue
|
||||||
if ($MfgTasks) {
|
if ($MfgTasks) {
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host " $Mfg:" -ForegroundColor Cyan
|
Write-Host " ${Mfg}:" -ForegroundColor Cyan
|
||||||
foreach ($Task in $MfgTasks) {
|
foreach ($Task in $MfgTasks) {
|
||||||
Write-Host " - $($Task.TaskName)" -ForegroundColor Red
|
Write-Host " - $($Task.TaskName)" -ForegroundColor Red
|
||||||
Write-Host " Path: $($Task.TaskPath)"
|
Write-Host " Path: $($Task.TaskPath)"
|
||||||
@@ -191,7 +191,7 @@ $DirCount = 0
|
|||||||
foreach ($Mfg in $MfgsToCheck) {
|
foreach ($Mfg in $MfgsToCheck) {
|
||||||
$MfgDirs = 0
|
$MfgDirs = 0
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host " $Mfg:" -ForegroundColor Cyan
|
Write-Host " ${Mfg}:" -ForegroundColor Cyan
|
||||||
|
|
||||||
foreach ($Dir in $DirPatterns[$Mfg]) {
|
foreach ($Dir in $DirPatterns[$Mfg]) {
|
||||||
if (Test-Path $Dir) {
|
if (Test-Path $Dir) {
|
||||||
|
|||||||
Reference in New Issue
Block a user