En utilisant ce site, vous acceptez le politique de confidentialité.
Accepter
EnterinITEnterinITEnterinIT
  • MAISON
  • INFORMATIQUE PRO
  • TECHNOLOGIE
  • Microsoft
    • Azuré
    • ConfigMgr/SCCM
    • DPM
    • Orchestrateur
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Bureau 365
    • Bureau Insider
    • Power BI
    • Skype
    • Serveur SQL
    • Équipes
  • FENÊTRES
    • Centre d'administration Windows
    • Client Windows
    • Serveur Windows
  • Liste de collecte de requêtes SCCM
En lisant: PowerShell 7.0 Generally Available
Redimensionneur de policeAa
EnterinITEnterinIT
Redimensionneur de policeAa
  • MAISON
  • INFORMATIQUE PRO
  • TECHNOLOGIE
  • Microsoft
  • FENÊTRES
  • Liste de collecte de requêtes SCCM
Recherche
  • MAISON
  • INFORMATIQUE PRO
  • TECHNOLOGIE
  • Microsoft
    • Azuré
    • ConfigMgr/SCCM
    • DPM
    • Orchestrateur
    • Hyper-V
    • Microsoft Edge Insider
    • MSI
    • Bureau 365
    • Bureau Insider
    • Power BI
    • Skype
    • Serveur SQL
    • Équipes
  • FENÊTRES
    • Centre d'administration Windows
    • Client Windows
    • Serveur Windows
  • Liste de collecte de requêtes SCCM
Technologie

PowerShell 7.0 Generally Available

Publié en février 18, 2024
4 Lecture minimale
PARTAGER

PowerShell 7.0 Generally Available.

Contenu
What is PowerShell 7?Awesome! How do I get PowerShell 7?What operating systems does PowerShell 7 soutien?Attendez, what happened to PowerShell “Core”?Which Microsoft products already support PowerShell 7?

What is PowerShell 7?

PowerShell 7 is the latest major update to PowerShell, a cross-platform (Fenêtres, Linux, et macOS) automation tool and configuration framework optimized for dealing with structured data (e.g. Json, CSV, XML, etc.), REST APIs, and object models. PowerShell includes a command-line shell, object-oriented scripting language, and a set of tools for executing scripts/cmdlets and managing modules.

After three successful releases of PowerShell Core, we couldn’t be more excited about PowerShell 7, the next chapter of PowerShell’s ongoing development. Avec PowerShell 7, in addition to the usual slew of new cmdlets/APIs and bug fixes, we’re introducing a number of new features, y compris:

  • Pipeline parallelization with ForEach-Object -Parallel
  • New operators:
    • Ternary operator: a ? b : c
    • Pipeline chain operators: || et &&
    • Null coalescing operators: ?? et ??=
  • A simplified and dynamic error view and Get-Error cmdlet for easier investigation of errors
  • A compatibility layer that enables users to import modules in an implicit Windows PowerShell session
  • Automatic new version notifications
  • The ability to invoke to invoke DSC resources directly from PowerShell 7 (experimental)

The shift from PowerShell Core 6.x to 7.0 also marks our move from .NET Core 2.x to 3.1. .NET Core 3.1 brings back a host of .NET Framework APIs (especially on Windows), enabling significantly more backwards compatibility with existing Windows PowerShell modules. This includes many modules on Windows that require GUI functionality like Out-GridView et Show-Command, as well as many role management modules that ship as part of Windows.

Awesome! How do I get PowerShell 7?

D'abord, check out our install docs for Windows, macOS, or Linux. Depending on the version of your OS and preferred package format, there may be multiple installation methods.

If you already know what you’re doing, and you’re just looking for a binary package (whether it’s an MSI, ZIP, RPM, or something else), hop on over to our latest release tag on GitHub.

En plus, you may want to use one of our many Docker container images.

What operating systems does PowerShell 7 soutien?

PowerShell 7 supports the following operating systems on x64, y compris:

  • Fenêtres 7, 8.1, et 10
  • Serveur Windows 2008 R2, 2012, 2012 R2, 2016, et 2019
  • macOS 10.13+
  • Red Hat Enterprise Linux (RHEL) / CentOS 7+
  • Fedora 29+
  • Debian 9+
  • Ubuntu 16.04+
  • openSUSE 15+
  • Alpine Linux 3.8+
  • ARM32 and ARM64 flavors of Debian and Ubuntu
  • ARM64 Alpine Linux

Attendez, what happened to PowerShell “Core”?

Much like .NET decided to do with .NET 5, we feel that PowerShell 7 marks the completion of our journey to maximize backwards compatibility with Windows PowerShell. To that end, we consider PowerShell 7 and beyond to be the one, true PowerShell going forward.

PowerShell 7 will still be noted with the edition “Core” in order to differentiate 6.x/7.x from Windows PowerShell, mais en général, you will see it denoted as “PowerShell 7” going forward.

Which Microsoft products already support PowerShell 7?

Any module that is already supported by PowerShell Core 6.x is also supported in PowerShell 7, y compris:

  • Azure PowerShell (Az.*)
  • Annuaire actif
  • Many of the modules in Windows 10 et Windows Serveur (check with Get-Module -ListAvailable)

Sous les fenêtres, we’ve also added a -UseWindowsPowerShell switch to Import-Module to ease the transition to PowerShell 7 for those using still incompatible modules. This switch creates a proxy module in PowerShell 7 that uses a local Windows PowerShell process to implicitly run any cmdlets contained in that module.

For those modules still incompatible, we’re working with a number of teams to add native PowerShell 7 soutien, including Microsoft Graph, Bureau 365, et plus.

ÉTIQUETÉ:LinuxMacMacOSPowerShellUbuntuFenêtresFenêtres 10
Article précédent SCCM SQL Server Configuration for site upgrade Failed
Article suivant Windows Terminal Preview v0.9
Laisser un commentaire Laisser un commentaire

Laisser une réponse Annuler la réponse

Votre adresse email ne sera pas publiée. Les champs obligatoires sont marqués *

Ce site utilise Akismet pour réduire le spam. Découvrez comment les données de vos commentaires sont traitées.

Traduction

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
 Modifier la traduction
par Transposh - translation plugin for wordpress

Articles populaires

Configuration système requise pour Windows Server 2016
Serveur Windows
Liste de collecte de requêtes Configuration Manager
Liste de collecte de requêtes Configuration Manager
Gestionnaire de configuration
Navigation structurée/gérée activée sur les pages modernes dans les sites d'équipe classiques
Technologie
SCCM n'a pas réussi à obtenir les emplacements DP comme version attendue de MP
Gestionnaire de configuration

Messages récents

Installation et configuration de Fail2ban pour la protection SSH sur Ubuntu 24.04
Linux
Activation et configuration de FirewallD sur AlmaLinux
Linux
Création d'utilisateur et configuration de la clé SSH dans AlmaLinux
Linux
Comment réinitialiser le mot de passe sur AlmaLinux
Linux

© 2023 EnterinIT

Aller à la version mobile
bannière publicitaire
Content de te revoir!

Connectez-vous à votre compte

Nom d'utilisateur ou adresse e-mail
Mot de passe

Vous avez perdu votre mot de passe?