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.
LIST OF PRINTERS

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
www.poweradmin.com/PAExec


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

jj8telk
16113
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

link

answered 24 Jan '13, 16:26

Doug's gravatar image

Doug ♦♦
10.2k122138
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

By RSS:

Answers

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

Tags:

×60
×3
×1

Asked: 24 Jan '13, 11:01

Seen: 8,263 times

Last updated: 24 Jan '13, 16:26