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

电脑路径:

D:\soft\AD\Quest_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:windir\System32\WindowsPowerShell\v1.0\profile.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

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

最新文章

  1. Hadoop入门学习笔记---part2
  2. 查找二维数组list[][]中的最大的子数组的和
  3. C#的自定义滚动条
  4. VFP调用SOAPTOOLKIT 低级API
  5. .NET/ASP.NET 4.5 Bundle组件(捆绑、缩小静态文件)
  6. vim python设置
  7. centos 6 initctl
  8. ASP.NET 运行时详解 揭开请求过程神秘面纱
  9. 动态加载DLL函数GetProcAddress错误
  10. Android ActionBar应用实战,高仿微信主界面的设计
  11. RabbitMQ系列教程之五:主题(Topic)
  12. 【Mysql】MySQL与Oracle的大小写问题
  13. Python模块学习系列
  14. spring如何控制事务
  15. MATLAB-卡尔曼滤波简单运用示例
  16. 来吧学学.Net Core之项目文件简介及配置文件与IOC的使用
  17. 关于Java多线程的线程同步和线程通信的一些小问题(顺便分享几篇高质量的博文)
  18. PDF 补丁丁 0.6.0.3413 版发布(修复提取图片问题,增加自动检查软件更新功能)
  19. rt-thread中线程内置定时器的作用 ---
  20. arc 092C 2D Plane 2N Points

热门文章

  1. spine findBone
  2. excel批量加前后缀
  3. 【项目总结】:怎样做一个牛逼的Team leader?
  4. Selenium操作之滚动条
  5. 某某水表-M1卡数据算法分析
  6. NGUI3.7.4实现循环拖动
  7. 推广Facebook技巧
  8. Android最流行的网络框架(原创)
  9. AJax与Jsonp跨域访问
  10. 小程序WXML 使用小结