601, 2017

Change Computer Name to Serial

January 6th, 2017|Categories: Code|Tags: , |0 Comments

Little Windows VBS script to pull Dell BIOS serial tags into Computer Names. I pulled this from an old backup, since it got removed a long time ago for whatever reason.

strUser = "Administrator" strPassword = "P@ssw0rd" Set objNetwork = CreateObject("WScript.Network") strComputer = objNetwork.ComputerName Set objComputer = GetObject("winmgmts:{impersonationLevel=Impersonate}!\\" & _ strComputer & "\root\cimv2:Win32_ComputerSystem.Name='" & _ strComputer & "'") Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48) For Each objItem in colItems strMsg = objItem.Caption If strMsg = "Microsoft Windows XP Professional" Then winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//." 'WScript.Echo winmgmt1 Set SNSet = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS") for each SN in SNSet If SN.SerialNumber = strComputer Then MsgBox "Computer name already set! Name is: "& strComputer Wscript.Quit End If If SN.SerialNumber = "" Then MsgBox "Problem with computer naming!" Wscript.Quit End If ErrCode = objComputer.Rename(SN.SerialNumber, strPassword, strUser) If ErrCode = 0 Then MsgBox "Computer renamed successfully to: "& SN.SerialNumber End If Next End If Next
111, 2016

BBSLink Client

November 1st, 2016|Categories: Software|Tags: , , |0 Comments

If you have heard of or came across http://bbslink.net/ and wanted to add the services door games to your BBS but find that they only offer a javascript file for Synchronet BBSes then this might help you out.

I recently joined and not having a Synchronet BBS I had to make my own client to work with their service. It is written in C# against .NET 2.0 and *might* work in mono on Linux. You will have to test.

Local Binary: BBSLink Door Binaries
Local Source: BBSLink Door Source Code

408, 2016

Cisco 7965 VoIP Phone with Voip.ms

August 4th, 2016|Categories: How To|Tags: , , , , |0 Comments

First you will need the SIP firmware for the phone, as they are supplied with SCCP firmware.
You can download a package I have built here. You can also download the latest version from the Cisco website, they are free and available with a standard Cisco website account.

You will also need a TFTP server that the phone can connect to, and if you do not force a TFTP server address into the phone your DHCP server will need to pass option 66 with the TFTP server IP address. Windows 2008 R2 DHCP options has this as 066 “Boot Server Host Name”.

Extract the zip file into your TFTP root directory and then edit the SEP#######.cnf.xml file, search for the word “FIXME” and read around those lines to fix and replace for your setup. Then rename the file to be the MAC address of the phone. Replace ######### with the MAC as the sample file has already.

You may wish to also edit the dialplan.xml file and set your area codes and other stuff.

The phone will boot up on the network, grab an IP address from your DHCP server, pull the TFTP server address from the DHCP options and then contact the TFTP server. It will pull the SEP#######.cnf.xml file that responds to the phones MAC address. After some reboots and firmware changes it should register to your SIP provider.

I have this all working for voip.ms. If you are behind a firewall you may have issues with NAT. I am using pfSense and have no issues. The phone has NAT turned off (in the config already) and voip.ms settings for the sub-account I am using has NAT set to ‘yes’.

Lots of info was found on the voip-info website.

Load More Posts