Author: jbmurphy

  • A second addition to my PowerShell install script

    I added even more functionality in my PowerShell install script (original script, and first update). I wanted the ability to display an informational popup to let the user know what we were up to. The function below takes the text to display from the config xml file and displays it in a windows form, with…

  • An update to my new PowerShell install script

    I needed new functionality in my PowerShell install script (previously mentioned here). I needed the ability to make sure a process is not running, and if it is running, I could prompt the user to close it. The new function takes the process name value from the config xml file (as I mentioned in previos…

  • My new PowerShell install script

    I wanted to write a PowerShell script that can execute common activities involved in deploying software. We require signed PowerShell scripts, so it was not practical to rewrite the script for every piece of software. Instead, I moved the configuration to an XML file. The first function below takes an object (pulled from the XML…

  • SCCM afterbackup.bat

    Our current SCCM backup is targeted to DFS share pointed to our backup server. We dump files to this share and the local files are backed up to tape (really to disk then replicated to tape.) I never sat down and figured out how to get multiple backups rotating in SCCM until I saw this…

  • Finding diffs between clean and modified versions of WordPress

    We have an issue where our developers try to update the core WordPress files. I wanted to find a way to keep them honest. here is my script:

  • Pseudo workflow approval with out SharePoint Workflows.

    I wanted to have a form that a person would submit (for an example a request of some type) and then it would be approved by the appropriate people. I find the built in workflow functionality too limiting and too difficult for users, so this is what I came up with: I would have one…

  • Powershell script to find and run advertisements that are set to run when NoUserLoggedOn

    I have been thinking about how to launch a SCCM package/program before logon. If the user logs on before SCCM executes (like right after a reboot), the NoUserLoggedOn requirement will not be met. GPO software deployment handles this by not allowing the user to log in until the software is installed. What happens if you…

  • WMI query to find if the SCCM client is running a program

    Using PowerShell, this will tell you if the SCCM client is running a program and its state:

  • CentOS: HowTo install ruby, rubygems and passenger for a redmine install

    I like to put my complied software in /opt vs /usr/local. Make sure rpm version is not installed. install ruby: user alternatvies to create sym links: make sure current ruby is set to 1.8.7: /usr/sbin/alternatives –config ruby install rubygems: install gems (No docs): Passenger said I needed to install curl-dev  (yum install curl-devel) install passenger apache…

  • My current WordPress Update Script

    Below is my current WordPress update script. First this script downloads the most recent version and determines which version it is: Next it looks for all wp-config.php files in all the websites to identify which sites have WordPress installed. Then and finds the version from the versions.php script. If the version is not equal to…