I launch Windows Powershell (by hitting the windows key, typing "powershell" and pressing enter which launches C:\Windows\System32\WindowsPowerShell\v1.0
) and type $profile
and press enter and see WindowsPowerShell\Microsoft.PowerShell_profile.ps1
As far as I know, this is not a valid path. I was hoping for something like C:\Windows\...
When I type $profile | Format-List * -Force
, however, there is some progress and I get
AllUsersAllHosts : C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1
AllUsersCurrentHost : C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
CurrentUserAllHosts : WindowsPowerShell\profile.ps1
CurrentUserCurrentHost : WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Length : 50
However the CurrentUserAllHosts
and CurrentUserCurrentHosts
are still non-paths. What do these non-paths mean? Do they refer to some hidden values or do I need to set some system values somewhere?
Here is my $PsVersionTable.PsVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 14393 206
Here are the results of Get-Host
Name : ConsoleHost
Version : 5.1.14393.206
InstanceId : a2a61a42-f2ee-46b9-b67a-ef441301bdb8
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
[Environment]::GetFolderPath([Environment+SpecialFolder]::Personal)
? – RavenousC:\Users\userNamexxx\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
However there is no such folder nor the file ! – Divisor[Environment]::GetFolderPath("MyDocuments")
and open CMD and runecho %USERPROFILE%
? – Gonsalves$Profile.CurrentUserAllHosts
=>C:\Users\ebelew\Documents\WindowsPowerShell\profile.ps1
, so this is likely a local thing. – ReasonedC:\Users\marki
toC:\Users\mark
and then Windows got confused somehow. Now that I have it back to the defaultmarki
maybe it got fixed. – Interpretive