Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Wednesday, August 1, 2012

Use the PowerShell History from Active Directory Administrative Center

The Active Directory Administrative Center is a graphical interface that creates PowerShell commands.  This can come in handy while writing your own scripts so you can see how something was done.

  • Open the Active Directory Administration Center.
  • Perform a few administrative actions.
  • At the bottom of the windows, click Windows PowerShell History.

image

  • Right click the command that you are interested in and click Copy.

image

Open the PowerShell ISE and paste the code in the Script pane.

image

Now you can learn from it, manipulate it, and use it in your code.

No comments: