We have a number of windows 2012 server core systems with powershell setup as the default shell using the following commands:
$RegPath = "Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\winlogon"
Set-ItemProperty -Confirm -Path $RegPath -Name Shell -Value 'cmd.exe /C start /max PowerShell.exe -noExit'
I've figured out that we can customize the powershell font color with a special powershell script at c:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1. This script gets used by all users.
However now I want to customize the font face and font size (again for all users) that's persistent. I.E. If I log out of the server and log back in I want the settings to be retained. Likewise if I login as administrator, or my own account powershell should look identical - use the same font color, font face and font size.
With Powershell ISE it seems possible to set the font face and font size using:
$psISE.Options.FontName = 'Lucida Sans Console'
$psISE.Options.FontSize = 14
Whats the equivalent for powershell itself though?