Archive for the ‘csharp’ Category

Inverse ARP

While researching fast ways to find a relationship between a MAC and IP address, I dug up some info on Inverse ARP and found out that it isn’t widely a supported protocol. Basically, it’s only used in frame relay networks, which doesn’t help matters.
So I did what any sensible geek does, I hacked something together.
This [...]

My first cmdlet, Out-Web

It’s been a while since I’ve done a for fun computer project, so I decided I wanted to learn how to make PowerShell Cmdlets. The problem was that I couldn’t think of really anything I wanted to make! Then one day I was reading Lee Holmes’ blog, saw the “Out-Web” and had a project.
Download the [...]

Cracking the Windows Update API

Something that I’ve been working on for a while is an application or script that checks the availability of other servers to decide if it should start the update/restart steps. Though testing and more testing, I’ve found that even with the awesome power of Powershell, I still needed the power of a binary to get [...]

Windows 7 Powershell LogonUI Changer

Based off of the W7C LogonUI Changer, this Powershell script should make changing the LogonUI background easier for the IT admins out there.
Download win7logonui.zip (Includes the ImageProcessor source and DLL)
Usage:

After copying or building imageprocessor.dll move it to the same folder as win7logonui.ps1 (or edit the script).
Example: win7logonui.ps1 \path\to\image.jpg
Set $DebugPreference to “Continue” to watch the script [...]

Time filter: C# Project files

Here’s a clightly cleaned up and better version of my time filter project thing, businesshours.zip. Archive contains code, build batch file, and binary.
Some changes this round:

Takes into account timezones.
No longer is missing a day in it’s calculations.
Debugging command line argument to track the inner workings.

Should I feel like it:

Code cleanup
Delete unused variables
Useful comments

Time filtering for helpdesks

One of the goals this year is to have an average response time of 15 minutes for all helpdesk tickets, but we have one problem, no way to track or know if we’re getting closer.
During my initial research, the only thing I could find was code that couldn’t be customized through configuration files so it [...]

Route Kill v2

Last time around, Route Kill was pretty simple, just misdirect a route. This time, I added a little more code flexibility, some minor network monitoring and a maliciousness not seen before. This time, it kills the route (deletes the route from the table), packets aren’t even misdirected, they go nowhere!
To get things ready for yourself, [...]

Bug squishing

After getting a Windows XP Virtual PC up and running I was able to test my last project’s update feature in XP…and it didn’t work. From those of you who have Vista like me know that the user profile is no longer under Documents and Settings, but Users.
My original code didn’t take into account spaces [...]

Single exe that can update itself?

For a while now, I’ve been meaning to make a diagnostic application for my coworkers while they are on the road so that we in IT can see what’s going on in their computers. But the problem has been getting the time to make it and deciding what best way to make it in (compiled [...]

Learning the nuances of Visual Studio

I’m starting to use Visual Studio and programming more and more in C#. Mostly this is because I’m finding that creating tools with scripts for my end users to be too cumbersome for them to use. PowerShell scripts are not easily launched by a double click, you need to allow scripts in the first place [...]