Function-Array-Action-with-filter

1.0

This function will take a .CSV file and run a command against specific items in the array
The function will count all the items that has a numeric value inside a specific column and then execute a command against these items only
In this example function, some computers in the .CSV has a Startup Priority and some don't. The function will filter only those with a value
This function will take a .CSV file and run a command against specific items in the array
The function will count all the items that has a numeric value inside a specific column and then execute a command against these items only
In this example function, some computers in the .CSV has a Startup Priority and some don't. The function will filter only those with a value in the StartupPriority column
and will run a command against each one
$Servers = All the items in the .CSV
$Physical_Servers = only servers with some number in the StartupPriority column


Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Function-Array-Action-with-filter

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Omer Barel

Functions

Array-Action-with-filter

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.0 (current version) 292 3/29/2017