-
One of my favorite techniques when using WMI in PowerShell is to pipe an object to Select-Object and select all properties. Try this: get-wmiobject win32_bios | select * It works, but it also gets all of the system properties like … Continue...
-
How would I find out the currently logged on user on a remote machine ? And how can I remotely access another person's HKEY_CURRENT_USER registry hive? Here are some tricks you may want to try... Who's Logged On? To find out who's logged on to another machine, you could use WMI and check...
-
In celebration of Friday the 13th I thought I would offer up a menu of 13 more script blocks. If you missed the first course, you can find the original 13 scrptblocks here. I’m not going to spend a lot … Continue reading → Read More...
-
I see this question often: how can I pass a parameter value for a PSCredential that might be a credential object or it might be a user name? In the past I’ve used code like this: begin { … Continue reading → Read More...
-
A few days ago I saw on question, I think on Facebook, about using PowerShell to find the next available drive letter that could be used for mapping a network drive. Before I show you my approach, let me state … Continue reading → Read More...
-
There is a famous quote often attributed to Jeffrey Snover, “IT Pros love and hate WMI. They love it because there is so much great stuff there. They hate it because it is complex to use”. Not to our surprise, most of the IT Pros and developers we talked to agree with this. This is going...
-
Summary : Learn how to use Windows PowerShell to troubleshoot and repair WMI errors. Microsoft Scripting Guy, Ed Wilson, is here. Tomorrow is the New York City TechStravaganza . The Scripting Wife and I will be there, and we are looking forward to hanging...
-
Summary : Write a Windows PowerShell function to determine the status of time changes to daylight savings time. Microsoft Scripting Guy, Ed Wilson, is here. At the Windows PowerShell User Group meeting in Charlotte, North Carolina, Brian Wilhite talked...
Posted to
Hey, Scripting Guy! Blog
by
Hey, Scripting Guy! Blog : Windows PowerShell
on
02-18-2012
Filed under:
Filed under: Scripting Guy!, Windows PowerShell, operating system, dates and times, basic information, WMI, servers, guest blogger, Service Packs and Hot Fixes, Brian Wilhite
-
I saw a very nice mention on Twitter today where someone had taken an idea of mine and created something practical and in production. It is always nice to hear. The inspiring article was something I worked up that showed … Continue reading →...
-
Summary : The Scripting Wife interrupts Brahms to learn how to use Windows PowerShell to find service accounts and service start modes. Microsoft Scripting Guy, Ed Wilson, is here. One of life’s real pleasures is sitting around a fireplace, listening...
-
Summary : The Scripting Wife needs to get ready for the 2012 Scripting Games, and she uses Windows PowerShell to get hardware info from her laptop. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife and I were in Myrtle Beach , where I was...
Posted to
Hey, Scripting Guy! Blog
by
Hey, Scripting Guy! Blog : Windows PowerShell
on
02-14-2012
Filed under:
Filed under: Scripting Guy!, Windows PowerShell, scripting techniques, hardware, Scripting Wife, WMI, Beginner, 2012 Scripting Games, Desktop Tasks
-
Last month I posted a PowerShell script I called The Morning Report. I received some very nice feedback. One comment was about making it easier to use the script in a pipelined expression. For example, get a list of computers … Continue reading...
-
A few days ago Boe Prox posted some very nifty PowerShell modules for using the title bar as a ticker for RSS feeds like the weather. I thought this was an awesome idea and an easy way to take advantage … Continue reading → Read More...
-
This past weekend I did an online presentation for a friend of mine who teaches for ITT in Omaha, Nebraska. He wanted me to do a brief talk about what PowerShell is and show how to use it, especially for … Continue reading → Read More...
-
I love how easy it is to manage computers with Windows PowerShell. It is a great reporting tool, but often I find people getting locked into one approach. I’m a big believer in flexibility and re-use and using objects in … Continue reading...