.. / New-CimInstance

Creates a CIM instance


Functions:
Type:
Toolsets:

Manage

Create new instance

New-CimInstance -ClassName Win32_Environment -Property @{Name="testvar";VariableValue="testvalue";UserName="<SYSTEM>"} -CimSession $s
Usecase
Change PATH environment variable for search order hijacking

Comments
Mitre Att&ck
T1047




Updated: 2023-07-01
Contributor: Arris Huijgen (bitsadmin)