![]() Useful in batch file or PowerShell scripting to get rid of white spaces, which causes issues sometimes. ![]() To use vnextdiag.ps1, you need to open a Windows PowerShell command prompt and navigate to the C:\Program Files\Microsoft Office\Office16 folder. That's it a simple command line to check remote PCs for office version.Ī simple way to check application architecture, basically any application in C:\Program Files (x86)\ is 32 bit and in C:\Program Files\ is 64 bit.ĭir /x shows the shortcut format of these two directories, example: To view the activation status of Microsoft 365 Apps, you can use the PowerShell script named vnextdiag.ps1. Here's the revised command line that can be saved on a batch file and run against remote computers using group policy, startup script, log off or log on script and other methods for remote offĮcho %COMPUTERNAME% > \\remote\share\location\%COMPUTERNAME%.txtĭir /s excel.exe | find /i "Directory of" >\\remote\share\location\%COMPUTERNAME%.txtĮcho "Data gathered from this PC:" %COMPUTERNAME% > \\remote\share\location\%COMPUTERNAME%.txt The command line can be written to a batch file and save to a common drive so it can be used for remote computers or in a domain environment, the hostname of the computer must be collected in order to identify the output data to which computer it came from.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |