In this post we're going to take a look at making your own cmdlet, something I'm sure you'll use a fair bit once the POSH bug really takes over , first lets look at my basic template where all my custom cmdlets are spawned from; Code: function My-Cmdlet { [CmdletBinding()] param ( ) Begin { } Process { } End { } } As you can see there is not ...
function My-Cmdlet { [CmdletBinding()] param ( ) Begin { } Process { } End { } }
I got my first IT job while studying games design at university. It was a bit of part-time cash but ultimately ended up changing my entire career path. Just over a year from finishing university I'm in a very good paying first-line role for a fantastic company in London! It has happened so quickly though; from gaming/computer hobbyist to Helpdesk Administrator and all by on-the-job training and picking up information from books or online. I haven't received or studied ...
Check out my blog for regular updates as i lab my way thru the CCNP, First ROUTE http://bring-on-the-ccnp.blogspot.com/
Thought I would be the first one to make a little blog post . Today I’m going to write about a little bit of code that I’ve been using in my last couple of Powershell scripts, what we’ll do is connect onto a SQL server, manipulate some data and send it back if needed, so let’s begin. First we’ll declare some variables for the SQL server, database name, and query; Code: $SQLServer = "SQL01" $DBName = "Database01" $query = "SELECT * ...
$SQLServer = "SQL01" $DBName = "Database01" $query = "SELECT *
Updated 17-Nov-2011 at 05:53 PM by ThomasMc