Hi @Sayanil Datta ,
You are using SSAS cubes (tabular), please refer to below code.
[Reflection.Assembly]::LoadWithPartialName("Microsoft.AnalysisServices")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.AnalysisServices.Tabular");
$SSASServer = New-Object Microsoft.AnalysisServices.Server
$SSASServer = New-Object Microsoft.AnalysisServices.Tabular.Server;
More details, see install-distribute-and-reference-the-tabular-object-model.
Regards,
Zoe
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.