Tag Archives: function

Updated Function: Get-SQLInstance

One function of mine that I use quite a bit to get information about SQL servers is Get-SQLInstance not only because it provides most of the information that I am looking for but it also is a great way to … Continue reading

Posted in powershell | Tagged , , , | 2 Comments

Port Checking and Implementing Pipeline Support in Functions on MCPMag

I’ve had a couple of other articles come out on MCPMag with one that deals with port checking using PowerShell while the latest one talks about implementing pipeline support in a PowerShell function. Check them out and let me know … Continue reading

Posted in powershell | Tagged , , , , | Leave a comment

Scripting Games 2013: Naming Conventions for Functions and Scripts

My last post of the night. While reviewing scripts, I have seen multiple entries that are something like the following: Move-LogFiles Move-ApplicationLogs Move-Files MoveFile What is the problem with this you ask? Well, for starters, there are no plural nouns … Continue reading

Posted in 2013 Scripting Games Judges Notes, Scripting Games 2013, Tips | Tagged , , , | 2 Comments

Updating An Existing Get-ProductKey Function

A couple of days ago I received my daily PowerTips email from PowerShell.com talking about how to get the Windows Product key via PowerShell from your local system. The code is simple and to the point to look for and … Continue reading

Posted in powershell, scripts | Tagged , , | 57 Comments