| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This may be more efficient for extracting the configuration name from the Shell Uri since it only allocates one string instead of multiple string objects:
string shellPrefix = System.Management.Automation.Remoting.Client.WSManNativeApi.ResourceURIPrefix; int index = shelluri.IndexOf(shellPrefix, StringComparison.OrdinalIgnoreCase); return (index == 0) ? shelluri.Substring(shellPrefix.Length) : string.Empty; ``` #Resolved
Sorry, something went wrong.
There was a problem hiding this comment.
It would be better to parse the configuration name from the shellUri (configurationProcviderId) here rather than parse it each time later when a transcript header is written. #Resolved
Sorry, something went wrong.
There was a problem hiding this comment.
You should prefer auto-properties where possible. #Resolved
Sorry, something went wrong.
|
Thanks Jason Shirk (@lzybkr), Paul Higinbotham (@PaulHigin) ! I have incorporated the suggested change. #Resolved |
Sorry, something went wrong.
There was a problem hiding this comment.
psConfigurationName [](start = 20, length = 19)
I believe that this cannot be null. Please make it default to empty string.
Sorry, something went wrong.
There was a problem hiding this comment.
Paul Higinbotham (@PaulHigin) , I belive this is resolved.
Sorry, something went wrong.
|
Paul Higinbotham (@PaulHigin) the request has been addressed. |
Sorry, something went wrong.
|
Chunqing Chen (@chunqingchen) Please include tests in this PR |
Sorry, something went wrong.
There was a problem hiding this comment.
test needs to be added
Sorry, something went wrong.
|
Chunqing Chen (@chunqingchen) You need to add yourself to Microsoft on GitHub |
Sorry, something went wrong.
|
Chunqing Chen (@chunqingchen) I suspect you're already in the orgs, you just need to do this (for both PowerShell and Microsoft, though doing Microsoft is what will fix the CLA bot): https://help.github.com/articles/publicizing-or-hiding-organization-membership/ |
Sorry, something went wrong.
|
There are open comments that still need to be addressed. See: #2890 (comment) |
Sorry, something went wrong.
|
We have been waiting on author response to PR comments for over a week.
|
Sorry, something went wrong.
|
working on the test now |
Sorry, something went wrong.
resolved
|
Chunqing Chen (@chunqingchen) Please don't dismiss (delete) other people reviews. If you believe someone review is bad enough to be dismissed, please talk to a maintainer. |
Sorry, something went wrong.
|
Travis Plunk (@TravisEz13) I meant the reviews are resolved. So dismiss is not the way to say it has been resolved. Got it. |
Sorry, something went wrong.
|
Paul Higinbotham (@PaulHigin) Hi Paul, I talked with Travis and he agrees to merge the commit if you are fine. do you have any more comment about this change? |
Sorry, something went wrong.
There was a problem hiding this comment.
Please use more informative title.
Sample - "Transcript header".
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, please replace bug fix test with something more descriptive.
Sorry, something went wrong.
There was a problem hiding this comment.
corrected
Sorry, something went wrong.
There was a problem hiding this comment.
Please add new line.
Sorry, something went wrong.
There was a problem hiding this comment.
This is recommended, but not required.
Sorry, something went wrong.
There was a problem hiding this comment.
This was not fixed
Sorry, something went wrong.
There was a problem hiding this comment.
Please replace -force with -Force.
Sorry, something went wrong.
There was a problem hiding this comment.
corrected
Sorry, something went wrong.
There was a problem hiding this comment.
Please replace aliases with full cmdlet names.
Sorry, something went wrong.
There was a problem hiding this comment.
corrected
Sorry, something went wrong.
There was a problem hiding this comment.
Please use Should BeLike or Should BeLikeExactly
Sorry, something went wrong.
There was a problem hiding this comment.
corrected
Sorry, something went wrong.
There was a problem hiding this comment.
Please replace -force with -Force.
Sorry, something went wrong.
There was a problem hiding this comment.
corrected
Sorry, something went wrong.
|
I agree with Ilya (@iSazonov) comments. Otherwise LGTM. |
Sorry, something went wrong.
I agree with @iSazonov comments. Otherwise LGTM.
There was a problem hiding this comment.
I agree with Ilya (@iSazonov) comments. Otherwise LGTM.
Sorry, something went wrong.
…uration name in the transcript header #2890
|
Ilya (@iSazonov) Travis Plunk (@TravisEz13) comments are all resolved |
Sorry, something went wrong.
|
Thanks! |
Sorry, something went wrong.
|
Great change! |
Sorry, something went wrong.
…der (PowerShell#2890) * PowerShell transcripts should include the configuration name in the transcript header * adding test case for PowerShell transcripts should include the configuration name in the transcript header PowerShell#2890
| Back | FazBrowse Home | New Git URL |
Steps to reproduce
Expected behavior
PowerShell transcripts currently do not log the configuration name the user used to connect to and manage the machine. For JEA scenarios, this means an auditor trying to understand how someone was able to do a certain command will not know through which endpoint the user entered and was assigned those privileges.
Suggestion is to add a new line to the transcript header similar to the following:
ConfigurationName: MyJEA
[…]
RunAs User: WinRM Virtual Users\WinRM VA_10_PRIV_priv.demo
Configuration Name: JEA
Machine: DC (Microsoft Windows NT 10.0.14393.0)
[…]
Actual behavior
[…]
RunAs User: WinRM Virtual Users\WinRM VA_10_PRIV_priv.demo
Machine: DC (Microsoft Windows NT 10.0.14393.0)
[…]
Environment data
Name Value PSVersion 5.1.14993.1000 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.14993.1000 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1