Answered show directly command help

  • Thursday, February 07, 2013 3:50 PM
     
     

    hello 

    I want to Show directly command help in a text file , but i cant do it . for example for servermanagercmd command ::

    c:\>servermanagercmd -query > c:\Srv-Mgr-Query.txt

    c:\>Srv-Mgr-Query.txt

    insted of this command  i want when i type c:\>servermanagercmd -query and press enter directly open a notepad with Query of servermanager Role installed 

    Thanks

All Replies

  • Thursday, February 07, 2013 3:56 PM
     
     Answered Has Code

    Not somewhere I can test it right now, but your script would be something like:

    Servermanagercmd -query | Out-File c:\Srv-Mgr-Query.txt

    Start c:\Srv-Mgr-Query.txt