Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • If i use Transcript, he writes only one log if he had a mistake, if I have created a new user without errors then he writes nothing in the log. The orginal Script is bigger and the its to many work to add on every line the out-file Commented Jan 17, 2018 at 13:28
  • That's because there is no error encountered if a user is created successfully. If you want that in the log too, you would need to add an extra custom message to your script. Something like, write-output "User created successfully!" Commented Jan 17, 2018 at 13:30
  • yes thats right, but i will a log that logs all from start to stop. All Messages from Creat or success to error. Commented Jan 17, 2018 at 14:45