Show Quoted Text
| "Pascal-J" : | Power Shell
Show Quoted Text
C:\>powershell /?
PowerShell[.exe] [-PSConsoleFile | -Version ] [-NoLogo] [-NoExit] [-Sta] [-NoProfile] [-NonInteractive] [-InputFormat {Text | XML}] [-OutputFormat {Text | XML}]
[-File ] [-ExecutionPolicy
[-Command { - | [-args ]
PowerShell[.exe] -Help | -? | /?
-PSConsoleFile
un fichier console, utilisez Export-Console dans Windows PowerShell.
-Version
-NoLogo
-NoExit
-Sta
-NoProfile N'utilise pas le profil utilisateur.
-Noninteractive
-InputFormat
-OutputFormat Indique comment la sortie de Windows PowerShell est mise en forme. Les
-WindowStyle
Maximized ou Hidden.
-EncodedCommand
-File
-ExecutionPolicy
-Command
commande
utilisez le format : "& {}"
-Help, -?, /? Affiche ce message. Si vous tapez une commande PowerShell.exe dans
trait d'union (-), et non d'une barre oblique (/). Vous pouvez utiliser un trait d'union ou une barre oblique dans Cmd.exe.
EXEMPLES PowerShell -PSConsoleFile SqlSnapIn.Psc1 PowerShell -version 1.0 -NoLogo -InputFormat text -OutputFormat XML PowerShell -Command {Get-EventLog -LogName security} PowerShell -Command "& {Get-EventLog -LogName security}"
$command = 'dir "c:\program files" ' $bytes = [System.Text.Encoding]::Unicode.GetBytes($command) $encodedCommand = [Convert]::ToBase64String($bytes) powershell.exe -encodedCommand $encodedCommand