Output cmdlets in powershell v2
PS> get-command out-* | ft name
Name
----
out-default
out-file
out-gridview
out-host
out-null
out-printer
out-string
Out-Null: discards command output similar to $null redirect
Out-File: redirects command output to a file
Out-Printer: sends formatted output to the default printer
Out-gridview: opens a formatted table in a modern windows interface
The Power of Powershell
The Power behind any good Windows Administrator
Thursday, January 5, 2012
Thursday, December 29, 2011
Popular Powershell Add-ons
Popular Powershell Add-on Utilities
Name | Purpose | Author | Download | Price |
Power Gui | Graphical editor | Quest Software | http://www.quest.com/powergui-freeware/ | Free |
Power Gui Pro | Graphical Editor | Quest Software | http://www.quest.com/powerguipro/ | $199.00 |
ActiveRoles Management Shell | Active Directory Command add-on | Quest Software | http://www.quest.com/powershell/activeroles-server.aspx | Free |
Powershell WMI Explorer | WMI tool | MoW | http://thepowershellguy.com/blogs/posh/pages/powershell-wmi-explorer.aspx | Free |
PSHyperV | Hyper-V command Add-on | Jamesone | http://pshyperv.codeplex.com/ | Free |
Power Prompt Here | Context menu ad-on | Scott Hanselman | http://www.hanselman.com/blog/IntroducingPowerShellPromptHere.aspx | Free |
Powershell tools for IT admins | Misc Tools add-on | Christophe Cremon | http://powershell.codeplex.com/ | Free |
PoSh Tip: Powershell remoteing
have you ever run into a situation where you needed to run some quick code on a remote system but were to lazy to use mstsc.Exe to remote to the system. will with powershell v2 Lazy admin can becom more productive with Invoke-Command cmdlet, and if your like me and hate typing the alias for this command is ICM. It allows you to Invoke a block of code on a remote system. Awasome !!! here is a quick example of who this cam be used to check the status of an Edge server in your perimeter network
Function Status-Edge01{
Function Status-Edge01{
imc Edge01 {
add-pssnapin Microsoft.Exchange.Management.PowerShell.Admin -ea 0
test-servicehealth
get-queue
}
}
Wednesday, December 28, 2011
GeekTip: Shutdown Networked computers
Ever wonder how System administrators restart IT assets on there network so quickly after a Microsoft Patch Tuesday? Well here is one of the tricks of the trade. Open up your command line interpreter such as command prompt or Powershell. you can also use the windows run command to run "shutdown.exe /i" this opens the shutdown executable in interactive mode allowing you to restart or shutdown any system you have access to on your network! How bad ass is that.
Subscribe to:
Posts (Atom)