Represents an environment or system environment setting on a Windows computer system
| Functions: | |
| Type: | |
| Toolsets: |
New-CimInstance -ClassName Win32_Environment -Property @{Name="PATH";VariableValue="C:\hackertools; C:\Windows\System32;C:\Windows";UserName="<SYSTEM>"} -CimSession $s
Usecase
$s using New-CimSession
PATH using Get-CimInstance and then prefix it with the malicious path
ROOT\Cimv2