wmic:- Error – “expression for the alias undefined”

Forewarn

Same Story.

No Slumber for the wicked and lazy.

 

WMI

WMIC

WMIC – ALIAS

WMIC – ALIAS – USERACCOUNT

Syntax

wmic useraccount 

 

Sample – Query – Base

wmic useraccount

 

Sample – Query – Filter ( 1 )

wmic useraccount " where name like '%joe%' "

 

Output – Textual

>wmic useraccount " where name like '%joe%' "
'PWhere' expression for the alias undefined.

>

 

Output – Image

 

Explanation
  1. Output
    • System Output
      • Expression for the alias undefined
    • Meaning
      • Syntax Error
Sample – Query – Filter ( 2 )

wmic useraccount " where name like '%joe%' "

 

Output – Textual

>wmic useraccount where "name like '%joe%' "
No Instance(s) Available.

 

Output – Image

 

Explanation
  1. Output
    • System Output
      • No Instance(s) Available
    • Meaning
      • No Error
      • Just no principal bearing the username “Joe

 

Summary

Computers are kind of funny.

There is an Island between:-

  1. wmic useraccount ” where name like ‘%joe%’ “
  2. wmic useraccount where ” name like ‘%joe%’ “

 

 

Leave a comment