locked
Enable User Enterprise Voice RRS feed

  • Question

  • I want to enable all user form a CSV enterprise voice and manage the error in a Log. I dont know how to manange the error, because later I want to know which failed.

    Tuesday, August 21, 2012 10:21 PM

Answers

  • So you would have to write any errors to a log file using the PowerShell script that you use to read the CSV as an input file. If you use the Start-Transcript function you should capture any errors or alternatively you could use an array to capture any errors and then write the contents of the array to a log file. Her's an example:

    $transcriptname = "EnableEVUsers" + `
        (Get-Date -format s).Replace(":","-") +".txt"

    Start-Transcript $transcriptname

    • Proposed as answer by Sean_Xiao Thursday, August 23, 2012 6:33 AM
    • Marked as answer by Sean_Xiao Wednesday, August 29, 2012 1:44 AM
    Tuesday, August 21, 2012 10:44 PM