配置文件的力量

%windir%system32Windows­PowerShellv1.0profile.ps1 用于计算机的所有用户和所有外壳。
%windir%system32Windows­PowerShellv1.0Microsoft.Power­Shell_profile.ps1 用于计算机的所有用户,但仅用于 Microsoft.PowerShell 外壳。
%UserProfile%DocumentsWindows­PowerShellprofile.ps1 仅用于当前用户和所有外壳。
%UserProfile%DocumentsWindowsPowerShellMicro­soft.PowerShell_profile.ps1 仅用于当前用户和 Microsoft.PowerShell 外壳。

https://technet.microsoft.com/zh-cn/magazine/2008.10.windowspowershell.aspx

原文地址:https://www.cnblogs.com/IvanChen/p/4488536.html