This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatique:windows:powershell [2025/05/12 15:05] – yahiko | informatique:windows:powershell [2025/08/12 13:20] (current) – yahiko | ||
|---|---|---|---|
| Line 165: | Line 165: | ||
| </ | </ | ||
| + | ===== Lister les utilisateurs connectés en RDP ===== | ||
| + | <code powershell> | ||
| + | Get-CimInstance -ClassName Win32_UserProfile | where {-not $_.Special} | select LocalPath, LastUseTime, | ||
| + | </ | ||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | |||
| + | ===== Uptime ===== | ||
| + | |||
| + | <code powershell> | ||
| + | (get-date) – (gcim Win32_OperatingSystem).LastBootUpTime | ||
| + | </ | ||