I started with this: ' List Propertie
I started with this:
' List Properties value information in SSAS.
' Example to run:
' CScript.exe GetSSASProperties.vbs /ServerName:opmgrdw1
' On 64bit environment run instead of CScript.exe run c:\windows\syswow64\cscript.exe
Dim ServerName
Set Arguments = WScript.Arguments.Named
ServerName = Arguments.Item("ServerName")
Property = Arguments.Item("Property")
DIM StateOfObject
StateOfObject = Array("Processed","PartiallyProcessed","Unprocessed")
Dim oServer, oProperties, Value
set oServer = CreateObject("Microsoft.AnalysisServices.Server")
oServer.Connect(ServerName)
WScript.Echo "===== SSAS information" & ServerName
For Each oProperty in oServer.Property
WScript.Echo "Property : " & oProperty.Name
WScript.Echo "value : " & StateOfObject(oProperty.Value)
WScript.Echo ""
WScript.Quit(0)
Next
but getting an error:
C:\Users\dominiqued\Desktop\GetSSASProperties.vbs(16, 1) Microsoft VBScript runt
ime error: ActiveX component can't create object: 'Microsoft.AnalysisServices.Se
rver'
Thnaks,
Dom