Share via


Wiki Life: Geek

Hello Friends,

Today I'm sharing a very cool bit of Geek information.

Look! Exclusive: Music in Powershell!!!

I was very impressed; it is very Geek.

Open PowerShell and see for yourself; copy and paste from below, run the commands, and enjoy the Music.

Music 1:

The Imperial March (Star Wars)

[console]::beep(440,500)
[console]::beep(440,500)
[console]::beep(440,500)
[console]::beep(349,350)
[console]::beep(523,150)
[console]::beep(440,500)
[console]::beep(349,350)
[console]::beep(523,150)
[console]::beep(440,1000)
[console]::beep(659,500)
[console]::beep(659,500)
[console]::beep(659,500)
[console]::beep(698,350)
[console]::beep(523,150)
[console]::beep(415,500)
[console]::beep(349,350)
[console]::beep(523,150)
[console]::beep(440,1000)

Music 2:

“Mission Impossible”:

[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(932,150)
Start-Sleep -m 150
[console]::beep(1047,150)
Start-Sleep -m 150
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(699,150)
Start-Sleep -m 150
[console]::beep(740,150)
Start-Sleep -m 150
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(932,150)
Start-Sleep -m 150
[console]::beep(1047,150)
Start-Sleep -m 150
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(699,150)
Start-Sleep -m 150
[console]::beep(740,150)
Start-Sleep -m 150
[console]::beep(932,150)
[console]::beep(784,150)
[console]::beep(587,1200)
Start-Sleep -m 75
[console]::beep(932,150)
[console]::beep(784,150)
[console]::beep(554,1200)
Start-Sleep -m 75
[console]::beep(932,150)
[console]::beep(784,150)
[console]::beep(523,1200)
Start-Sleep -m 150
[console]::beep(466,150)
[console]::beep(523,150)

Execute in PowerShell; see, that's cool.

 

UPDATE: We made this into a Wiki article - "Music from the Command Line": Performed by Powershell

 

Follow:
Twitter: @tnwikiday
Facebook: TechNet wiki Day

@WikiNinjas @WikiNinjas_BR

Luiz Henrique Lima Campos
Microsoft MVP,MCT,MCP,MCC,MCDST,MCSA,MCSA+M,MCTS e MCITP
Moderador no Microsoft Answers e TechNet Forums e Membro do TechNet Wiki Community Council
Visite o meu blog: https://luizhenriquelima.wordpress.com
Me siga no twitter: @luizlima

Comments

  • Anonymous
    November 13, 2013
    I had to copy the code into a *.ps1 to run, but very clever.

  • Anonymous
    November 13, 2013
    Very cool !! :o) I imagine myselft putting that in a computer startup script, hehehe

  • Anonymous
    November 13, 2013
    This is hilarious! You should list these in a Wiki article too, so people can add some!

  • Anonymous
    November 13, 2013
    Ah ah ! @Yagmoth : you should try ! :)

  • Anonymous
    November 13, 2013
    The comment has been removed

  • Anonymous
    November 14, 2013
    Lol, that's funny! Oh PowerShell, is there anything thou can't do?!

  • Anonymous
    November 14, 2013
    Funny Luiz! Excellent!

  • Anonymous
    November 14, 2013
    Very cool ! PowerShell orchestra.  =D

  • Anonymous
    November 14, 2013
    @Benoit, Yes, or with a GPO to an entire IT's park, it could be funny  :-P

  • Anonymous
    November 14, 2013
    The comment has been removed

  • Anonymous
    November 15, 2013
    Thanks, Peter! I did a basic grammar pass and added in a link to Peter's article!

  • Anonymous
    July 17, 2014
    Congratulations