none
Referencing to Variable in WMI Query : RRS feed

  • Question

  •  

    Hello

    Referencing to Variable in WMI Query :

    In the following Code

    I Want to relace 'ONENOTE.EXE' with the Variable $ProcName (in the "name" Parameter)

    $ProcName = "ONENOTE.EXE"
    $ProcItems = get-wmiobject -class "Win32_Process" -namespace "root\cimv2" -computername $strComputer -filter "name='ONENOTE.EXE'"

     

    I tried some syntax option non off them works

    thanks

    itzik

    Tuesday, January 15, 2008 9:30 AM

Answers