If you want to automatically activate office 2013, you need to use Active Directory-based activation. but this is available only for Office 2013 on Windows 8 and Windows Server 2012. So you need to do it manually.
https://technet.microsoft.com/en-us/library/ee624358.aspx?f=255&MSPPError=-2147217396