Microsoft PowerShell - Lindows?

Discussion in 'other software & services' started by Mrkvonic, Jun 20, 2009.

Thread Status:
Not open for further replies.
  1. Mrkvonic

    Mrkvonic Linux Systems Expert

    May 9, 2005
    Here's something that you may like / may amuse you.

    Let's begin with a question: what is the operating system known for using the ps command line utility for displaying the list of all processes running, ls for listing files in a directory or the clear command clearing the monitor screen of all output?

    If you answered: Linux or alike, then your answer is only 50% right. :)

  2. lodore

    lodore Registered Member

    Jun 22, 2006
    Nice article.
    you can do some very nice things with power shell such as showing all running services in a nice list and save it to a html.
    for example
    get-service | where-object {$_.status -eq "running"} | convertTo-html | set-content f:\Users\lodore\runningservices.htm

    want the last 4 entries application of the event log:

    get-eventlog application -newest 4

    want to stop a service:
    stop-service (type name here) or
    stop-service -displayname (insert display name of service here)

    remember that on vista/7 you will have to run powershell as administrator to be able to use some of the commands.
    the above is just the start.
    I havent had much time recently to play around with it but the above is what ive found out so far.
Thread Status:
Not open for further replies.