Tuesday, July 30, 2013

Updating VMWare tools for the Untangle Router

To update the tools just select "Update/install tools" in ESXi.
then go in to the host terminal and run: 

"mount /media/cdrom" Mount the tool CD

"cd /media/cdrom" Go to the CD

"cp VMware*.tar.gz /tmp" Copy the Install archive to temp folder

"cd /tmp" go to Temp folder

"tar -xvcf VMware*.tar.gz" Unpack Archive

"cd vmware-tools-distrib" change Folder to the installation folder.

"./vmware-install.pl -d" Install with the default settings

"umount /media/cdrom" Unmount the Tools CD

Thursday, July 25, 2013

Photos in Active Directory



Need to be running Exchange 2010 SP1 , or else you need to make schema changes to the AD.

AD includes the Picture attribute to store thumbnail photos, its ldap name is thumbnailPhoto.

Since it is just a thumbnail, the recommended size in pixels is 96 x 96 , size should be less than 10K .

Use Exchange 2010's cmdlet,  Import-RecipientDataProperty   to import the photos.
ex.
Import-RecipientDataProperty -Identity "FULL NAME" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pictures\FULLNAME.jpg" -Encoding Byte -ReadCount 0))


Much easier way is to use this free tool, http://www.codetwo.com/freeware/active-directory-photos/

or,

An Active Directory extension available here, http://www.dewdney.co.uk/adext/adext.zip

Monday, July 22, 2013

Allow non-Administrators to install printers

This is for a domain environment, Windows 2008 R2 with Windows 7 Pro clients.

Use Group Policy.

Computer Configuration / Policies / Administrative Templates / Printers / Point and Print Restrictions
and possibly (I've not had to do the User side, works with just Computer side done)
User Configuration / Policies / Administrative Templates / Control Panel / Printers / Point and Print Restrictions
- enabled
- set your print server name (not necessary, but if you do it is SERVER.DOMAIN.COM)
- Security Prompts, When Installing Drivers for a new connection = Do not show warning or elevation prompt

Also, make sure users have permission to install printer drivers,
Computer Configuration / Policies / Administrative Templates / System / Driver Installation
- enable "Allow non-administrators to install drivers for these devices setup classes"
- Add the Class ID's for
Printers,  {4d36e979-e325-11ce-bfc1-08002be10318}
PNPPrinters,   {4658ee7e-f050-11d1-b6bd-00c04fa372a7}

You may need different Class ID's.



Thursday, July 18, 2013

ftp script to download

- create a directory to place your downloaded files in
- create text file to hold the ftp commands
  example  website.txt
  open website.com
  username
  password
  cd /remotedirectory
  bin
  put/get "filename.wat"
  disconnect
  bye

- execute the ftp command,  ftp -s:website.txt

- can execute from a batch file as well