Tag: scripts

Getting started with Powershell

Posted by – September 4, 2010

Powershell is an awesome scripting language for Windows machines, last Sunday I wrote a small script to gather computer monitor info stored on windows registry, this is one of the possibilities behind the power of powershell, you can do much more than it.

Here’s a sample script:

1
2
3
4
5
6
7
8
[CmdletBinding(DefaultParameterSetName="Name")]
param (
    [Parameter(Mandatory = $TRUE, ParameterSetName="Name", HelpMessage="Your name")]
    [String]
    $Name
)

write-output "Hello $Name"

More

Share