vitorio Posted November 8, 2023 Share Posted November 8, 2023 I am trying to create "OfficeStatus.txt" using the following script from OfficeTeam documentation: How to make a request: Open Any Office Program and Close it. Open CMD as Admin, enter the following commands (at once) & hit Enter:Open CMD as Admin, enter the following 2 commands (at once) & hit Enter: if exist "%ProgramFiles%\Microsoft Office\office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\office16" if exist "%ProgramFiles(x86)%\Microsoft Office\office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\office16" cscript //nologo ospp.vbs /dstatus >OfficeStatus.txt start OfficeStatus.txt In my case there is no output Copy & paste the output of the above command, DO NOT ATTACH THE TEXT FILE OR IMAGES/SCREENSHOT while making a request, so we make sure you're asking assistance for the right product. What may be the issue? Please helpme to fix it. Thanks, PD I have installed Office Pro 2019 volume. Quote Link to comment Share on other sites More sharing options...
ARMOUR Posted November 8, 2023 Share Posted November 8, 2023 check these files "OSPP.VBS & SLERROR.XML" in this folder: C:\Program Files\Microsoft Office\Office16 if not OfficeStatus.txt will not be generated please share your screenshot of error if possible Quote Link to comment Share on other sites More sharing options...
vitorio Posted November 8, 2023 Author Share Posted November 8, 2023 @ARMOUR,There is no Office16 folder. Since I have installed Office2019 I think that's the reason why there is no Office216 folder. Maybe the scrip need to modify, for those with Office 2019? Any idea? Thanks. Quote Link to comment Share on other sites More sharing options...
ARMOUR Posted November 8, 2023 Share Posted November 8, 2023 14 minutes ago, vitorio said: Please try to modify the script: office16 to office15 , may be work if exist "%ProgramFiles%\Microsoft Office\office15\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\office15" if exist "%ProgramFiles(x86)%\Microsoft Office\office15\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\office15" cscript //nologo ospp.vbs /dstatus >OfficeStatus.txt start OfficeStatus.txt Quote Link to comment Share on other sites More sharing options...
vitorio Posted November 8, 2023 Author Share Posted November 8, 2023 (edited) It is interesting, found Office16 and inside is ospp.vbs. See image, but still the script do nothing ( In my case there is no output). Any ideas? Edited November 8, 2023 by vitorio Quote Link to comment Share on other sites More sharing options...
ARMOUR Posted November 9, 2023 Share Posted November 9, 2023 cd /d "%ProgramFiles(x86)%\Microsoft Office\office16" cscript //nologo ospp.vbs /dstatus >OfficeStatus.txt start OfficeStatus.txt try above script (run cmd as admin) share screenshot if possible Quote Link to comment Share on other sites More sharing options...
Solution kyber Posted November 9, 2023 Solution Share Posted November 9, 2023 (edited) 1. Open cmd prompt as Admin 2. run the below for %a in (4,5,6) do (if exist "%ProgramFiles%\Microsoft Office\Office1%a\ospp.vbs" (cd /d "%ProgramFiles%\Microsoft Office\Office1%a") if exist "%ProgramFiles% (x86)\Microsoft Office\Office1%a\ospp.vbs" (cd /d "%ProgramFiles% (x86)\Microsoft Office\Office1%a")) cscript //nologo ospp.vbs /dstatus>OStatus.txt start OStatus.txt @vitorio Why don't you use the Support System HERE We are always there to help you. Edited November 9, 2023 by kyber Quote Link to comment Share on other sites More sharing options...
vitorio Posted November 9, 2023 Author Share Posted November 9, 2023 @kyberI will do it. The script works flawlessly Great job by the way!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.