And here’s the PowerShell: Pinging a computer script
The first thing you might notice is that the PowerShell version is a bit shorter. 3 lines of VBscript code, compared to 1 line of PowerShell script. That is, 1…
The first thing you might notice is that the PowerShell version is a bit shorter. 3 lines of VBscript code, compared to 1 line of PowerShell script. That is, 1…
If you looked at yesterday’s post, carefully I’ll admit as WordPress loves to mangle the display of <CODE>; you might have noticed that I check to see if a computer…
It looks like it’s going to be a week of scripting blog posts. Today’s script is used to reboot a list of remote computers. Sometimes, when deploying security patches, the…
With PowerShell, I needed to get a count of files in a particular directory. This is what I came up with. # # Get a count of files in a…
So where did the Transport Ticketing Authority have the programming for the Mymyki.com.au done? In Australia, you might think, as we don’t want people’s financial details to be going offshore,…
I needed to read the last line of a log file. PowerShell made it very, very, easy. All you need to do is Get-Content the file, and then pipe it…
The Windows PowerShell syntax was deliberately chosen to facilitate ease of use and ease of learning. Corporate enterprise Windows administrators are the target audience. - Windows PowerShell Scripting Guide by…
Duplicate file detection is fairly easy to do, as it turns out, and it goes like this. Read first file. Calculate a unique fingerprint, and store the fingerprint. Read second…
I’ve done a bit of programming over the years, and I’m currently working with a Visual Basic 6 (VB6) code base. I’ve found the following quotation so true: It is…
This is a small script I wrote many years ago to uninstall security patches. I customise it when I need it. In this example, I’ve customised it for MS09-032, but…