Steps to attempt
- Run in admin shell
notepad $Profile
- If fails, in admin shell
New-Item -ItemType File -Path $PROFILE -Forcenotepad $Profile
- If fails (unlikely) still in admin shell
Set-ExecutionPolicy RemoteSigned- Go to step 1
Videos
Hi All,
I'm familiar with using a PowerShell ISE 'profile file' in which to store useful settings and content you'd like available across PowerShell ISE sessions on a given host.
In this instance, that file has the standard name 'Microsoft.PowerShellISE_profile.ps1'.
Almost my entire PowerShell experience to date has been limited to using PowerShell ISE. If I would like to make similar chunks of code available to myself using regular Non-ISE PowerShell, I would have thought I could create a file with name 'profile.ps1' and put it in the location defined by $PSHOME.
I tried that, but I can't see a sign that PowerShell is 'recognising' the file I placed there.
I'm assuming I'm missing something key in terms of differences between PowerShell.exe and PowerShell ISE. Is there anything equivalent to non-ISE PowerShell in terms of 'profile files' or similar?