Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Featured Posts
Dreaming in PowerShell
Don Jones
Code MarkUp Tool
Directory
July 2011 - The Lonely Administrator
Share
|
Recent Posts
Friday Fun: Get Latest PowerShell Scripts
Introducing the ScriptingHelp PowerShell Module
PowerShell Scripting with [ValidateNotNullorEmpty]
SQL Saturday 129 Session Material
Friday Fun: PowerShell ISE Function Finder
Archives
May 2012 (7)
April 2012 (18)
March 2012 (2)
February 2012 (10)
January 2012 (12)
December 2011 (10)
November 2011 (15)
October 2011 (12)
September 2011 (4)
August 2011 (9)
July 2011 (8)
June 2011 (6)
May 2011 (10)
April 2011 (8)
Tags
Best Practices
CommandLine
Conferences
DeepDive
Friday Fun
FridayFun
Function
functions
Get-WMIObject
Google Plus
Jobs
new-object
objects
parameter
Pipeline
PowerShell
PowerShell ISE
PowerShell v2.0
ScriptBlock
Scripting
Training
Validation
Windows Server
WMI
Write-Host
View more
Sort by:
Most Recent
|
Most Viewed
|
Most Commented
Friday Fun Re-Run Last Command
Ok, I’ll be the first to admit you might not find a production use for this tip, but that’s what makes it fun. Interactively, you can always hit the up arrow to get the last command in your command buffer. … Continue reading →...
Published
Fri, Jul 29 2011 9:00 AM
by
The Lonely Administrator
Filed under:
PowerShell
Get Shared Resource
I was poking around WMI the other day in PowerShell and was intrigued by the Win32_Share class. This is a great way to find out what items are shared on a server such as printers and folders, although it’s not … Continue reading → Read...
Published
Tue, Jul 12 2011 8:10 AM
by
The Lonely Administrator
Filed under:
Scripting
,
WMI
,
PowerShell
,
Function
,
PowerShell v2.0
,
Get-WMIObject
Friday Fun PowerShell PowerBall Numbers
Like many of you, I dream about hitting the lottery and retiring to live the good life. Unfortunately I rarely play so I guess my odds are winning are pretty slim. But for the latest installment of Friday Fun, I … Continue reading → Read More...
Published
Fri, Jul 08 2011 11:37 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
Friday Fun
,
Get-Random
,
FridayFun
,
Do
,
New-Ojbect
Find Non System Service Accounts with PowerShell and WMI
As easy as Get-Service is to use in PowerShell, it has one limitation for IT Pros: it can’t show you what account the service is running under. In old school terms, “What is the service account?” Fortunately you can get … Continue...
Published
Tue, Jul 05 2011 8:51 AM
by
The Lonely Administrator
Filed under:
WMI
,
PowerShell
,
PowerShell v2.0
,
Service
Get Top Level Folder Usage
This is too long to tweet, even written as a one liner. But this will search a folder for top level subfolders and return the file usage for each. $folder="S:\" dir $folder | where {$_.psIscontainer} | foreach { $stat...
Published
Mon, Jul 04 2011 10:02 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
PowerShell v2.0
,
Get-ChildItem;Measure-Object
,
FileSystem
Get Properties with Values
One of my nuisance issues when using WMI with Windows PowerShell, is that when looking at all properties I have to wade though many that have no value. I’d prefer to only view properties that have a populated value. Here’s … Continue...
Published
Mon, Jul 04 2011 9:43 AM
by
The Lonely Administrator
Filed under:
WMI
,
PowerShell
,
PowerShell v2.0
,
ScriptBlock
,
Where-Object
,
Select-Object
ScriptingGeek Savings This Weekend
This weekend you can save some money on gear and tees from ScriptingGeek.com. Coupon Code: StarSavings Discount: $5 off any order! Coupon Code: BrightSavings Discount: $10 off subtotal of $50+ Coupon Code: SpangledSavings Discount: $30 off subtotal of...
Published
Fri, Jul 01 2011 11:26 AM
by
The Lonely Administrator
Filed under:
PowerShell
,
ScriptingGeek
Get Local Administrators with WMI and PowerShell
Earlier this week I was helping someone out on a problem working with the local administrators group. There are a variety of ways to enumerate the members of a local group. The code he was using involved WMI. I hadn’t … Continue reading →...
Published
Fri, Jul 01 2011 8:55 AM
by
The Lonely Administrator
Filed under:
functions
,
Scripting
,
WMI
,
PowerShell
,
PowerShell v2.0
,
Get-WMIObject
,
Invoke-Command
,
Jobs
,
Administrators
Copyright 2011 PowerShell.com. All rights reserved.