To use this feature, first open the Active Directory Administrative Center (ADAC) on your Windows Server 2012-based Domain Controller, your Windows Server 2012-based Management Server or Windows 8-based Management workstation with the Remote Server Administration Tools (RSAT) installed.
In the right bottom corner of the Active Directory Administrative Center screen, click on the up arrow in the bar called "Windows PowerShell History". This flicks up a the Active Directory PowerShell History pane. The two screenshots below show the difference between the History viewer opened (right) and closed (left):
Now, when I would create a user, I would see the equivalent of the PowerShell steps involved to do so in the PowerShell History viewer:
As you can clearly, there is minimum of four PowerShell commands involved in creating a user account. If, for instance, you would enable accidental deletion protection, that would amount to a fifth step. Another notable thing is the absence of passwords in the PowerShell History Viewer. Passwords are all filtered out for security purposes.
At the top of the PowerShell History Viewer, there's a Search field, four commands labeled Copy, Start Task, End Task and Clear All, along with a check box called Show All and the inevitable Help link. Here's what they do:
- Search
Within the Search field, you can search in the PowerShell History to find a command. You can insert the first few letters of a Cmdlet and it will show you all the Cmdlets starting with these letters. You cannot search through entered values like first names. - Copy
Use this command to copy out selected Cmdlets. You can copy multiple Cmdlets at once by holding down the Ctrl and/or Shift buttons while making your selection. - Start Task and End Task
These two commands can be used to group a series of Cmdlets together for easy copying. You can give tasks meaningful names - Clear All
This clears the entire history of PowerShell commands in the PowerShell History Viewer. - Show All
This checkbox switches between showing only commands manipulating objects (off) and showing all commands, including the commands to browse around in the Active Directory Administrative Console (on). By default, this check box is off to allow for greater overview.
No comments:
Post a Comment