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

DEV: list powershell profiles #12

Closed
p0w3rsh3ll opened this issue Feb 21, 2018 · 2 comments
Closed

DEV: list powershell profiles #12

p0w3rsh3ll opened this issue Feb 21, 2018 · 2 comments

Comments

@p0w3rsh3ll
Copy link
Owner

Steps to reproduce

$profile | fl -Force

Expected behavior

List the following if these files exist using a new category named PSProfiles

AllUsersAllHosts       : C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1
AllUsersCurrentHost    : C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
CurrentUserAllHosts    : C:\Users\local-user\Documents\WindowsPowerShell\profile.ps1
CurrentUserCurrentHost : C:\Users\local-user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

Actual behavior

They are not considered as a persistence mechanism...


Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.16299.248
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.16299.248
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
p0w3rsh3ll added a commit that referenced this issue Jul 3, 2018
@p0w3rsh3ll
Copy link
Owner Author

It may not be exhaustive because it depends on the host. It's currently better than nothing.

@p0w3rsh3ll
Copy link
Owner Author

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

No branches or pull requests

1 participant