-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function Get-ExchangeVirtualDirectories { | ||
<# | ||
.SYNOPSIS | ||
Get all Exchange Server virtual directories on the current server. | ||
.DESCRIPTION | ||
A fun way to find every cmdlet that gets Exchange virtual directories and then pipe that list | ||
to run it on the current server. | ||
#> | ||
foreach ( $command in ( (Get-Command "Get*VirtualDirectory" -CommandType Function).Name ) ) { | ||
& $command -server $env:COMPUTERNAME | Format-List Name,InternalUrl,ExternalUrl | ||
} | ||
} |