none
PSEXEC Logging RRS feed

  • General discussion

  • I am currently running a bat file to run a clear cahce kms cmd line;

    psexec @KMS.txt cscript c:\Windows\System32\slmgr.vbs /ckms > "\\PCName\C$\Users\Me\Desktop\KMS Activation\ClearCache.log"

    The problem is the log file list the individual pc names after the success or failure message rather than next to it.

    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    Installed product key 11111-11111-11111-11111-11111 successfully.
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    Installed product key 11111-11111-11111-11111-11111 successfully.
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    Installed product key 11111-11111-11111-11111-11111 successfully.
    \\12345-3-A010000:
    \\67899-5-A000001:
    \\98765-1-A-00002:

    Is there a way to format the output so that the name is next to the actual success or failure?


    DHeinz


    • Edited by DRHeinz Tuesday, September 19, 2017 2:34 PM
    • Changed type Bill_Stewart Tuesday, November 7, 2017 9:52 PM
    • Moved by Bill_Stewart Tuesday, November 7, 2017 9:52 PM This is not psexec support forum
    Tuesday, September 19, 2017 2:20 PM

All replies

  • This is not a psexec support forum.

    You may want to consider removing the product key in your sample output.


    -- Bill Stewart [Bill_Stewart]

    Tuesday, September 19, 2017 2:23 PM