As part of our build process we utilise NAnt scripts so I thought it would be useful (even just for my own purposes!) to make some notes as I get started with it. Firstly, we are using NAnt 0.90 which last modified in May 2010, it can be download from Continue Reading
Open and close a process with Powershell
Short script to open notepad.exe (can be any process you want to open) on either your local machine or a remote machine and then kill the process. Option 1 C:\PSTools\PsExec.exe cmd /c start notepad.exe Start-Sleep -s 10 C:\PSTools\PsKill.exe -accepteula notepad.exe Option 2 C:\PSTools\PsExec.exe notepad.exe Start-Sleep -s 10 C:\PSTools\PsKill.exe -accepteula notepad.exe Continue Reading
Using Powershell to access Oracle
Before trying to access an Oracle database with Powershell it is necessary to have the Oracle Data Provide for .Net available, the most common way to get this is to install the Oracle client. If you are already interacting with Oracle databases then you will likely have a version of Continue Reading
Enabling Powershell-ISE in Windows Server
To use PowerShell-ISEĀ (Integrated Scripting Environment) on a Windows 2008 R2 server it is necessary to first enable it. There are just a few simple steps to take to do this… Run PowerShell with Administrator privileges (right-click PowerShell -> Run as administrator). Import the Server Manager PowerShell module. Next, add the Continue Reading
I’ve been pwned :(
Just received an email through from Amazon telling me my password has been reset. Being a suspicious type I didn’t take their email as being genuine but as there were no links it seemed more plausible than not. So following this, I checked the very useful site “Have I been Continue Reading
Adding the date to a filename with Powershell
Following on from my previous post, Write to a text file using Powershell, I found it useful to be able to include the date into the log filename. $LogFile =”C:\PsTools\Method01-$(get-date -f yyyy-MM-dd).log” $DateTime = Get-Date Write-Output $DateTime “Performing some operation” | Add-Content $LogFile You can see from this script that Continue Reading
Information Technology Infrastructure Library (ITIL)
Independent set of standards and practices for running I.T department. Details processes that should exist and what best practise is. Provides standard for I.T. departments to use for benchmarking and measuring their performance. ITIL areas cover: Financial management for I.T. department Service design Service level management Availability management Capacity management Continue Reading
Write to a text file using Powershell
While looking for a method to generate some logging in a Powershell script to aid debugging I came across several suggestions… #Method 01 – appends contents $LogFile =”C:\PsTools\Method01.log” $DateTime = Get-Date Write-Output $DateTime “Performing some operation” | Add-Content $LogFile #Method 02 – appends contents Add-Content “C:\PsTools\Method02.log” “Performing some operation” #Method Continue Reading
Planning Tools
Tools used to support I.T. department planning, range from Excel to Project or even more specialised products. Choice depends on size and complexity of project. MS Project can link several projects together under one steering project facilitating project management. Many tools can also provide costings for the projects to assist Continue Reading
Software Management Tools
Many tools available to help manage I.T. departments, both simple and complex. Can be stand alone for specific functions or fully integrated systems covering areas such as: Code repository Asset repository Help desk Data models repository Software analysis and design repositories