Recently, the customer has a requirement to query all the members of the Distribution Group. It is easy to use PS. How can this problem be solved? The Code is as follows: POWERSHELL passed in exchange2010! # Define the log output path # determine whether the Log Path exists. If not, create a directory # create a Log Path # output all distribution groups to a variable
Recently, the customer has a requirement to query all the members of the Distribution Group. It is easy to use PS. How can this problem be solved? The Code is as follows: POWERSHELL passed in exchange 2010! # Define the log output path # determine whether the Log Path exists. If not, create a directory # create a Log Path # output all distribution groups to a variable
Recently, the customer has a requirement to query all the members of the Distribution Group. It is easy to use PS. How can this problem be solved? The Code is as follows:
This POWERSHELL is passed in exchange 2010!
# Define the log output path
# Determine whether the Log Path exists. If not, create a directory.
# Creating a Log Path
# Output all distribution groups to a variable
# Change Command Execution path
# Cyclic Distribution Group
# Output contact group members and only output names
# Define the file exported by the output contact group members