zoukankan      html  css  js  c++  java
  • Quest Active Directory

     

    Get-QADGroupMember命令是Quest Active Directory的命令,必须安装如下包才能使用!

    电脑路径:

    D:softADQuest_Quest-One-ActiveRoles-Management-Shell-for-Active-Directory-x64_160

    下载路径:

    http://www.quest.com/powershell/activeroles-server.aspx.

     

    安装完成后,需要add the snapin to your PowerShell session

    或者add it to your PowerShell profile script like this:

      Add-PSSnapin Quest.ActiveRoles.ADManagement

     

    Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction Stop

     

     

    如何创建PowerShell profiles

    打开Powershell

    test-path $profile

    此时可以得到Powershell Profile的路径,一个Profile是当powershell运行时一同运行的

    new-item -path $profile -itemtype file -force

    notepad $profile

    此时打开

    This will open your personal PowerShell launch profile.  This is where you can add the Quest AD tools to open with your native PowerShell.  Add the following to the .ps1 file and save.

    add-pssnapin quest.activeroles.admanagement

    Now close out of PowerShell and open again, you should now have the Quest AD snap-ins in  your PowerShell.  To test, run

    get-pssnapins

    Now if you really want to get fancy and allow all your PowerShell tools to load these snappins you can remove the add-psssnapin from your profile above and add it to the systems profile.  To do this open up PowerShell and run this line.

    new-item -path $env:windirSystem32WindowsPowerShellv1.0profile.ps1 -itemtype file -force

    This will create a system profile, this will launch for anyone and for any interface on that system.  Now edit the newly created .ps1 file in the SYS32 location above with

     add-pssnapin quest.activeroles.admanagement

    Youre now good to go.  These AD Quest tools are great, no more long WMI scripts with these.  Enjoy!

     

  • 相关阅读:
    django ---解决跨域的问题
    python-isinstance函数
    python每日一学-os模块常用函数
    调用父类方法super
    fiddler小运用-断点
    劝告
    Django model字段
    Jenkins自动化部署前端
    解决react使用antd table组件固定表头后,表头和表体列不对齐以及配置fixed固定左右侧后行高度不对齐
    高德地图判断点的位置是否在浏览器可视区域内
  • 原文地址:https://www.cnblogs.com/thescentedpath/p/QuestActiveDirectory.html
Copyright © 2011-2022 走看看