Question [/Build] PS V5 Preview

Plus d'informations
il y a 8 ans 10 mois #19966 par Richard Lazaro
Réponse de Richard Lazaro sur le sujet Re:[/Build] PS V5 Preview
On arrive vraiment sur quelque chose d'extremement puissant.
Bon aprés faut que la V5 soit déployer chez les clients et PSRemoting de configuré correctement (https)

Think-MS : (Get-Life).Days | %{ Learn-More }

\\"Problems cannot be solved by the same level of thinking that created them.\\" - Albert Einstein

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 10 mois #19969 par Laurent Dardenne
Réponse de Laurent Dardenne sur le sujet Re:[/Build] PS V5 Preview
Richard Lazaro écrit:

On arrive vraiment sur quelque chose d'extremement puissant.

Reste à avoir une documentation conséquente :whistle:

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 10 mois #19973 par Richard Lazaro
Réponse de Richard Lazaro sur le sujet Re:[/Build] PS V5 Preview
Une quoi ? Désolé je connais pas ce mot :dry:

Think-MS : (Get-Life).Days | %{ Learn-More }

\\"Problems cannot be solved by the same level of thinking that created them.\\" - Albert Einstein

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 6 mois #20871 par Laurent Dardenne
Réponse de Laurent Dardenne sur le sujet Re:[/Build] PS V5 Preview
Un sondage concernant la v5.
Source .

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 2 mois #21332 par Laurent Dardenne
Réponse de Laurent Dardenne sur le sujet Re:[/Build] PS V5 Preview
Manage Windows with PowerShell Direct
\"
You can use PowerShell Direct to remotely manage a Windows 10 or Windows Server Technical Preview virtual machine from a Windows 10 or Windows Server Technical Preview Hyper-V host. PowerShell Direct allows PowerShell management inside a virtual machine regardless of the network configuration or remote management settings on either the Hyper-V host or the virtual machine. This makes it easier for Hyper-V Administrators to automate and script virtual machine management and configuration.
\"

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 1 mois #21599 par Laurent Dardenne
Réponse de Laurent Dardenne sur le sujet Re:[/Build] PS V5 Preview
La v5 rtm propose l'attribut Obsolete
[code:1]
@'
[Obsolete()] # No error with PS v4 or v2
param()
write-host \"Test script\"
'@ > c:\temp\Test.ps1
c:\temp\Test.ps1
# WARNING: The command 'Test.ps1' is obsolete.
# Test script

function Test {
[Obsolete()] #No error with PS v4 or v2 **
Param() #mandatory
Write-host \"Test function\"
}
Test
# WARNING: The command 'Test' is obsolete.
# Test function

function Test {
param (
#No error with PS v4 or v2
[Obsolete()] $Name
)
Write-host \"Test function parameter\"
}
Test
# Test function parameter
Test –Name x
# WARNING: Parameter 'Name' is obsolete.
# Test function parameter

$WarningPreference='stop'
Test -Name x
#WARNING: Parameter 'Name' is obsolete.
#Test : The running command stopped because the preference variable \"WarningPreference\" or common parameter is set to Stop: Parameter 'Name' is obsolete.

$error[0].ErrorRecord.InvocationInfo
#...
[/code:1]
Le raccourcis [Obsolete] est reconnu et celui nommé [Accelerators] n'existe plus.

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.091 secondes
Propulsé par Kunena