verbose output on sql agent

Hello,

When I try to schedule via ms sql agent :
start-transcript test.log
write-verbose "TEST" -verbose
write-output "VERBOSE:OUTPUT TEST"

The following lines does not appear :
VERBOSE: TEST
VERBOSE:OUTPUT TEST

How can I resolve this problem?

Thanks

bibi
bibi92Asked:
Who is Participating?
 
NetExpert_plConnect With a Mentor Commented:
$VerbosePreference = "Continue"
0
 
bibi92Author Commented:
Thanks but where can I add this  in the cmd line?
0
 
chrismerrittCommented:
Have you tried Write-Host instead of Write-Verbose etc?
0
 
NetExpert_plCommented:
Just insert it in any line before write-verbose
0
 
bibi92Author Commented:
Thanks bibi
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.