quick update – needing to get posting again….
I haven’t posted for a while, been off-line a bit, and doing a lot of reading and preparation for job hunting. It’s interesting times at the moment; there are jobs out there, but they don’t just leap...
View Articlewhat I’ve been doing
I’ve been quite a bit of work in Powershell recently, just making sure I’m up to speed with it. I’ve found all my meddling in PHP quite useful and relevant actually, which is fantastic. Working with...
View ArticlePowershell – Get-CountryForIPAddress function
Just a little looping script to take an IP address and return the country and country code. function Get-CountryForIPAddress { param( [Parameter(Position=0, Mandatory=$FALSE, ValueFromPipeline=$TRUE)]...
View ArticleCreating Large Dummy Files With .NET
You can always resort to the underlying .NET framework whenever the functionality you need isn’t available through a cmdlet. The following code is a very fast way to generate really large test files:...
View ArticleRunning PowerShell Scripts as Scheduled Task – like Cronjobs for Windows!!
If you have jobs that need to execute regularly, you can manage them with a PowerShell script and make it a scheduled task: schtasks /CREATE /TN CheckHealthScript /TR "powershell.exe ` -noprofile...
View ArticleOpening Databases from PowerShell
The easiest way of accessing databases right from PowerShell is to visit control panel and open the Data Sources (ODBC) module (which resides in Administrative Tools inside control panel). Use the GUI...
View ArticleConverting Database Records into PowerShell objects
When you access a database, the result is not automatically wrapped as objects so you cannot pipe the result into other cmdlets like Sort-Object or Group-Object. You can with PowerShell v.2. Here is a...
View Article
More Pages to Explore .....