"Extract" Powershell script based on roles installed ?

jibbajabbajibbajabba Member Posts: 4,317 ■■■■■■■■□□
Anyone know a way to extract the necessary powershell script based on roles and features installed on 2008R2 ? So you basically install roles and features via the UI but then get the necessary powershell command for future referernce ?
My own knowledge base made public: http://open902.com :p


  • ZartanasaurusZartanasaurus Member Posts: 2,008
    If I understand what you're asking...

    get-module -list will show you the modules that you can import based on the roles and features you've installed.

    gcm (get-command) -mod modulename will show you the commands from that module after you import it.

    Oh, you can install features via Powershell with the servermanager module. No need to use the GUI. :)
    Currently reading:
    IPSec VPN Design 44%
    Mastering VMWare vSphere 5​ 42.8%
Sign In or Register to comment.