none
double click is not working in power-shell 2008 r2 server RRS feed

  • Question

  • Hi Team,

    double click is not working in power-shell 2008 r2 server.

    this is my script,

    Get-Date > E:\output.txt
    echo BadQueue >> E:\output.txt
    Get-ChildItem -Path C:\MDaemon\Queues\Bad\ -recurse -include *.MSG | Measure-Object | %{$_.Count} >> E:\output.txt
    echo HoldingQueue >> E:\output.txt
    Get-ChildItem -Path C:\MDaemon\Queues\Holding\ -recurse -include *.MSG | Measure-Object | %{$_.Count} >> E:\output.txt
    echo InboundQueue >> E:\output.txt
    Get-ChildItem -Path C:\MDaemon\Queues\Inbound\ -recurse -include *.MSG | Measure-Object | %{$_.Count} >> E:\output.txt
    echo LanQueue >> E:\output.txt
    Get-ChildItem -Path C:\MDaemon\Queues\Lan\ -recurse -include *.MSG | Measure-Object | %{$_.Count} >> E:\output.txt
    echo LocalQueue >> E:\output.txt
    Get-ChildItem -Path C:\MDaemon\Queues\Local\ -recurse -include *.MSG | Measure-Object | %{$_.Count} >> E:\output.txt
    echo RemoteQueue >> E:\output.txt
    Get-ChildItem -Path C:\MDaemon\Queues\Remote\* -include *.MSG | Measure-Object | %{$_.Count} >> E:\output.txt
    echo RetryQueue >> E:\output.txt
    Get-ChildItem -Path C:\MDaemon\Queues\Remote\Retry -recurse -include *.MSG | Measure-Object | %{$_.Count} >> E:\output.txt
    echo E:Drivespace >> E:\output.txt
    Get-PSDrive E | Select-Object @{ E={$_.Used/1GB}; L='Used' }, @{ E={$_.Free/1GB}; L='Free' } >> E:\output.txt
    $body = Get-Content -Path E:\output.txt | Out-String 


    Microsoft technet

    • Moved by Bill_Stewart Monday, April 30, 2018 9:06 PM Unanswerable drive-by question
    Thursday, February 15, 2018 9:09 AM

All replies

  • There is no double-click in PowerShell.


    \_(ツ)_/

    Thursday, February 15, 2018 9:26 AM
  • My query is im unable to run the task schedule in 2008 r2 server. 

    Microsoft technet

    Thursday, February 15, 2018 9:37 AM
  • Contact MS Support for help with that.  This is not a customer support forum.


    \_(ツ)_/

    Thursday, February 15, 2018 10:34 AM
  • i have one power shell file. manually i can run but if i click the double click unable to get the result can u please suggest me...

    Microsoft technet

    Thursday, February 15, 2018 10:36 AM
  • There is n double click for PowerShell scripts.  There is no other answer and no way around this.   It is not implemented for security reasons.

    Please carefully review the following links to set your expectation of technical forums.

    Start by learning the basics of PowerShell. Learn PowerShell  


    \_(ツ)_/

    Thursday, February 15, 2018 10:39 AM