Comment on PowerShell and MongoDB by Doug
Thanks for posting it Mike. I may have a small MongoDB project and this will shortcut my work. You’ve made us collectively smarter. One of the ideas I like about using MongoDB/RavenDB is I can get...
View ArticleComment on Get-EventLog and Get-WMIObject by Ross
This is totally backed up by my experience. Using a simple test query and both methods, the difference is startling - Get-WMIobject: 109ms Get-Eventlog: 4.294 secs If you have several servers to query...
View ArticleComment on My new favorite cmdlet: set-strictmode by mike Mitchell
This doesn’t protect against this type of error: $myVariable = “first value” $myVaraible = “second value” $myVariable this prints first value — not the expected “second value”. When I found that psh...
View ArticleComment on My new favorite cmdlet: set-strictmode by mike
It might be nice if there was a switch that required declarations (e.g. with new-variable) in the current scope. Nonetheless, set-strictmode does catch a lot of things that would get missed.
View ArticleComment on My new favorite cmdlet: set-strictmode by mike Mitchell
Yea — set-strictmode is better than nothing, and I don’t want to sound ungrateful… but it seems to me to be such a fundamental component in an industrial strength scripting language and I’m surprised...
View ArticleComment on PowerShell Station issues by mike
This looks like a good solution to the wordpress backup issue: http://www.mikeyd.com.au/projects/wordpress-backup-to-dropbox/
View ArticleComment on PowerShell’s Problem with Return by Jeffery Hicks
This is a topic that trips up a lot of people moving to PowerShell and I think it hits those with developer backgrounds harder. I tell students when writing functions to think of writing objects to the...
View ArticleComment on Importing Modules using -AsCustomObject by Jay
Your comments are closed on http://powershellstation.com/2010/04/09/checking-a-field-for-null-in-powershell/ I have a question that I think is a rather simple one-off of that post: What if your SQL...
View ArticleComment on Importing Modules using -AsCustomObject by mike
This is a common misunderstanding. NULL in database terms is an indicator that a value (in a column on a row) is either missing or somehow not applicable. How As such, the is-null function I defined...
View ArticleComment on Speeding up Powershell Webcast by Dr. Tobias Weltner by Episode...
[...] Speeding up PowerShell Webcast by Dr. Tobias Weltner [...]
View ArticleComment on A PowerShell Puzzler by mike
This is really strange. I just logged into several servers (and a couple of laptops) running various OSes and versions of PowerShell and I got the exact same behavior in all of them, starting with...
View ArticleComment on PowerShell-Specific Code Smells: Building output using += by mike
A couple of points. First, I don’t see any difference in writing tools for the command-line and for automated scripts. I try to write all of my tools the same way and can use them from either place....
View ArticleComment on A PowerShell Puzzler by mike
By the way, I really do appreciate you taking the time to comment on this. I’m not sure why I’m seeing different things in my PowerShell sessions than you are. Personally, I’d like it to be a bug...
View ArticleComment on PowerShell-Specific Code Smells: Building output using += by...
I’ll admit, I’ve never actually used return in Powershell before, as I learned different (and I believe better) ways to do it before learning it exists. My apologies if I’m misrepresenting what it...
View ArticleComment on PowerShell-Specific Code Smells: Building output using += by...
I don’t think I said that quite right, so let me clarify: I believe everything should be written for reuse and as generalized as possible. Something I’m having an automated script do, however, may...
View ArticleComment on It’s 10 O’Clock. Do you know where your servers are? by Stephen Owen
This is actually a really great idea. It never occurred to me to write a function to encapsulate my organizations various servers. It would be pretty easy to set a standard by which the function could...
View ArticleComment on A PowerShell Puzzler by Trevor Sullivan
I got the same result as Laurel – no objects were sent to the “success” output stream, and I received an error.
View ArticleComment on A PowerShell Puzzler by mike
Can you post the OS and PowerShell version you’re running and a screenshot? I’m really confused by this since I haven’t found an environment where I don’t get the result I described here. Also, to make...
View ArticleComment on A PowerShell Puzzler by mike
Can you reply with the OS and PowerShell version # that you’re using? Can you post a screenshot? I’m really confused since I haven’t found an environment that doesn’t behave as I’ve described here. As...
View ArticleComment on A PowerShell Puzzler by mike
Never mind. I realized (by looking at the screenshots I took of the various systems) that I somehow missed the “$services=” when I copied the command around. So I’m troubled that I wasn’t paying...
View Article
More Pages to Explore .....