none
Windows Server 2012中的powershell历史记录问题? RRS feed

  • 问题

  • 在Windows Server 2012的Active Directory管理中心中有一个新功能,可以查看Powershell的历史记录,可是,为什么我使用Powershell在历史记录中看到的都是这些:

    2014年11月9日 11:22

答案

  • 你好,

    ADAC 是构建在 Windows PowerShell 上的用户界面工具。 在 Windows Server 2012 中,IT 管理员可以利用 ADAC,通过使用 Windows PowerShell 历史记录查看器了解用于 Active Directory cmdlets 的 Windows PowerShell。在用户界面中执行操作时,会在 Windows PowerShell 历史记录查看器中向用户显示相对应的 Windows PowerShell 命令。这样,管理员可以创建自动脚本并减少重复任务,从而提高 IT 工作效率。 另外,此功能还会缩短了解 Windows PowerShell 用于 Active Directory 的时间,使用户修正自动脚本更有信心。

    具体信息可以参考以下文章:

    http://technet.microsoft.com/zh-cn/library/hh831702.aspx

    如果你想监控Powershell运行的历史,你可以用以下命令:

    start-transcript -path c:\transcripts\transcript0.txt  #view the powershell history from the txt file

    停止监控可以用以下命令:

    Stop-Transcript

    Best Regards,

    Anna Wang

    2014年11月10日 3:37
    版主