Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit df3a288

Browse files
Made addinitional changes to complete Parameter name change.
Adjusted >PARAMETER & Help items to reflact all changes. Also made parameter change to New-RsDataSource command as requested.
1 parent 36e7f5f commit df3a288

File tree

7 files changed

+23
-25
lines changed

7 files changed

+23
-25
lines changed

‎Functions/CatalogItems/Get-RsFolderContent.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function Get-RsFolderContent
2121
Report server proxy to use.
2222
Has to be provided if ReportServerUri is not provided.
2323
24-
.PARAMETER Path
25-
Path to folder.
24+
.PARAMETER RsFolder
25+
Path to folder on SSRS instance.
2626
2727
.PARAMETER Recurse
2828
Recursively list subfolders with content.

‎Functions/CatalogItems/New-RsDataSource.ps1‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function New-RsDataSource
1919
.PARAMETER Proxy
2020
Specify the Proxy to use when communicating with Reporting Services server. If Proxy is not specified, connection to Report Server will be created using ReportServerUri, ReportServerUsername and ReportServerPassword.
2121
22-
.PARAMETER Destination
22+
.PARAMETER RsFolder
2323
Specify the location where the data source should be created at
2424
2525
.PARAMETER Name
@@ -53,43 +53,43 @@ function New-RsDataSource
5353
Specify whether to overwrite data source if an existing data source with same name exists at the specified destination
5454
5555
.EXAMPLE
56-
New-RsDataSource -Destination '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'None'
56+
New-RsDataSource -RsFolder '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'None'
5757
Description
5858
-----------
5959
This command will establish a connection to the Report Server located at http://localhost/reportserver using current user's credentials and create a new SQL Server data source called 'My Data Source' at the root folder. When connecting to this data source, it will use not specify any credentials.
6060
6161
.EXAMPLE
62-
New-RsDataSource -Destination '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Integrated'
62+
New-RsDataSource -RsFolder '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Integrated'
6363
Description
6464
-----------
6565
This command will establish a connection to the Report Server located at http://localhost/reportserver using current user's credentials and create a new SQL Server data source called 'My Data Source' at the root folder. When connecting to this data source, it will assume current user's identity.
6666
6767
.EXAMPLE
68-
New-RsDataSource -Destination '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Prompt' -Prompt 'Please enter your username and password'
68+
New-RsDataSource -RsFolder '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Prompt' -Prompt 'Please enter your username and password'
6969
Description
7070
-----------
7171
This command will establish a connection to the Report Server located at http://localhost/reportserver using current user's credentials and create a new SQL Server data source called 'My Data Source' at the root folder. When connecting to this data source, it will prompt user for Database credentials.
7272
7373
.EXAMPLE
74-
New-RsDataSource -Destination '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Prompt' -Prompt 'Please enter your username and password' -WindowsCredentials
74+
New-RsDataSource -RsFolder '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Prompt' -Prompt 'Please enter your username and password' -WindowsCredentials
7575
Description
7676
-----------
7777
This command will establish a connection to the Report Server located at http://localhost/reportserver using current user's credentials and create a new SQL Server data source called 'My Data Source' at the root folder. When connecting to this data source, it will prompt user for Windows credentials.
7878
7979
.EXAMPLE
80-
New-RsDataSource -Destination '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Store' -DatasourceCredentials 'sa' -ImpersonateUser
80+
New-RsDataSource -RsFolder '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Store' -DatasourceCredentials 'sa' -ImpersonateUser
8181
Description
8282
-----------
8383
This command will establish a connection to the Report Server located at http://localhost/reportserver using current user's credentials and create a new SQL Server data source called 'My Data Source' at the root folder. When connecting to this data source, the specified credentials will be treated as Database credentials.
8484
8585
.EXAMPLE
86-
New-RsDataSource -Destination '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Store' -DatasourceCredentials 'sa' -ImpersonateUser -WindowsCredentials
86+
New-RsDataSource -RsFolder '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'Store' -DatasourceCredentials 'sa' -ImpersonateUser -WindowsCredentials
8787
Description
8888
-----------
8989
This command will establish a connection to the Report Server located at http://localhost/reportserver using current user's credentials and create a new SQL Server data source called 'My Data Source' at the root folder. When connecting to this data source, the specified credentials will be treated as Windows credentials.
9090
9191
.EXAMPLE
92-
New-RsDataSource -Destination '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'None' -Overwrite
92+
New-RsDataSource -RsFolder '/' -Name 'My Data Source' -Extension 'SQL' -ConnectionString 'Data Source=.;Initial Catalog=MyDb;' -CredentialRetrieval 'None' -Overwrite
9393
Description
9494
-----------
9595
This command will establish a connection to the Report Server located at http://localhost/reportserver using current user's credentials and create a new SQL Server data source called 'My Data Source' at the root folder. If data source already exists, it will be overwriten.
@@ -106,9 +106,10 @@ function New-RsDataSource
106106

107107
$Proxy,
108108

109-
[Parameter(Mandatory=$True)]
109+
[Alias('Destination')]
110+
[Parameter(Mandatory=$True,ValueFromPipeline = $true,ValueFromPipelinebyPropertyname = $true)]
110111
[string]
111-
$Destination,
112+
$RsFolder,
112113

113114
[Parameter(Mandatory=$True)]
114115
[string]
@@ -212,7 +213,7 @@ function New-RsDataSource
212213
try
213214
{
214215
Write-Verbose "Creating data source..."
215-
$Proxy.CreateDataSource($Name, $Destination, $Overwrite, $datasource, $null)
216+
$Proxy.CreateDataSource($Name, $RsFolder, $Overwrite, $datasource, $null)
216217
Write-Information "Data source created successfully!"
217218
}
218219
catch

‎Functions/CatalogItems/Out-RsCatalogItem.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
Report server proxy to use.
2222
Has to be provided if ReportServerUri is not provided.
2323
24-
.PARAMETER Path
25-
Path to catalog item to download.
24+
.PARAMETER RsFolder
25+
Path to catalog item in SSRS to download.
2626
2727
.PARAMETER Destination
2828
Folder to download catalog item to.

‎Functions/CatalogItems/Out-RsFolderContent.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
.PARAMETER Recurse
2424
Recursively download subfolders.
2525
26-
.PARAMETER Path
26+
.PARAMETER RsFolder
2727
Path to folder on report server to download catalog items from.
2828
2929
.PARAMETER Destination
30-
Folder to download catalog items to.
30+
Folder path on disk to download catalog items to.
3131
3232
.EXAMPLE
3333
Out-RsFolderContent -ReportServerUri http://localhost/reportserver_sql2012 -RsFolder /MonthlyReports -Destination C:\reports\MonthlyReports

‎Functions/CatalogItems/Remove-RsCatalogItem.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function Remove-RsCatalogItem
1919
.PARAMETER Proxy
2020
Specify the Proxy to use when communicating with Reporting Services server. If Proxy is not specified, connection to Report Server will be created using ReportServerUri, ReportServerUsername and ReportServerPassword.
2121
22-
.PARAMETER Path
23-
Specify the path of the catalog item to remove.
22+
.PARAMETER RsFolder
23+
Specify the RsFolder path of the catalog item to remove.
2424
2525
.EXAMPLE
2626
Remove-RsCatalogItem -ReportServerUri http://localhost/ReportServer -RsFolder /monthlyreports

‎Functions/CatalogItems/Write-RsCatalogItem.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.PARAMETER Path
2424
Path to item to upload on disk.
2525
26-
.PARAMETER Destination
26+
.PARAMETER RsFolder
2727
Folder on reportserver to upload the item to.
2828
2929
.PARAMETER override

‎Functions/CatalogItems/Write-RsFolderContent.ps1‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
.PARAMETER Path
2424
Path to folder which contains items to upload on disk.
2525
26-
.PARAMETER DestinationFolder
26+
.PARAMETER RsFolder
2727
Folder on reportserver to upload the item to.
2828
2929
.EXAMPLE
@@ -67,9 +67,6 @@ function Write-RsFolderContent()
6767
{
6868
throw "$Path is not a folder"
6969
}
70-
71-
# Write-Verbose "Creating folder $RsFolder"
72-
# $Proxy.CreateFolder($sourceFolder.Name, $Destination, $null) | Out-Null
7370

7471
if($Recurse) { $items = Get-ChildItem $Path -Recurse } else { $items = Get-ChildItem $Path }
7572
foreach($item in $items)
@@ -109,7 +106,7 @@ function Write-RsFolderContent()
109106
$parentFolder = $RsFolder + $relativePath
110107
}
111108

112-
Write-RsCatalogItem -proxy $Proxy -Path $item.FullName -Destination $parentFolder
109+
Write-RsCatalogItem -proxy $Proxy -Path $item.FullName -RsFolder $parentFolder
113110
}
114111
}
115112
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /