Giter Club home page Giter Club logo

awpowershell's Introduction

awpowershell

AirWatch Powershell API Scripts

awdeviceget.ps1

  • Can take arguments (not required)

    1. -configFile '\path\to\filename'
    • The configuration file. Defaults to current location. Filename is awupdaterc.ps1 as default. (e.g. .\awupdaterc.ps1)

    • Used to change the location of your configuration file as needed.

    1. -outputFile '\path\to\filename'
    • The csv file to store the information. Defaults to current location. Filename is device_list.csv. (e.g. .\device_list.csv)
  • Downloads the current device list from your AirWatch environment.

  • Nothing is required for this script.

awgetgroups.ps1

  • Can take arguments (not required)

    1. -configFile '\path\to\filename'
    • The configuration file. Defaults to current lcoation. Filename is awupdaterc.ps1 as default. (e.g. .\awupdaterc.ps1)

    • Used to change the location of your configuration file as needed.

    1. -outputFile '\path\to\filename'
    • The csv file to store the information. Defaults to current lcoation. Filename is group_list.csv. (e.g. .\group_list.csv)
  • Downloads the current group list from your AirWatch environment.

  • Nothing is required for this script.

awtagget.ps1

  • Required Arguments

    1. -id #organizationalid
    • The organization's identifier, this is not what aw will show you so you need to find it.
  • Optional Arguments

    1. -configFile '\path\to\filename'
    • The configuration file. Defaults to current location. Filename is awupdaterc.ps1 as default. (e.g. .\awupdaterc.ps1)
    1. -outputFile '\path\to\filename'
    • The csv file to store the information. Defaults to current location. Filename is tag_list.csv. (e.g. .\tag_list.csv)
  • Gets all the tags in your AirWatch environment.

awupdaterc.ps1

  • Not a "functional" script, just stores configuration information.

  • Items contained

    1. $userName | This is the user to authenticate to AirWatch API

    2. $password | This is the password to the user for authenticating.

    3. $tenantAPIKey | This is the API key from the AirWatch console.

    4. $endpointURL | This is the DNS address to get ot your AirWatch Instance. (e.g. https://airwatchconsole.awmdm.com/)

    5. $Proxy | This is the address/port pair for proxy as required.

    6. $UserAgent | UserAgent string to pass in.

basicauth.ps1

  • Not a "functional" script, just creates a common file for the Get-BasicUserForAuth function used in other scripts.

  • As the name suggests, it just get's the basic authentication for the user/password pair.

buildheaders.ps1

  • Not a "functional" script, just creates a common file for the Build-Headers function used in other scripts.

  • As the name of the file suggests, it is what builds our headers to send to the AW API Console.

getobjectmembers.ps1

  • Not a "functional" script, just creates a common file for the Get-ObjectMembers function. This is not used currently but could be useful later on.

processlocationadds.ps1

  • Required Arguments

    1. -deviceCSV '\path\to\filename'
    • The device file to iterate through. (See awdeviceget.ps1)
    1. -locationCSV '\path\to\filename'
    • The location/tag list. (See awtagget.ps1)
    1. -baseCSV '\path\to\filename
    • The file we're attempting to process information for/on.
  • Optional Arguments

    1. -configFile '\path\to\filename'
    • The configuration file. Defaults to current location. Filename is awupdaterc.ps1 as default. (e.g. .\awupdaterc.ps1)
    1. -outputFile '\path\to\filename'
    • The csv file to store the information. Defaults to current location. Filename is update_tags.csv. (e.g. .\update_tags.csv)
  • If you add the -Verbose argument it will output much more information.

  • This script will create a failure csv in .\failureItems.csv

  • If LocationName, LocationID, LocationType items are blank, failure = could not locate matching tag in airwatch locationCSV file. (Device labeled headers will also be blank)

  • If Device labeled headers are blank, device could not be found in airwatch.

processlocationremoves.ps1

  • Required Arguments

    1. -deviceCSV '\path\to\filename'
    • The device file to iterate through. (See awdeviceget.ps1)
    1. -locationCSV '\path\to\filename'
    • The location/tag list. (See awtagget.ps1)
    1. -baseCSV '\path\to\filename
    • The file we're attempting to process information for/on.
  • Optional Arguments

    1. -configFile '\path\to\filename'
    • The configuration file. Defaults to current location. Filename is awupdaterc.ps1 as default. (e.g. .\awupdaterc.ps1)
    1. -outputFile '\path\to\filename'
    • The csv file to store the information. Defaults to current location. Filename is remove_tags.csv. (e.g. .\remove_tags.csv)
  • If you add the -Verbose argument it will output much more information.

  • This script will create a failure csv in .\failureRemItems.csv

  • If LocationName, LocationID, LocationType items are blank, failure = could not locate matching tag in airwatch locationCSV file. (Device labeled headers will also be blank)

  • If Device labeled headers are blank, device could not be found in airwatch.

awpowershell's People

Contributors

mastacontrola avatar

Stargazers

Robert Rosiles Careers avatar Hansel Dsouza avatar Justin Coffi avatar  avatar Sebastien Lessard avatar  avatar TL avatar LincolnHedgehog avatar John Capehart avatar

Watchers

 avatar Mark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.