I have an app server (inside DMZ) which connected to a reverse proxy server (Windows server 2019, IIS with URL rewrite installed). The following firewall rules are configured between these 2 servers:
App--->reverse proxy (port 80 and 443)
App<---reverse proxy (port 80 and 443)
MS Office 2016 is installed on App server and our IT Admin give an batch file to me to activate it: C:\Windows\System32\cscript.exe "c:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /sethst:10.aa.bb.ccc
C:\Windows\System32\cscript.exe "c:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /act
I tried run it but failed. The following firewall rule also setup: Reverse proxy--->10.aa.bb.ccc (port 80 and 443)
Forward proxy has been config as below:
And when run the batch file, got the below error:
D:\MSO>C:\Windows\System32\cscript.exe "c:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /sethst:10.aa.bb.ccc Microsoft (R) Windows Script Host Version 5.812 Copyright (C) Microsoft Corporation. All rights reserved.
---Processing--------------------------
ERROR CODE: 0x80070005 ERROR DESCRIPTION: Run the following: cscript ospp.vbs /ddescr:0x80070005
---Exiting-----------------------------
D:\MSO>C:\Windows\System32\cscript.exe "c:\Program Files (x86)\Microsoft Office\Office16\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: dedfa23d-6ed1-45a6-85dc-63cae0546de6 LICENSE NAME: Office 16, Office16StandardVL_KMS_Client edition LICENSE DESCRIPTION: Office 16, VOLUME_KMSCLIENT channel Last 5 characters of installed product key: XXXXX 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 FOR MORE INFORMATION PLEASE VISIT: http://support.microsoft.com/kb/2870357#Error0xC004F074
---Exiting-----------------------------
Is there anything wrong on the URL rewrite setting ? Or it cannot be done when activate thru batch file? Thanks a lot.
Regds
LAM Chi-fung