Wednesday, February 13, 2013

How to setup Outlook 2010 over HTTP

How to setup Outllok 2010 over the Internet with Exchange and no VPN.

     
More Setting / Connection tab



Check Name

Monday, February 11, 2013

Access to this web server is disabled by default because it is controlled by basic authentication...


Microsoft has a "Fix it" file that did not work for me because it requires admin access. But I found this one registry value did the trick.


office-fix.reg

The contents of office-fix.reg.

[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Internet]
"BasicAuthLevel"=dword:00000002

This post has been getting a lot of hits. Let me know if the fix worked for you.

Friday, February 8, 2013

Copy files form VMware datastore with PowerCLI.



$input1 = read-host "enter"
Copy-DatastoreItem "vmstore:\\datacenter1\datastore1\*$input1*" c:\vmware\bkups -Recurse


I copy files from a datastore to my local PC on a regular basis. Of course you need to install PowerCLI on the local PC.

Thursday, December 27, 2012

Internet Explorer cannot find the Active Desktop HTML file.

"Internet Explorer cannot find the Active Desktop HTML file. The file is needed for your Active Desktop. To turn off Active Desktop, click OK."

The user clicks OK, but the error is back every time they login.

Go to the user profile under "Documents and Settings\user\Application Data\Microsoft" and add an empty folder called "Internet Explorer".

This worked!

Thursday, November 29, 2012

How to find spammers in my maillog file?


This is the type of record I get when someone authenticates to send email.

Nov 29 09:45:28 ns1 sendmail[30199]: AUTH=server, relay=[1.2.3.4], authid=smithb, mech=PLAIN, bits=0

This command will parse the log file, sort, and count.

grep "authid" maillog | cut -d ":" -f 4 | sort -n | uniq -c

36772  AUTH=server, relay=[176.222.239.10], authid=smithb, mech=LOGIN, bits=0      1  AUTH=server, relay=[24.2.3.4], authid=usera, mech=PLAIN, bits=0      8  AUTH=server, relay=[64.201.195.49], authid=userb, mech=LOGIN, bits=0     94  AUTH=server, relay=[72.201.195.4], authid=userc, mech=LOGIN, bits=0

  The first user has connected to the outgoing server 37k times this week. Someone has hacked their password and is sending spam. I will save this command and find the culprit much faster next time.

I took some inspiration from this post.

http://www.oxxus.net/wiki/Mail_server_log_analyzing

Friday, October 19, 2012

Script to connect to Citrix server from the OSX command line.

Here is the script. I call it ica.

# ica
# Connect to a specific Citrix server from the command line
#
if [ -z $1 ]
  then
    echo
    echo Syntax: ica hostname
    echo
    echo  please enter a hostname
    echo
    kill -SIGINT $$
fi
icafile=tmp.ica
echo [WFCLient] > $icafile
echo Version = 2 >> $icafile
echo [ApplicationServers] >> $icafile
echo \; Name below will appear in the title bar of ICA client >> $icafile
echo \; It MUST be identical to the connectoid header >> $icafile
echo $1 = >> $icafile
echo \; connectoid header is in brackets below\; MUST match friendly name above >> $icafile
echo [$1] >> $icafile
echo \; Server IP address or DNS name goes here >> $icafile
echo Address = $1 >> $icafile
echo TransportDriver = TCP/IP >> $icafile
echo Username = >> $icafile
echo Compress = On >> $icafile
echo PersistentCacheEnabled = On >> $icafile
echo InitialProgram = >> $icafile
echo WinStationDriver = ICA 3.0 >> $icafile
echo DesiredColor = 0 >> $icafile
echo DesiredHRES = %width% >> $icafile
echo DesiredVRES = %height% >> $icafile

open $icafile
Here is how I use it.
ica (hostname or ip)
I copied the Windows Script below and ported it to OSX.

http://www.windowsitpro.com/article/scripting/connect-to-a-citrix-server-from-the-command-line


Thursday, October 18, 2012

What is the quickest way to get an admin command prompt?

z.bat
runas /savecred /user:domain\admin "cmd /K net use z: \\server01\share\utils && z:"
I need admin command prompts everyday. Now clicking on Z in "My Documents" will give me an admin prompt in under one second. It also maps z: to a share with my network utilities. The first time you enter the password and it is saved in your profile. It even works on Citrix servers.


The title bar reminds me this is an admin window!