Skip to content

MrTechGadget/aw-tag-script

Repository files navigation

aw-tag-script

Now this has grown to more than one script which are used to bulk manage tags within AirWatch.

Get-ListOfTaggedDevices.ps1 - This script displays all of the tags in the environment, the user selects a tag, and the device details for all devices with that tag are exported to a csv file with the name of the tag.

BulkTagActionsToDevices.ps1 - This script will take an input of serial numbers, converts them to device IDs. It queries a list of all Tags in the environment, the user selects the Tag to add the devices to and it adds the Tag in AirWatch for each of those devices.

These PowerShell scripts are PowerShell Core (PS 6) compliant and were written with Visual Studio Code on a Mac.

They have been tested on Windows and Mac, but should also run on Linux.

Setup: I am assuming you have a working way to run PowerShell scripts. If you need to set up your environment, check out this Getting Started post by Ashley McGlone

  • These scripts take a config file, which houses the API Host, API key and Organization Group ID for your AirWatch environment. A sample file has been included, just remove the name sample and replace with your values. Name this file AirWatchConfig.json. Git will ignore this file.
{
    "groupid" : 1234,
    "awtenantcode" : "apikey",
    "host" : "host.domain.tld"
}
  • The BulkTagActionsToDevices script takes an input of serial numbers from a Serials.csv file. Sample Included.

Author

Releases

No releases published

Packages

No packages published