Latest Guides - Published
  • Add LDAP Login to PHP Webpage
    php logo

    So you have an LDAP server and you'd like to add authentication to a PHP based website. Well you have came to the right place! I started hosting my own mail server (Don't ask) and used LDAP for authentication so it made sense to create a website with LDAP and webmail/roundcube as well. I will go over step by step instructions on how to get this set up including code snippets. You will need to modify the code to fit your environment but my guide should get you most of the way there!

    Read more …

  • Powershell SecretStore - Safely Use Credentials or API keys within Script
    Powershell Command Window

    When using powershell for scripting, you may need to store credentials within the script. This is insecure especially when dealing with an API key. The preferred way to deal with this is using the powershell SecretStore module. I will go over how to install this module and configure it to allow you to store credentials within a script in an easy and secure way.

    Read more …

  • Schedule a PowerShell Script with SQL Server Agent
    Robot entering powershell event on calendar

    There are many ways to schedule a PowerShell script to run within windows. The most common way is to use task scheduler however if your PowerShell script is invoking SQL commands, I find it is best to use the SQL server agent to schedule the job. This keeps all of your database based scripts in one place. This is very important when it comes time to upgrade or migrate the server. I will go over how to schedule the script in SQL Server 2016 as well as add email notifications and output to a text file.

    Read more …