Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request-SqlDscReportServerDatabaseRightsScript: New command proposal #2019

Open
johlju opened this issue May 5, 2024 · 0 comments
Open

Request-SqlDscReportServerDatabaseRightsScript: New command proposal #2019

johlju opened this issue May 5, 2024 · 0 comments
Labels
command proposal The issue is proposing to add a new command to the module. help wanted The issue is up for grabs for anyone in the community.

Comments

@johlju
Copy link
Member

johlju commented May 5, 2024

Command proposal

Command for returning a database rights script that can later be run on a SQL Server Database Engine instance for a specific account.

Could use the code here:

Write-Verbose -Message "Generate database rights script on $DatabaseServerName\$DatabaseInstanceName for database '$reportingServicesDatabaseName' and user '$reportingServicesServiceAccountUserName'."
$invokeRsCimMethodParameters = @{
CimInstance = $reportingServicesData.Configuration
MethodName = 'GenerateDatabaseRightsScript'
Arguments = @{
DatabaseName = $reportingServicesDatabaseName
UserName = $reportingServicesServiceAccountUserName
IsRemote = $false
IsWindowsUser = $true
}
}
$reportingServicesDatabaseRightsScript = Invoke-RsCimMethod @invokeRsCimMethodParameters

Proposed parameters

Parameter Mandatory Data type Description Default value Allowed values
ParameterName Yes String Detailed description None None

Special considerations or limitations

None.

@johlju johlju added help wanted The issue is up for grabs for anyone in the community. command proposal The issue is proposing to add a new command to the module. labels May 5, 2024
@johlju johlju changed the title Request-SqlDscRSDatabaseRightsScript: New command proposal Request-SqlDsceportServerDatabaseRightsScript: New command proposal May 5, 2024
@johlju johlju changed the title Request-SqlDsceportServerDatabaseRightsScript: New command proposal Request-SqlDscReportServerDatabaseRightsScript: New command proposal May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command proposal The issue is proposing to add a new command to the module. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

1 participant