Ben Hamilton

Set Windows power states from the command line

Use powercfg to set Windows power states from a script or command line.

Posted in General | Tagged , | Comments Off on Set Windows power states from the command line

Create UAC elevated shortcuts on Windows

Create UAC elevated shortcuts on Windows (Hat tip to Jared).

Posted in Windows | Tagged , , | Comments Off on Create UAC elevated shortcuts on Windows

Command Line Install Telnet Client

I often use telnet to test if a port is open or not. However, on Windows Vista and up, and Windows Server 2008 and up the telnet client isn’t installed by default. To install it, do the following from a command line: pkgmgr /iu:”TelnetClient” Source: Microsoft Technet

Posted in How to, Microsoft | Tagged , | Comments Off on Command Line Install Telnet Client

Windows Off-screen

Just had another client puzzled by this issue, their IT provider couldn’t figure out what was wrong either. The application (in this instance ACT!) appeared to start, but wasn’t visible. Ultimately, the window was off screen. They had used an external monitor and had been using the app on that second screen. They’d shutdown, removed […]

Posted in Microsoft, Windows | Tagged | Comments Off on Windows Off-screen

Howto: Lock Windows Machines From Command Line

I’ve recorded a short video on how to lock windows machines from the windows command line. Let me know if you found it useful.

Posted in How to | Tagged , , , , | Comments Off on Howto: Lock Windows Machines From Command Line

Switcher for Windows

Switch windows with ease.

Posted in General | Tagged , | Comments Off on Switcher for Windows

Sheepdog rounds up windows

One of the tools I’ve found very useful is SheepDog. Like the real world sheep dogs, it rounds things up, in this case stray windows. Working with a laptop, I often plugin a second monitor, however, when I next fire up the laptop, windows may open up but not be visible on my laptop screen, […]

Posted in Windows | Tagged , , , | Comments Off on Sheepdog rounds up windows

Using registry values in scripts

I’m often writing scripts to do stuff. It makes my job easier. I’ve often wanted to be able to script the discovery of registry values in the Windows Registry. Thus here is a short example on using the vanilla windows command line to find the value of a Windows registry key. From my testing these […]

Posted in How to, Microsoft, Windows | Tagged , , , , | Comments Off on Using registry values in scripts

Finding user SID

Occasionally you may want to know the [SID][] of a windows user. If that made no sense to you, read no futher, this snippet is not for you. [SID]:http://encyclopedia.thefreedictionary.com/Security+Identifier “Read a definition of what the SID is” Open up REGEDIT and browse to this key: `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList` Here you will find a list of SID’s, […]

Posted in Microsoft, Windows | Tagged , , | Comments Off on Finding user SID

Turn off Enhanced Security

Just had need of this article, method #2 describes how to turn of Microsoft Internet Explorer Enhanced Security Configuration.

Posted in How to, Windows | Tagged , , , | Comments Off on Turn off Enhanced Security

Open Source administrator tools

Spotted this great list of open source tools for system administrators: 24 Great Open Source Apps for Admins & Technicians. I can personally vouch for a number of these: Angry IP Scanner PuTTY DBAN DeltaCopy For some tools that are not open source but free, you can’t go past live.sysinternals.com (details here) – now owned […]

Posted in How to, Microsoft | Tagged , , , , , , | Comments Off on Open Source administrator tools

Resurrecting Terminal Server

A Terminal Server I was attempting to work on today gave quite a lot of grief. The first hint was that users were unable to login to it. When I then tried to login, it gave an error message of: Login Failed You are connected to the remote computer. Howerver, an error occured while an […]

Posted in How to, Microsoft | Tagged , , , , | 5 Comments

Registry utility I would love to have

I don’t have this, but I certainly would use it. A simple utility to do search and replace in the Microsoft Windows registry. Ideally it would do the following: Specify a list of values to delete – it would then remove ALL those values Specify a value and what to replace it with Specify a […]

Posted in Microsoft | Tagged , , | Comments Off on Registry utility I would love to have

Ubuntu VPN goodness

I’m now running Ubuntu 7.10 on my personal laptop (it dual boots with MS Vista Ultimate, but defaults to Ubuntu). Of course I want to do it all, including connecting to MS Windows VPN’s. The short set of instructions over at tipotheday were spot-on. My only addition would be to have the Ubuntu 7.10 install […]

Posted in How to, Microsoft | Tagged , , , , , | Comments Off on Ubuntu VPN goodness