Browse by Tags
POWERSHELL ANALYZER RC1 RELEASED
http://powershellanalyzer.com/ PowerShell Analyzer is a rich interactive environment for Windows PowerShell. Its goal is to be the PowerShell host of choice for IT professionals and system administrators. It has all the typical editor and IDE functionality that you would expect when working on a modern language, but it focuses on the real time interactive experience as if you were at the console, helping...
Simplify Group Policy Administration with Windows PowerShell
http://www.microsoft.com/technet/technetmag/issues/2007/05/GroupPolicy/default.aspx
Great PowerShell Resource
Marty List posted a great list of PowerShell resource today on the forums. Check them out->http://www.myitforum.com/forums/m_146849/mpage_1/key_/tm.htm#146849 Here's some Windows PowerShell links that I've found useful: Channel9 WindowsPowerShellWiki http://channel9.msdn.com/wiki/default.aspx/Channel9.WindowsPowerShellWiki Convert VBScript to Windows PowerShell http://www.microsoft.com/technet/scriptcenter...
How to set the title of my Console Window
The PowerShell team's blog posted this great script on their blog today. http://blogs.msdn.com/powershell/archive/2006/07/17/How_to_I_set_the_title_of_my_Console_Window.aspx If you are not subscribed to the PowerShell Team blog and you are using or thinking about using PowerShell...where have you been. They are awesome!! Subscribe now to it...plus don't forget to subscribe to mine. (I know, shameless...
Use a WaitKey Function in Windows PowerShell
Got this from TechNet Script Center Use a WaitKey Function in Windows PowerShell Submitted By: Greg Lyon Language: Windows PowerShell Description: Sample script that adds a WaitKey function to a Windows PowerShell script. Script Code function WaitKey ( [string] $strPrompt = "Press any key to continue ... ") { Write-Host Write-Host $strPrompt -NoNewline [Console]::ReadKey($true) > $null Write-Host...
PowerShell and Exit Codes
Today on the PowerShell email lists a question was brought up how to find the exit code of a program. The solution: $LastExitCode Here is an example I found online: function CheckExitCode { param ([string]$failureMessage, [int[]]$successCodes = @(0), $finallyScript=$null) $res = $successCodes -contains $LastExitCode if ($res.Length -eq 0) { write-error "ERROR CODE ${LastExitCode}: $failureMessage"...
Powershell Remote
http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=ce09cdaf-7da2-4f1c-bed3-f8cb35de5aea What is PowerShell Remoting Windows PowerShell® (codename Monad) is next generation of command line interface in Microsoft Windows platform. Powershell does not provide remote access functionality in version 1. It is planned for version 2. PowerShell Remoting is a light-weighted server-client application which...
Backup Files Using Windows PowerShell
http://www.microsoft.com/technet/scriptcenter/csc/scripts/backup/backup/cscbk013.mspx Backup Files Using Windows PowerShell Submitted By: Greg Lyon Language: Windows PowerShell Description: Backs up files using Windows PowerShell. Script Code Backup Files Using Windows PowerShell # BackupFiles.ps1 # Greg Lyon - July 2006 # ----------------------------------------------------- function BackupFolder...
PowerShell Resources
Powershell Portal: http://www.microsoft.com/powershell Powershell Team Blog: http://blogs.msdn.com/powershell/ Scripts.readify.net: http://scripts.readify.net/ Jeffrey Hicks’ Blog (former coworker!): http://jdhitsolutions.blogspot.com/ Keith Hill’s Blog: http://keithhill.spaces.msn.com/PersonalSpace.aspx?_c01_blogpart=blogmgmt&_c=blogpart Powershell for Fun (includes Powershell remoting tools!...
PowerShell - Finding the static methods of a class
Jeffrey Snover posted a great post on the PowerShell Blog In the previous entry, it showed how you could use the static method GetHostAddresses of the [System.Net.Dns] class to resolve a hostname. This begs the question, how do you find the static methods of a class. There are 2 answers to this: 1) SDK documentation. (remember the trick here - type the name of the class you want and the term "Members...
PowerShell - resolve a hostname into an IP Address
Jeffrey Snover posted this on the Powershell blog Wei Wu provided a nice one liner in response to a query in our NewsGroup: Microsoft.Public.Windows.PowerShell about how to resolve a hostname into an IP Address: PS> [ System.Net.Dns]::GetHostAddresses(" www.msn.com ") IPAddressToString : 207.68.173.76 Address : 1286423759 AddressFamily : InterNetwork ScopeId : IsIPv6Multicast : False IsIPv6LinkLocal...
PowerShell and Migrations
http://blogs.technet.com/collabtools/archive/2006/06/23/438504.aspx Good article on PowerShell and Migrations. More links on Powershell Powershell blog http://blogs.msdn.com/powershell/ A video showing an old tool of mine in action… mms://wm.microsoft.com/ms/exchange/2007/Automation_And_Reporting_With_The_Exchange_Management_Shell_300k.wmv And a couple of additional blogs showing off some Exchange...
PowerShell documentation
http://www.microsoft.com/downloads/details.aspx?FamilyId=2B0BBFCD-0797-4083-A817-5E6A054A85C9&displaylang=en
PowerShell Scripting Contest
Exchange Server 2007 Scripting Contest Activate the PowerShell – And Enter to Win a Trip to the Exchange Server 2007 Launch! If you’re looking for the deal of a lifetime then you’ve come to the right place: write a one-line script for managing Microsoft Exchange Server 2007, and you’ll have a chance at winning a trip to – well, wherever the Microsoft Exchange Server 2007 Launch extravaganza will be...
Powershell Podcasts
ScriptingAnswers.com has a number of scripting related podcasts at: http://feeds.feedburner.com/ScriptinganswerscomAudioNetwork
IDE for creating and modifying Powershell scripts with Intellisense built in.
These guys have developed an IDE for creating and modifying Powershell scripts with Intellisense built in. http://powershell.com/ Thanks to Tim Martin for finding this site!!
PowerShell Grammer
I posted this on the forums, but thought I'd highlight on the blogs as well. http://www.myitforum.com/forums/tm.asp?m=134274&p=1&tmode=1
PowerShell Training
I posted this on the forums but I figured I'd highlight on my blog as well. Desktop Engineer is offering PowerShell Training.
New Category added to my blog
I added a new PowerShell Category to my blog. Now I just need some more scripts to post in there...
Can you map a drive with PowerShell?
Sure you can...I got this from someone, sorry I don't remember who. $net = $(New-Object -Com WScript.Network) $net.MapNetworkDrive("s:", "\\server\path") You can confirm that your drive mapped with get-wmiobject win32_networkconnection
Powershell to get Computer name, model, manufactures, memory, etc.
Here is an example, which discovers your computer's name, model, manufactures and memory, type: get-wmiobject win32_computersystem If there is another machine on your subnet try these two commands: get-wmiobject -computername othermachine win32_computersystem