SSAS - how to script the General settings? where are them stored? how can they be queried? I believe I am an administrator on server BIREPLON1 SSAS as you can see on the picture below.



These security permissions can easily be scripted.

this is an example:
apologies foe the horizontal scroll, but that's how it is.

&lt;Batch xmlns='http://schemas.microsoft.com/analysisservices/2003/engine' Transaction='true'&gt;
    &lt;Alter AllowCreate="true" ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"&gt;
        &lt;Object /&gt;
        &lt;ObjectDefinition&gt;
            &lt;Server xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400"&gt;
                &lt;ID&gt;SASBIDEV01&lt;/ID&gt;
                &lt;Name&gt;SASBIDEV01&lt;/Name&gt;
            &lt;/Server&gt;
        &lt;/ObjectDefinition&gt;
    &lt;/Alter&gt;
    &lt;Alter AllowCreate="true" ObjectExpansion="ObjectProperties" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"&gt;
        &lt;Object&gt;
            &lt;RoleID&gt;Administrators&lt;/RoleID&gt;
        &lt;/Object&gt;
        &lt;ObjectDefinition&gt;
            &lt;Role xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400"&gt;
                &lt;ID&gt;Administrators&lt;/ID&gt;
                &lt;Name&gt;Administrators&lt;/Name&gt;
                &lt;Members&gt;
                    &lt;Member&gt;
                        &lt;Name&gt;mycompany.CO.UK\BIUsersDEV&lt;/Name&gt;
                    &lt;/Member&gt;
                &lt;/Members&gt;
            &lt;/Role&gt;
        &lt;/ObjectDefinition&gt;
    &lt;/Alter&gt;
&lt;/Batch&gt;


Is there a way to script the settings found on the "General" tab, as seen on the picture below?

otherwise,

where are these permissions stored? 

how can they be queried?
The settings that you are looking for are stored in msmdsrv.ini

\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Config\msmdsrv.ini

or &lt;your Analysis service custom path&gt;\OLAP\Config\msmdsrv.ini

Note: Above path applies for Default installation.

Its a good practice to create a backup of that file, if you are changing any config value.