Microsoft Office Tutorials and References
In Depth Information
Using the Admin Audit log
PowerShell command for you. The output from the Command Pane should be similar
to the window shown in Figure 9-31.
Figure 9-31
Command Pane showing the
New-DistributionGroup
cmdlet with parameters.
If you had not used the ISE, you would need to know the following syntax of the
command:
New-DistributionGroup -Members admin -Name WestCoastManagers
5.
Use the
Get-Group
cmdlet to verify that the groups have been successfully created.
Figure 9-32 shows the results from the
Get-Group
cmdlet.
Figure 9-32
Results of the
Get-Group
Windows PowerShell cmdlet after adding two new
distribution groups.
Using the Admin Audit log
The
Search-AdminAuditLog
cmdlet allows you to search the contents of the administrator
log. In this exercise, we will use
Search-AdminAuditLog
to search for newly created objects.
In the previous exercise, you created new distribution groups. You can use
Search-Admin-
Auditlog
to find information about these new groups by following these steps:
1.
Start the ISE and establish a
PSSession
if you do not already have one.
2.
In the Command Prompt window, type the following command and press Enter:
Search-AdminAuditLog -Cmdlets New-DistributionGroup
You should see the new distribution groups that were recently created. Your output
should look similar to what is shown in Figure 9-33.
