DamienTaylor2021
Programmer
Hi All,
Have written a powershell script to assist me in automatically deploying my SSRS scripts. It most works, but I really want to automate the creation of credentials against each datasource as well.
First thought was to update the .rds file dynamically but have been unable to find description or examples of the fields that I would need to add to my .rds file:
<?xml version="1.0" encoding="utf-8"?>
<RptDataSource xmlns:xsi=" xmlns:xsd=" Name="MYDATASOURCENAME">
<ConnectionProperties>
<Extension>SQL</Extension>
<ConnectString>Data Source=MYSERVERNAME;Initial Catalog=MYDBNAME</ConnectString>
<UserName>tempusername</UserName>
<Password>temppassword</Password>
<Enabled>True</Enabled>
</ConnectionProperties>
</RptDataSource>
Was hoping to update the "TYPE OF CREDENTIALS" field to "Database Username and Password"
and then update the username and password fields under that
Impersonate = FALSE
However no matter what I do here it always deploys as "without credentials"
I have also tried to find syntax for using the Powershell "Write-RsFolderContent" command, but unable to find anything.
Anybody able to advise on a solution?
Thanks,
Damien
Have written a powershell script to assist me in automatically deploying my SSRS scripts. It most works, but I really want to automate the creation of credentials against each datasource as well.
First thought was to update the .rds file dynamically but have been unable to find description or examples of the fields that I would need to add to my .rds file:
<?xml version="1.0" encoding="utf-8"?>
<RptDataSource xmlns:xsi=" xmlns:xsd=" Name="MYDATASOURCENAME">
<ConnectionProperties>
<Extension>SQL</Extension>
<ConnectString>Data Source=MYSERVERNAME;Initial Catalog=MYDBNAME</ConnectString>
<UserName>tempusername</UserName>
<Password>temppassword</Password>
<Enabled>True</Enabled>
</ConnectionProperties>
</RptDataSource>
Was hoping to update the "TYPE OF CREDENTIALS" field to "Database Username and Password"
and then update the username and password fields under that
Impersonate = FALSE
However no matter what I do here it always deploys as "without credentials"
I have also tried to find syntax for using the Powershell "Write-RsFolderContent" command, but unable to find anything.
Anybody able to advise on a solution?
Thanks,
Damien