IT Knowledge Base

Technical Repository

HowTo: Get the LastLogonTime to a mailbox for a user on Exchange 2013

If we want to check when a user last logged on to their mailbox in Exchange 2013 you need to run the following cmdlet: Get-MailboxStatistics [email protected] | Select DisplayName, LastLoggedOnUserAccount, LastLogonTime or to view the statistics for all mailboxes Get-Mailbox | Get-MailboxStatistics | Select DisplayName, LastLoggedOnUserAccount, LastLogonTime

Read More


Troubleshoot: Lync 2013 – Event Error 21054

http://technet.microsoft.com/en-us/library/jj205120.aspx Address Book Server error event 21054 is generated once daily for each Lync 2013 pool (3195918) Issue: Lync Server 2013 Address Book Server will generate error event 21054 once every day when performing daily maintenance. The error is also generated every time an administrator runs the Update-csAddressBook cmdlet, even when the update is successful. […]

Read More


HowTo: Enable Remote Connections to MySQL

Open the the MySQL configuration file: nano /etc/mysql/my.cnf and comment out the following line, save the file and then restart the MySQL service. #bind-address = 127.0.0.1 Restart the MySQL service. service mysql restart OR you can run the following command to comment out the same line and then restart the MySQL service. sed -i ‘s/^bind-address.*/#bind-address […]

Read More


HowTo: Windows 2012 R2 – Fix Domain Controller SRV Records

nltest /dsregdns net stop netlogon net start netlogon

Read More


HowTo: Update Nginx Configuration to support PHP files

These are the default settings for Nginx. Open /usr/local/nginx/conf/nginx.conf to edit. nano /usr/local/nginx/conf/nginx.conf location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; include fastcgi_params; } Update the nginx.conf file to these settings location ~ \.php$ { root /var/www; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } In order to use […]

Read More


HowTo: Ubuntu – Force file system check on next boot

Log into your server and issue the following command: sudo touch /forcefsck On the next reboot the server will check the file system for errors during the boot process.

Read More


HowTo: Find the public IP address that a Linux server is behind

Install curl. apt-get install curl Run the following command: [email protected]:~# curl ifconfig.me 65.x.x.x

Read More


HowTo: Exchange 2013 – Receive Connector – Configure a SMTP Relay

1. Log into the Exchange Control Panel and navigate to Mail Flow > Receive Connectors. 2. Click the + icon to create a new receive connector. 3. Under Name, type in Outbound Relay. Under Role, select Frontend Transport and under Type select Custom and click Next. 4. By default this receive connector will bind to all of the […]

Read More


Postfix – Useful Commands

1. Give an approximation of the number of emails in the mailq. mailq | wc -l 2. Pause email delivery but still accept email. May be useful when needing to queue a large number of mail at once or when a mail needs to be deleted from the mail queue without stopping the mail server […]

Read More