Search Wiki:
Project Description
A PowerShell provider for SQL Server Analysis Services. It implements all the interfaces required to enable you to navigate an SSAS server like a drive.

Currently the provider is a fairly thin wrapper over the AMO object model. The aim is to extend the object model to make easy to work with SSAS from the command line and to also add a number of useful cmdlets to make certain tasks easier.

Introduction to PowerSSAS
PowerSSAS release announcement - this is currently the best overview of what powerSSAS has to offer.

Installation Instructions
The current version comes with a full installer, once it is installed you just need to add the snapin to your session and you are off. The following example will load the provider and create a drive in powershell called "ssas:" that is connect to the default Analysis Services instance on the localhost.

PS > add-pssnapin powerSSAS
PS > new-psdrive ssas powerSSAS localhost 


You can then type "ssas:" to navigate to the drive and start using "dir" and "cd" to naviagate around like you would on a file system.

CmdLets

Example Scripts
  • Getting a list of active sessions
PS > get-ASsession localhost 

  • Getting a list of active connections
PS > get-ASconnection localhost 


more Example Scripts
Last edited Jun 20 at 1:14 AM  by dgosbell, version 12
Comments
kskistad wrote  Mar 1 at 7:31 PM  
Shouldn't the example above be "new-psdrive" instead of "add-psdrive" ? Also, I couldn't get this to work with SSAS 2008...

dgosbell wrote  Jun 20 at 1:11 AM  
Yes, it should be new-psdrive, thanks for that. Sorry for not replying sooner. I subscribe to an rss feed for the site and I just found out that the only thing that this feed does not include is comments on the wiki <grrr>. The source code does compile and work with SSAS 2008 so it will release a version that works with it. I will have to look into it and see if I can make a dll that will work with both or whether I need to make a separate 2008 version.

Updating...