Tag Archives: PowerShell

Constructors Brief Overview

This is a quick overview on constructors. Constructors instantiate objects and are created in a similar fashion across different languages.
Continue reading

Advertisements

Command Line & PowerShell Cmdlet List

This is just a random list of command line commands I wanted to double check where available in PowerShell. I ran accress a couple 6of commands that didn’t seem to be supported but there is always a another way to do.  Read the man if you want additional information or use Google, either works.
Continue reading

Administrator’s Guide to Powershell Remoting

This article on remoting in PowerShell was an awesome read, defintaly worth the bookmark.  Fan-Out was one of my favorite parts.

http://powershell.com/cs/media/p/7257.aspx

Dancing Kirby via PowerShell

Dancing Kirby’s are always awesome.  This one was orginaly created by the PowerShell Guy.

Here is a link his github to grab his source code.

https://github.com/MrPowerScripts/PowerScripts/blob/master/Fun/PowershellPet.ps1

 

He also did a video walk through you can watch here or at youtube.

[youtube:http://www.youtube.com/watch?feature=player_detailpage&v=KTOJdj4v4KE%5D
Continue reading

PowerShell Cheat Sheet – Part One

This part of cheat sheet I’ve putting together for myself.

Continue reading

PowerShell Pipelining Example

Alright pipelining in PowerShell proved to be helpful tonight. Here a quick example to get you combining multiple cmdlets.

First of lets look at a single cmdlet. Type this into your PowerShell terminal.

get-process *

That cmdlet uses a wild card that will list off all process on your local machine. Now lets add another cmdlet into the mix.

get-process * | stop-process

This isn’t a very hard syntax to decode, if you hadn’t notice yet, the pipe command is the “|” character.

Essential what we would be doing is using a stop-process command on each process. Not vary smart thing to do but you can also do something like a foreach loop and target specific processes to either stop or start them with a single line of code.

The built in help has some good infomation on pipelines, type this into your shell.

get-help about_pipeline

Additional help can be found from the PowerShell Team,
http://blogs.msdn.com/powershell/

Active Directory Administration with Windows PowerShell

Here are three good TechNet articles on using PowerShell with Microsoft’s Active Directory.
Continue reading