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 4bbaca0

Browse files
Added an example and process { } for minimal pipeline support
Added an example to show how to use the command and what would happen. Added process { } for minimal pipeline support of multiple objects being sent.
1 parent cbf2405 commit 4bbaca0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎Functions/CatalogItems/Remove-RsCatalogItem.ps1‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ function Remove-RsCatalogItem
2121
2222
.PARAMETER Path
2323
Specify the path of the catalog item to remove.
24+
25+
.EXAMPLE
26+
Remove-RsCatalogItem -ReportServerUri http://localhost/ReportServer -Path /monthlyreports
27+
28+
Description
29+
-----------
30+
Removes the monthlyreports folder, located directly at the root of the SSRS instance, and all objects below it.
31+
2432
#>
2533

2634
[cmdletbinding()]
@@ -33,10 +41,11 @@ function Remove-RsCatalogItem
3341

3442
$Proxy,
3543

36-
[Parameter(Mandatory=$True)]
44+
[Parameter(Mandatory=$True,ValueFromPipeline=$true,ValueFromPipelinebyPropertyname=$true)]
3745
[string]
3846
$Path
3947
)
48+
process {
4049

4150
if(-not $Proxy)
4251
{
@@ -54,4 +63,5 @@ function Remove-RsCatalogItem
5463
Write-Error "Exception occurred while deleting catalog item! $($_.Exception.Message)"
5564
break
5665
}
66+
}
5767
}

0 commit comments

Comments
(0)

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