Prevent samba from creating home directory for machine accounts.

Since this setup automatically creates a home directory for a user as soon as they access the machine (via samba, ssh, console), I noticed some directories being created for computer accounts.  To prevent this,  I have added a line that only "Domain Users" are allowed to authenticate.  To add this …

more ...

Create a single standalone .exe from a Python program

I have been working on a small windows command line tool that I wanted to distribute it as a single executable file on windows. I tried cx_freeze and py2exe. Both of these tools worked well, but I couldn't find an easy way to compress make the whole program into …

more ...

Monitoring Flexlm usage with Zabbix

Flexlm license usage can be a hard thing to accurately measure and monitor. Luckily, the output from lmutil can be used to display license usage. First thing to do is locate the lmutil binary and try to get it to run. I use Flexlm for autodesk on Windows and ESRI …

more ...

'Pstools: Access Denied in a Domain Environment'

After upgrading to a windows 7 VM at work, I was having trouble getting pstools commands to authenticate on remote machines. After much trial and error, I realized some curious behaviour with psexec. Obviously, when connecting to a remote machine, I would try to use the '-u' switch to specify …

more ...

Windows 32 (x86) or 64 (AMD64) detection in batch files

While there are a lot of ways to detect for a 64 bit version of windows. you can test for %programFiles(x86)%, but handling the output and writing the IF comparisons is messy.

In Batch files, you can easily check for architecture by using the "processor_architecture" variable. x86 versions …

more ...

Uninstall ALL Versions of WinZip Batch Script

I have been struggling with this for quite a while, and ran into a lot of issues with all of the different versions on our network. There are people with 100 line .vbs scripts to do this, and I think this is much simpler:

@echo off
REM
REM
REM    Detects …
more ...


Command line scp from linux(+BSD) to windows.

i traveling and wanted to copy over my logs to find out what was happening on my server. didn't want to install a client like filezilla or another GUI. Using the command line SCP utility, you can grab remote files securely over SSH. You can grab the executable from http …

more ...

running msc's as admin account

Got tired of right-clicking and "run as" and putting in my uname/password. I just updated the shortcuts to run something similar to this. This example is for exchange 2007 server management console.

runas /user:DOMAIN\ADMIN_ACCOUNT "cmd /c \"c:\program files\microsoft\exchange server\bin\exchange management console …

more ...

Conference rooms with outlook and exchange 2007

Exchange Server 2007 allows administrators to create objects such as Mailbox, Contacts, Mail User, and Distribution Groups. Here are the steps needed to create a room mailbox object:

  1. Open the Exchange Management Console.

  2. Expand Recipient Configuration.

  3. Click on Mailbox.

  4. In the Mailbox pane, click on New Mailbox...

  5. For our purposes …

more ...