Geekswithblogs.net
HOME
ARCHIVES
CONTACT
LOGIN
I, Computer
Disclaimer: http://geekswithblogs.net/marcde/archive/2011/07/01/disclaimer.aspx
News
My Stats
Posts - 61
Comments - 45
Trackbacks - 0
Tag Cloud
Click
database
domain
environment
Exchange
Mailbox
management
manager
Microsoft
Open
outlook
Powershell
Select
Server
servers
system
technology
tools
users
Windows
more tags...
Recent Comments
DNS round robin would be your only option. And tha...
by Marc
Hi, Great article. I'm in the middle of setting up...
by Joel
I never reply to these things, but this was too aw...
by DH
I appreciate the site, really helped me troublesho...
by Brandon Henderson
Hi Shah,Appreciate the input but that will invalid...
by Marc
Recent Posts
Updates to the exchange server calculators!
Exchange 2010: Generating test data for your lab environment
Exchange 2010: Populating your test environment with users
Office 365 support issues?
Exchange 2013 CU1 is live!
Article Categories
Build Guides
Powershell Scripts
Archives
June 2013 (1)
May 2013 (3)
April 2013 (1)
March 2013 (4)
February 2013 (2)
December 2012 (9)
October 2012 (3)
September 2012 (2)
February 2012 (5)
January 2012 (9)
December 2011 (5)
November 2011 (5)
August 2011 (3)
July 2011 (9)
Post Categories
General
Lync
Exchange
Platforms
News
Powershell
Build Guides
Deployment
Blogs
Concurrency Blog
MS Exchange Team Blog
NTPRO VM blog
Pharyngula Science Blog
Virtual Architect Blog
Virtualizationteam Blog
Exchange
Exchange MCM 2010 pre-reading list
How to create an activesync device report
MS Exchange Wiki
Forums
Storage
Tools
AD RAP Tool
EXCH RAP Tool
Travel
Aer Lingus
Irish Ferries
Virtualization
Hyper-V Architecture
Hyper-V Survival guide
Web comics
CTRL-ALT-DEL
Dilbert
Dr McNinja
Questionable Content
Sinfest
XKCD
<< Powershell: Connect to Exchange server powershell
|
Home
|
Installing and configuring Windows Server Update Services (WSUS) >>
Powershell: If statements dependent on installed exchange role
Something I need to keep for usage in the future:
$hostname=hostname
If (get-exchangeserver $hostname | where {$_.isClientAccessServer -eq $true})
{
} else {
}
If (get-exchangeserver $hostname | where {$_.isHubTransportServer -eq $true})
{
} else {
}
If (get-exchangeserver $hostname | where {$_.isMailboxServer -eq $true})
{
} else {
}
If (get-exchangeserver $hostname | where {$_.isUnifiedMessagingServer -eq $true})
{
} else {
}
If (get-exchangeserver $hostname | where {$_.isEdgeServer -eq $true})
{
} else {
}
Share This Post:
Short Url:
http://wblo.gs/dOp
Posted On Wednesday, December 5, 2012 12:59 PM
Filed Under [
General
Powershell
]
Comments
No comments posted yet.
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
Enter the code shown above
Remember Me?