hello. i was wondering if someone could help me out with this. i'm trying to get a list of printers from another server and it's returning everything ok. however, i want to save the results to a log file and it's not logging everything.

when running the following:

paexec \\SERVER -u username -p password -h cscript  C:\windows\system32\Printing_Admin_Scripts\en-US\prnmngr.vbs  -l

my response is:

Microsoft (R) Windows Script Host
Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.

however, when i add -lo logfile.text, the output that is logged is the following:

PAExec v1.17 - Execute Programs Remotely
Copyright (c) 2012 Power Admin LLC

Connecting to SMI-STRPRNT...
Starting PAExec service on SMI-STRPRNT...

cscript returned 0

PAExec returning exit code 0

Is there a way to save the actually output from the remote application to the log file?

asked 24 Jan '13, 11:01

jj8telk's gravatar image

accept rate: 0%

edited 24 Jan '13, 11:26

I'm not sure if this will work, but give it a try:

paexec \SERVER -u username -p password -h cscript C:\windows\system32\Printing_Admin_Scriptsen-USprnmngr.vbs -l > out.txt

Hopefully you'll find the output you want in output.txt


answered 24 Jan '13, 16:26

Doug's gravatar image

Doug ♦♦
accept rate: 21%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 24 Jan '13, 11:01

Seen: 7,762 times

Last updated: 24 Jan '13, 16:26