• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Exchange 2007 Quick Start Guide

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> Management >> Exchange 2007 Quick Start Guide Page: [1]
Login
Message << Older Topic   Newer Topic >>
Exchange 2007 Quick Start Guide - 20.Jul.2006 5:31:25 PM   
BobbyGRoberts

 

Posts: 23
Joined: 18.Jul.2006
Status: offline
Monad/PowerShell Quick Start Guide






Common Task Actions



These verbs are supported by almost all tasks and are associated with a specific task action. 
 



new-


Create a new instance of something (config setting, database, etc.)



remove-


Remove the existence of something (config setting, database, etc.)
All remove- tasks support parameters -whatif (to see what this task will do if performed) and -confirm (to enable confirmation prompting of task)



set-


Modify specific settings of an object (changing the alias of a contact)



get-


Query for a specific object or all / a subset of a type of object (i.e. a specified mailbox, all mailbox users, or mailbox users under a domain)



 


 



important Parameters



–identity (–id)


Identifies the unique object for the task (used mostly with remove, set, and get tasks)
Example: get-mailbox –identity user1 queries for user1’s mailbox



 


 



Tips & Tricks



get-command


Query for all tasks that can be executed in E12



get-command *keyword*


Query for tasks that have keyword in the command



get-task | get-member


Retrieve all properties and methods of task



get-task | format-list


Display the output of the query in a formatted table



help task


Retrieve help information for any task in E12
Example: “help get-mailbox”



Get-task > file.txt


Export outputs of task to file.txt



 


 



RECIPIENTS



 


 



Mailbox Management



*New-mailbox –id contoso\user1
  –database D


Mailbox enable user contoso\user1 by creating a mailbox under database D. (Note: this task will change to “enable-mailbox”, and the parameter “–id” will change to “–identity”)



*Disconnect-mailbox –id user1


Mailbox disable user1 by removing the associated mailbox (Note: this task will change to “disable-mailbox”)



Set-mailbox –id user1 –alias user2


Modify the alias of the mailbox associated with user1 to user2



Get-mailbox


Query for the properties of all mailboxes



Get-mailbox –id user1


Query for user1’s mailbox properties



Get-mailbox –database D


Query for properties of all mailboxes under database D



Get-mailbox –server S


Query for properties of all mailboxes under server S



Get-mailboxStatistics –identity user1


Query for the mailbox statistics of a specific mailbox user1.  Statistics include storage quota and number of items in mailbox.  Note: this task will only work for mailboxes that have been used (i.e. user has logged into the mailbox at least once)



Get-mailboxStatistics –database D


Query for all mailboxes’ statistics under database D.



Get-mailboxStatistics –server S


Query for all mailboxes’ statistics under server S.



Move-Mailbox –distinguishedName
  user1DistinguishedName -TargetServer S
  –TargetStore G –TargetGC GC


Move the mailbox specified by the distinguished name of user1, in this case: user1DistinguishedName, to server S, storage group G, under global container GC



Recipient



Get-recipient


Query for properties of all recipients



Get-recipient –recipientType mailboxUser


Query for a type of recipients (mailboxUser, user, contact, dynamicDL, etc.)



Get-recipient –id user1


Query for a particular recipient user1



Get-recipient –resultsize 100


Query recipients and narrow the results by only returning the first 100 recipients



 


 



STORAGE



 


 



Database Management



*New- MBDatabase -name D  –server S
  –sgname G


Create a new mailbox database named D under server S and storage group G (Note: the noun for all mailbox database related tasks will change from “MBDatabase” to “MailboxDatabase”)



Remove-MBDatabase -name D  –server S
  –sgname G


Remove the mailbox database D under server S and storage group G



Get-MBDatabase


Query for all mailbox databases



Get-MBDatabase –server S
  –sgname G


Query for all mailbox databases under server S and storage group G



Mount-MBDatabase –name D  –server S
  –sgname G


Mount mailbox database D to storage group G under server S



Unmount-MBDatabase –name D  –server S
  –sgname G


Unmount the existing mailbox database D that resides in  storage group G under server S



 


 



Storage Group Management



New-storageGroup -name G -server S


Create a new storage group G under server S



Get-storageGroup


Query for existing storage groups



Remove-storageGroup -name G -server S


Delete the storage group G under server S



 


 



TRANSPORT



 


 



Connector & Delivery



New-sendConnector –name sendC1
  -connectorType toInternet –AddressSpaces
  www.contoso.com –helloDomain
  www.contoso.com


Create a new internet send connector sendC1 by specifying that it is of connector type toInternet.  The associated address space for the send connector is www.contoso.com, and the helloDomain used is www.contoso.com.



Remove-sendConnector –identity
  5579bea6-0dd8-4433-b176-adb4cab7c7


Removes the specified send connector sendC1 by specifying its GUID.  (Note: this task will change and will be able to take the name of the connector sendC1 as identity)



Get-sendConnector


Query the properties of all send connectors



Set-sendConnector –identity 5579bea6-0dd8-4433-b176-adb4cab7c7 –addressSpaces www.microsoft.com


Modify the send connector identified by GUID 5579bea6-0dd8-4433-b176-adb4cab7c7 by changing its address spaces to www.microsoft.com
 



TRANSPORT



 


 



Connector & Delivery (Cont’d)



New-receiveConnector –name receiveC2
  –connectorType fromEnterprise
  –advertisedDomain www.contoso.com
  –remoteIPRanges 192.149.0.1-196.151.0.1


Create a new enterprise receive connector receiveC2 by specifying that is of connector type fromEnterprise.  The associated advertised domain is www.contoso.com, and the remote IP range is 192.149.0.1 to 196.151.0.1.



Remove-receiveConnector –identity
  5579bea6-0dd8-4433-b176-adb4cab7c7


Removes the specified receive connector receiveC2 by specifying its GUID.  (Note: this task will change and will later be able to take the name of the connector as identity)



Get-receiveConnector


Query for the properties of all receive connectors



Set-receiveConnector –identity
  5579bea6-0dd8-4433-b176-adb4cab7c7
  –connectorType fromInternet


Modify the receive connector receiveC2 identified by GUID 5579bea6-0dd8-4433-b176-adb4cab7c7 by changing its connector type to fromInternet



Get-DSNType –connectorType fromInternet
  –DSNAction delay


Query for DSN (Delivery Status Notification) settings for receive connectors from internet, as specified by fromInternet, with the DSN action delay



Set-DSNType –connectorType fromInternet
  –DSNAction delay –errorText “This
  message will be delayed.”


Modify the DSN setting identified with connector type fromInternet and DSN action delay by setting its error text to be “This message will be delayed.”



 


 



Queue



Freeze-queue –identity Q


Stop all messages in queue Q from delivery



Unfreeze-queue –identity Q


Allow stopped queue Q to resume delivery of messages



Get-queue


Query for existing queues



Get-message –identity M


Query for a specific message M



Freeze-message –identity M


Stop a message M  in a queue from delivery



Unfreeze-message –identity M


Allow a stopped message M in a queue to be delivered



Delete-message –identity M


Delete the specified message M



 


 



SPAM Filter



Set-RecipientFilterConfig
  –blockedRecipientList “info@contoso.com”


Modify the recipient filtering configuration for SPAM by adding a blocked recipient “info@contoso.com”



Get-RecipientFilterConfig


Query for recipient filtering configuration, which includes a list of blocked recipients



Set-SenderFilterConfig
 –blockedSendersList “info@contoso.com”


Modify the sender filtering configuration for SPAM by adding a blocked sender “info@contoso.com”



Get-SenderFilterConfig


Query for sender filtering configuration, which includes a list of blocked senders



Add-ContentFilterCustomWord –Phrase
  “SPAM” -Influence badword


Add the phrase “SPAM” to the content filter and treat it as a negative word by specifying its influence to be badword



Add-ContentFilterCustomWord –Phrase 
 “productivity” -Influence goodword


Add the phrase “productivity” to the content filter and treat it as a positive word by specifying its influence to be goodword



Get-ContentFilterCustomWord


Query for all content filtered words



 


 



SPAM Filter (Cont’d)



Add-IPAllowEntry -IPRange 127.1.0.0


Add an allowed IP 127.1.0.0.  The IP mask will default to 255.255.255.255 because it is not specified.



Add-IPAllowEntry –IPRange
  “127.1.0.0(255.255.0.0)”


Add an allowed IP 127.1.0.0 with the specified IP mask of 255.255.0.0



Add-IPAllowEntry -IPRange 127.1.0.0/16


Add an allowed IP 127.1.0.0 with CIDR format 16



Add-IPAllowEntry –IPRange
  127.1.0.0-127.1.255.255


Add an allowed range of IPs.  In this particular case, the IP range is between 127.1.0.0 and 127.1.255.255



Get-IPAllowEntry –identity
  “127.1.0.0(255.255.0.0)”


Query for the information for a specific allowed IP 127.1.0.0 with IP mask 255.255.0.0



Set-IPAllowEntry –Identity 127.1.0.0
  –Comments:Trusted 


Modify an existing allowed IP 127.1.0.0 by specifying  in its comments that it is a trusted IP



Remove-IPAllowEntry –identity 127.1.0.0


Remove an existing allowed IP 127.1.0.0



Remove-IPAllowEntry -RemoveAllEntries:True


Remove all allowed IP entries



Add-IPBlockEntry -IPRange 127.2.0.1


Add the IP 127.2.0.1 to be blocked.  In this case, the IP mask will default to 255.255.255.255 because it is not specified.



Get-IPBlockEntry


Query for information about all blocked IPs



Set-IPBlockEntry –identity 127.2.0.1
  –ExpirationTime:8/15/2005


Modify the expiration time of an existing blocked IP 127.2.0.1 by setting it to expire on August 15th, 2005



Test-IPAllowDeny -IPAddress 127.1.0.0


Test a specified IP address 127.1.0.0 to see whether it is allowed or denied



Add-IPAllowProvider –name provider1
  –lookupDomain www.contoso.com
  –resultType absolute –IPAddressList
  127.1.0.0


Add an IP provider provider1, which is used to verify which IP addresses are allowed.  The lookup domain associated is www.contoso.com, with result type absolute (acceptable result types are bitmask & any), and the IP address list as 127.1.0.0



Get-IPAllowProvider


Query for all allowed IP providers



Add-IPBlockProvider –name provider2
  –lookupDomain www.contoso.com
  –resultType absolute –IPAddressList
  127.2.0.1


Add a IP provider provider2, which is used to verify which IP addresses should be blocked.  The lookup domain associated is www.contoso.com, with absolute as the result type, and the IP address list as 127.2.0.1



Remove-IPBlockProvider –identity provider2


Remove an existing IP provider used to determine blocked IP



Get-senderIDConfig


Query for the sender ID configuration settings that take various actions such as stamping messages or deleting messages depending on whether the sender domain belongs to the listed trusted sites (whether the sender domain is a spoof). 



 


 



SERVER & DEPLOYMENT



 


 



Server Management



Get-server


Queries for all existing servers



Get-server –domain contoso.com


Queries for all servers under domain contoso.com



 


 






 
Post #: 1

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> Management >> Exchange 2007 Quick Start Guide Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter