Overview
PowerShell 7 කියන්නේ built-in Windows PowerShell 5.1 එකේ modern, open-source, cross-platform successor එක. ඒක පරණ version එක ළඟ side by side install වෙනවා, Windows, macOS, සහ Linux වල run වෙනවා. මේ guide එකෙන් install, use, සහ remove කරන ආකාරය පෙන්නනවා.
PowerShell 7 කියන්නේ PowerShell එකේ modern, cross-platform version එක.
Key Takeaways
- PowerShell 7 Windows PowerShell 5.1 ළඟ install වෙනවා — දෙකම coexist වෙන්න පුළුවන්.
- ඒක pwsh විදිහට launch වෙනවා (5.1 වලට powershell).
- winget, official MSI, හෝ Microsoft Store එකෙන් install කරන්න.
- ඒක cross-platform, open source, regular සහ LTS releases එක්ක.
PowerShell 7 vs Windows PowerShell
- Windows PowerShell 5.1 Windows එකේ built-in, powershell විදිහට launch වෙනවා.
- PowerShell 7 (pwsh) අලුත්, වේගවත්, cross-platform, actively developed.
- Stability වලට LTS release එක, අලුත්ම features වලට current release එක තෝරන්න.
Method 1 — winget එකෙන් Install කරන්න (Recommended)
1. Windows PowerShell හෝ Command Prompt open කරන්න.
2. Run: winget install --id Microsoft.PowerShell --source winget
3. Install වෙනකම් ඉන්න.
4. pwsh type කරලා launch කරන්න.
Method 2 — MSI එකෙන් Install කරන්න
1. GitHub එකේ official PowerShell releases page එකට යන්න (github.com/PowerShell/PowerShell).
2. Windows x64 වලට latest stable (හෝ LTS) MSI එක download කරන්න.
3. Installer එක run කරලා prompts follow කරන්න.
4. Start menu එකෙන් PowerShell 7 open කරන්න.
Method 3 — Microsoft Store
1. Microsoft Store open කරලා "PowerShell" search කරන්න.
2. Official PowerShell app එක install කරන්න.
3. ඒක Store එක හරහා automatically update වෙනවා.
macOS සහ Linux
- macOS — Homebrew එකෙන් install කරන්න: brew install --cask powershell.
- Linux — Microsoft's repository පාවිච්චි කරලා ඔබේ distro's package manager (apt, dnf, ආදිය) එකෙන් install කරන්න.
- ඕනෑම platform එකක start කරන්න pwsh run කරන්න.
Uninstall කරන්නේ කොහොමද
1. Settings > Apps > Installed apps open කරන්න.
2. PowerShell 7 හොයලා Uninstall click කරන්න.
3. නැත්නම් winget එකෙන් remove කරන්න: winget uninstall Microsoft.PowerShell.
Troubleshooting
Problem: pwsh recognized නෑ.
Solution: PATH එක refresh වෙන්න අලුත් terminal එකක් open කරන්න, නැත්නම් reinstall කරලා "Add to PATH" select වුණාද බලන්න.
Problem: winget නෑ.
Solution: Microsoft Store එකෙන් App Installer install කරන්න, නැත්නම් MSI method එක පාවිච්චි කරන්න.
Problem: කොයි version එකද install කරන්නේ?
Solution: Production stability වලට LTS release එක; අලුත්ම features වලට current release එක.
Problem: Scripts run වෙන්නේ නෑ.
Solution: PowerShell 7 එකේ ඕන විදිහට execution policy එක set කරන්න (Set-ExecutionPolicy RemoteSigned).
Conclusion
PowerShell 7 එකෙන් Windows PowerShell ළඟ සතුටින් තියෙන modern, cross-platform shell එකක් ගේනවා. ඉක්මන්ම setup එකට winget එකෙන් install කරලා, pwsh විදිහට run කරලා, ඔබේ අවශ්යතාවට LTS හෝ current තෝරන්න.
About TechHub
මේ guide එක TechHub Knowledge Base එකේ කොටසක්. තව step-by-step IT guides සහ support වලට techhub.com.lk එකට යන්න.















