Skip to content

Instantly share code, notes, and snippets.

Windows PowerShell vs. PowerShell Core

1. Windows PowerShell是否还有未来?

没有,未来是属于PowerShell Core的。就目前来看,微软只会提供Windows PowerShell的Bug修复和安全更新,只有PowerShell Core才有功能更新。

2. 我该继续用Windows PowerShell还是PowerShell Core?

根据你的环境需要。如果你的所有系统都装有PowerShell Core,你应该考虑转移了。尽管如此,PowerShell Core还处于新生阶段,还是会有一定的风险的。

3. 我可以在同一台电脑上同时运行Windows PowerShell和PowerShell Core么?

可以。

@chenrylee
chenrylee / Restart-V2RAY.ps1
Created May 30, 2018 01:13
Restart v2ray, and run v2ray without UI, requires Windows 8.1 and above.
function Restart-V2RAY {
$v2ray_home = "D:\Program Files\v2ray"
Stop-Process -Name v2ray
Start-Process "$v2ray_home\v2ray.exe" -WindowStyle Hidden
Start-Sleep -Milliseconds 500
Get-Process -Name v2ray -ErrorVariable v2ray | Out-Null
if (!$v2ray) {