My Profile Photo

duffney.io


DevOps Engineer | Pluralsight Author | Speaker | Blogger | PowerShell Advocate


  1. Create Jenkins JNLP Scheduled Tasks with PowerShell

    In this post, you will learn how to create a scheduled task with PowerShell that connects a Jenkins slave to the master with JNLP. This is just one of several ways to connect a Jenkins slave to a Jenkins master, but I’ve found it to be the most reliable method. Before I begin I am assuming a few things. I’m assuming you have already added the node to Jenkins and that you’ve copied over the...…


  2. Splatting Parameters Inside Advanced Functions

    In Windows PowerShell terms, splatting is a way of bundling parameters to send to a command. Don Jones 2011 Splatting is most often used when providing parameters and their values to a cmdlet in the form of a hashtable. The main benefit of splatting is that it makes the code more aesthetic. They make it cleaner and easier to read. In this post, you’ll learn how to splat parameters inside advanced functions. Advanced Functions without...…


  3. Run Local Functions Remotely in PowerShell

    Have you ever had functions loaded into your local PowerShell session and needed to run them on a remote system? The typical solution to this problem is to copy the code to the remote system and then load the functions on the remote system to use them. What if I told you it is possible to run functions you have stored on your local machine and execute them remotely with Invoke-Command? This post will teach...…


  4. Connecting to SQL with Visual Studio Code

    Applies to: Visual Studio Code Version 1.3.1 It took me about 6 months but I finally stopped using the PowerShell ISE and now only use Visual Studio Code and the PowerShell console. I’ve been working with SQL a lot and in the middle of writing some T-SQL a thought popped into my head, “I wonder if I can connect to SQL with Visual Studio Code?” As it turns out you can and there is a...…


  5. Windows Event Forwarding for Active Directory Security Logs with DSC

    In this post, I will be teaching you how to configure Windows Event Logs Forwarding for Active Directory Security Logs that are stored on Domain Controllers. This is a real world example of how to use DSC in your environments and showcases the benefits of using DSC. If you are not currently using some logging system, I highly encourage you take the lessons learned here and use them to build a simple logging solution. In...…