Written by

Question sansa stark · Sep 18, 2018

How to get the Windows SID number using Caché Command?

Hi All, Can any one please tell how to get the Windows SID number using Caché Command.

Comments

Rod Dorman · Sep 19, 2018

```SET Command="wmic useraccount get name,sid" SET $ZT = "CommandErr" OPEN Command:"QR" FOR { USE command READ Text USE $P SET Array($I(Array))=Text } CommandErr ; SET $ZT="" SET ZE=$ZE USE $P CLOSE command IF $P(ZE,">")'="

0