Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

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
0
bibi92
Asked:
bibi92
  • 2
  • 2
1 Solution
 
NetExpert_plCommented:
$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

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now