For this exercise, we are going to have to use the Active Directory module of PowerShell. You will need to execute this in a PowerShell session or ISE running on a Windows Server 2008 R2 server or a Windows 7 client with RSAT installed. Import-Module ActiveDirectory I have already set up a security group called Astronauts_GG. The members of this group are Neil Armstrong, Gus Grissom, Sally Ride, and David Wolf . Out next step is to be able to enumerate all the members of this group. To do this, type: Get-ADGroupMember –Identity Astronauts_GG You will see each user object listed for each member of the group. Specifying the logon hours is going to be a bit more complex. Let’s take a look at the logon hours for a user from Active Directory Users and Computers. Right click a user account and select Properties Click the Account tab. Now click the Logon Hours… button. Below is an image of the logon hours graphic: ...
Welcome to the blogsite of MCTExpert. I am a Microsoft Certified Trainer. Here you will find the real questions that are asked to me by my students.