On running dstatus found that project pro and visio pro are on OOB GRACE, so ran act again. act run reported that KMS server is not available. Following are the copied text of both runs, as "Attach" button not working.
1) dstatus run
C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /dstatus
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
---Processing--------------------------
PRODUCT ID: 00338-00000-00000-AA711
SKU ID: 4f414197-0fc2-4c01-b68a-86cbb9ac254c
LICENSE NAME: Office 16, Office16ProjectProVL_KMS_Client edition
LICENSE DESCRIPTION: Office 16, VOLUME_KMSCLIENT channel
BETA EXPIRATION: Mon, 01-01-1601
LICENSE STATUS: ---OOB_GRACE---
ERROR CODE: 0x4004F00C
ERROR DESCRIPTION: The Software Licensing Service reported that the application is running within the valid grace period.
REMAINING GRACE: 28 days (40873 minute(s) before expiring)
Last 5 characters of installed product key: G83KT
Activation Type Configuration: ALL
DNS auto-discovery: KMS name not available
KMS machine registry override defined: kms7.msguides.com:1688
Activation Interval: 120 minutes
Renewal Interval: 10080 minutes
KMS host caching: Enabled
PRODUCT ID: 00341-50000-00000-AA501
SKU ID: 6bf301c1-b94a-43e9-ba31-d494598c47fb
LICENSE NAME: Office 16, Office16VisioProVL_KMS_Client edition
LICENSE DESCRIPTION: Office 16, VOLUME_KMSCLIENT channel
BETA EXPIRATION: Mon, 01-01-1601
LICENSE STATUS: ---OOB_GRACE---
ERROR CODE: 0x4004F00C
ERROR DESCRIPTION: The Software Licensing Service reported that the application is running within the valid grace period.
REMAINING GRACE: 28 days (40881 minute(s) before expiring)
Last 5 characters of installed product key: RJRJK
Activation Type Configuration: ALL
DNS auto-discovery: KMS name not available
KMS machine registry override defined: kms7.msguides.com:1688
Activation Interval: 120 minutes
Renewal Interval: 10080 minutes
KMS host caching: Enabled
PRODUCT ID: 00201-10817-18214-AA039
SKU ID: b58a5943-16ea-420f-a611-7b230acd762c
LICENSE NAME: Office 16, Office16O365HomePremR_Subscription4 edition
LICENSE DESCRIPTION: Office 16, TIMEBASED_SUB channel
BETA EXPIRATION: Mon, 01-01-1601
LICENSE STATUS: ---LICENSED---
ERROR CODE: 0x4004FC04 (for information purposes only as the status is licensed)
ERROR DESCRIPTION: The Software Licensing Service reported that the application is running within the timebased validity period.
REMAINING GRACE: 42 days (61146 minute(s) before expiring)
Last 5 characters of installed product key: KHGPF
---Exiting-----------------------------
C:\Program Files\Microsoft Office\Office16>
2) act run
C:\Program Files\Microsoft Office\Office16>cscript ospp.vbs /act
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
---Processing--------------------------
Installed product key detected - attempting to activate the following product:
SKU ID: 4f414197-0fc2-4c01-b68a-86cbb9ac254c
LICENSE NAME: Office 16, Office16ProjectProVL_KMS_Client edition
LICENSE DESCRIPTION: Office 16, VOLUME_KMSCLIENT channel
Last 5 characters of installed product key: G83KT
ERROR CODE: 0xC004F074
ERROR DESCRIPTION: The Software Licensing Service reported that the product could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information.
To view the activation event history run: cscript ospp.vbs /dhistorykms
NOTICE: A KB article has been detected for activation failure: 0xC004F074
Installed product key detected - attempting to activate the following product:
SKU ID: 6bf301c1-b94a-43e9-ba31-d494598c47fb
LICENSE NAME: Office 16, Office16VisioProVL_KMS_Client edition
LICENSE DESCRIPTION: Office 16, VOLUME_KMSCLIENT channel
Last 5 characters of installed product key: RJRJK
ERROR CODE: 0xC004F074
ERROR DESCRIPTION: The Software Licensing Service reported that the product could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information.
To view the activation event history run: cscript ospp.vbs /dhistorykms
NOTICE: A KB article has been detected for activation failure: 0xC004F074
Installed product key detected - attempting to activate the following product:
SKU ID: b58a5943-16ea-420f-a611-7b230acd762c
LICENSE NAME: Office 16, Office16O365HomePremR_Subscription4 edition
LICENSE DESCRIPTION: Office 16, TIMEBASED_SUB channel
Last 5 characters of installed product key: KHGPF
<Product activation successful>
---Exiting-----------------------------
C:\Program Files\Microsoft Office\Office16>