Skip to end of metadata
Go to start of metadata

Status

May 16, 2019 – Need to operate on the Groups API using PowerShell? The information on this page may not be the way to proceed. Email help@uw.edu or join the groups-users@uw.edu list to inquire about newer PowerShell libraries that operate against the v3 API. We're in the process of updating this page or creating a GitHub repository for new libraries. 

There are many PowerShell scripts and functions represented below. In most cases, these will work together. For those scripts which have a function in them, if you plan to use the script as a standalone script (instead of in combination with others), you may need to uncomment the last line to call the function within the script.

General tips:

  • Make sure you have a certificate from the UW CA in your local machine certificate store. You can ask the GWS service to add support for InCommon certs via iam-support AT uw.edu.
  • Make sure you've gone to the private key of your certificate and granted the user(s) which need access permissions. Do NOT rely on the local administrator group for permissions. This code will hang if you don't do this.
  • Make sure you start your PowerShell session with "Run as Administrator". You will get odd errors if you don't do this.
  • Some of these scripts have odd behaviors around whether you fully quote the parameters or not–especially if you call the functions. Try using double quotes on the parameters if you run into funny behavior.

Sample PowerShell Scripts