This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
powershelldump [2019/02/21 09:30] stdevaux |
powershelldump [2024/04/04 10:19] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== PowerShell Playground ====== | ====== PowerShell Playground ====== | ||
+ | ===== Version de powershell ===== | ||
<code powershell> | <code powershell> | ||
Line 13: | Line 14: | ||
5.1.17134.590 | 5.1.17134.590 | ||
</ | </ | ||
+ | |||
+ | * Piper dans Get-Member pour connaitres les proprietes de l' | ||
+ | * **Start-Transcript** et **Stop-Transcript** pour sauvegarder l' | ||
+ | * | ||
+ | |||
+ | |||
+ | ===== PsSession ===== | ||
+ | |||
+ | **Sur le serveur / machine destination** | ||
+ | <code powershell> | ||
+ | #Il faut configurer winrm | ||
+ | winrm quickconfig | ||
+ | </ | ||
+ | \\ | ||
+ | **Sur le client** | ||
+ | <code powershell> | ||
+ | PS C: | ||
+ | |||
+ | Id Name ComputerName | ||
+ | -- ---- ------------ | ||
+ | 7 WinRM7 | ||
+ | | ||
+ | |||
+ | PS C: | ||
+ | |||
+ | PS C: | ||
+ | |||
+ | Handles | ||
+ | ------- | ||
+ | | ||
+ | 563 13 | ||
+ | 212 12 | ||
+ | 310 30 25116 | ||
+ | 127 13 | ||
+ | | ||
+ | | ||
+ | 530 37 19792 13624 29,27 | ||
+ | 0 | ||
+ | 111 13 | ||
+ | | ||
+ | 193 10 | ||
+ | 291 40 43576 | ||
+ | 493 38 57084 54164 | ||
+ | 142 17 | ||
+ | 318 22 44632 49228 | ||
+ | 280 14 | ||
+ | | ||
+ | 363 26 | ||
+ | 163 | ||
+ | 305 32 | ||
+ | 362 14 | ||
+ | 276 18 | ||
+ | 329 16 12116 | ||
+ | | ||
+ | 316 24 | ||
+ | 197 15 | ||
+ | 580 54 16940 10604 32,75 996 | ||
+ | 256 | ||
+ | | ||
+ | 236 12 | ||
+ | 101 13 | ||
+ | 555 | ||
+ | | ||
+ | 161 14 | ||
+ | 122 14 11864 16704 37,30 | ||
+ | 134 15 | ||
+ | 120 12 | ||
+ | 137 11 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | 211 34 46988 51228 | ||
+ | 197 33 45988 50108 | ||
+ | 195 33 45512 50088 | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Enter-PsSession** <code powershell> | ||
+ | PS C: | ||
+ | |||
+ | [isti-dc-ulb]: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||