You are here

PowerShell script to show the state of your laptop battery

Submitted by PhilEddies on Fri, 07/08/2011 - 23:11
administrator | 4351 points

Windows holds so much great information in the WMI including information on the battery.

The below is a little PowerShell function that will show you what state your laptop battery is in full, charging etc.

VBS Script: Migrate granularly users from one printer server to another

Submitted by PhilEddies on Tue, 04/05/2011 - 11:29
administrator | 4351 points

The below script is an example of how you can migrate users from one printer server to another based on the printer model or name.

Sometimes doing a big bang migratiion from an old print server to a new one is not the best idea so this script allows you to provide a list of printer models to migrate rather than doing them all at once. When I use this script I call it from a logn script and add a model or two a day until the migration is complete.

VBS Script to list the network printers a user is connected to

Submitted by PhilEddies on Mon, 04/04/2011 - 18:20
administrator | 4351 points

The below little VBS script is an example of how to pull back a list of network printers a users is connected to.

This script is only pulling back the server and share names but you could retrieve other properties in the same way

http://msdn.microsoft.com/en-us/library/aa394363%28v=vs.85%29.aspx

VB.Net Program to Return the MDS Hash of a file

Submitted by PhilEddies on Fri, 03/18/2011 - 14:40
administrator | 4351 points

The below VB.net Console Application will simply return the MD5 hash of a file you pass to it as an argument.

Exmaple Usage:

"C:\test\File_MDS_Hash_Generator.exe" C:\Program Files (x86)\Microsoft Office\OFFICE11\EXCEL.EXE <enter>
3D478B8AF281FA52E8EF1BD9E7895DA5

Do NOT enclose the argument with quotes even if your path contains spaces or you will get an nasty error.

Pong Game Using Adobe Flex and Flixel

Submitted by PhilEddies on Wed, 12/01/2010 - 22:27
administrator | 4351 points

I have just started playing with Adobe's Flex and the game engine Flixel.

So far I am loving what I see especially how easy to use Flixel is

VBS Script to report the properties of all files in a folder and its sub folders

Submitted by PhilEddies on Thu, 11/25/2010 - 22:29
administrator | 4351 points

I recently had a need to list the  properties of all files in a folder and its sub folders to find files that had not been used in a long time, or files where the owner had left. In my case I needed to run a report on approx 250,000 files which this script managed.

The script will get the following properties;

iTop Mod: WYSIWYG CKEditor (for iTop 1.0.1)

Submitted by PhilEddies on Wed, 11/10/2010 - 12:15
administrator | 4351 points

iTop by Combodo

 

UPDATE: This feature should be making it's way into iTop in the near future. Thanks to the iTop developers for a great application!

VBS Script to export properties of all groups in IBM Lotus Domino using LDAP

Submitted by PhilEddies on Tue, 10/26/2010 - 14:42
administrator | 4351 points

The attached script will extract the common name and email address of every group stored within a domino directory to a csv file.

You will need to change dominoserver within the select statement to the name of your server, you may also need to fill in the User ID and Password fields if you servers does not allow anonymous access.

You domino server will also need to accessible via LDAP

iTop MOD: Managing DHCP Scopes (Updated for iTop 1.0.1)

Submitted by PhilEddies on Wed, 10/13/2010 - 14:31
administrator | 4351 points

iTop by Combodo

Modification Overview:

I have created a mod for managing DHCP Scopes withinh iTop, feel free to use and distribute this modification but please do so at your own risk neither myself, or Combodo offer support for this modification. 

If you do make any improvement or fixes to this modification please feel free to share them. Also if you have tested this modification on any other version of iTop let us know the results.

VBS Script to get the location of the current script

Submitted by PhilEddies on Fri, 07/30/2010 - 12:21
administrator | 4351 points

Here is just a quick example of how to get the location of the currently running script.

 

 

currentScriptPath = Replace(WScript.ScriptFullName, WScript.ScriptName, "")

strLogFile = currentScriptPath & "log.txt"

wscript.echo strLogFile

Pages