#!/bin/bash
# Samba-TNG                                     get_installed_printers
# --------------------------------------------------------------------

# --------------------------------------------------------------------
# config here

. ./prefs

# --------------------------------------------------------------------
# print usage

if [ "$2" = "" ]; then
	echo "Usage: $(basename $0) <machine> <admin-passwd>"
	exit 0
fi

# --------------------------------------------------------------------
# begin

$rpcclient -S $1 -U Administrator%$2 -c 'regenum HKLM\SYSTEM\CurrentControlSet\Control\Print\Printers' -d0|grep -v "{"| less

exit 0

# --------------------------------------------------------------------
