Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trailing newline to status reporting #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joswr1ght
Copy link

When spraying, MSOLSpray uses a Write-Host without a trailing LF to show incremental progress N of NNN users tested. Then the spray completes, there it no additional LF, so the prompt often looks like this:

PS /home/josh> Invoke-MSOLSpray -UserList ./userlist.txt -Password "Solarwinds123"
[*] There are 1 total users to spray.
[*] Now spraying Microsoft Online.
[*] Current date and time: 04/11/2022 10:53:45
PS /home/josh> sted

The sted is the trailing output of the status indicator. This patch adds a newline to the end of the main ForEach loop. The output at the end of MSOLSpray will look like this:

PS /home/josh> Invoke-MSOLSpray -UserList ./userlist.txt -Password "Solarwinds123"
[*] There are 1 total users to spray.
[*] Now spraying Microsoft Online.
[*] Current date and time: 04/11/2022 10:53:45
200 of 200 users tested
PS /home/josh> 

NBD, just a minor nicety. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant