M
Mario Colombini
Guest
Hi, let me state that I am new to the Microsoft environment.
I'm trying to get the sid of the accounts registered on a machine part of a domain
from the domain controller of the domain itself.
When I run the following command, everything works fine:
Wmic /node: "Computer IP" /USER: "myDomain myUser" /password: "myPassword" /PRIVILEGES: ENABLE calls the creation process "cmd.exe" /c (user account wmic where name = "localUser" gets sid> pathLog)"
but when I try to do this:
Wmic /node:'computer's IP' /USER:"myDomain\myUser" /password:'myPassword' /PRIVILEGES:ENABLE process call create "cmd.exe /c (wmic useraccount where name="domainUser" get sid > pathLog\log.txt)"
I get an empty file even if the command, launched directly from the target machine, produces the searched result.
wmic useraccount where name="domainUser" get sid > pathLog\log.txt
I can't understand where the problem may be, except in a Windows security policy.
Thank you very much for helping! Mario.
Continue reading...
I'm trying to get the sid of the accounts registered on a machine part of a domain
from the domain controller of the domain itself.
When I run the following command, everything works fine:
Wmic /node: "Computer IP" /USER: "myDomain myUser" /password: "myPassword" /PRIVILEGES: ENABLE calls the creation process "cmd.exe" /c (user account wmic where name = "localUser" gets sid> pathLog)"
but when I try to do this:
Wmic /node:'computer's IP' /USER:"myDomain\myUser" /password:'myPassword' /PRIVILEGES:ENABLE process call create "cmd.exe /c (wmic useraccount where name="domainUser" get sid > pathLog\log.txt)"
I get an empty file even if the command, launched directly from the target machine, produces the searched result.
wmic useraccount where name="domainUser" get sid > pathLog\log.txt
I can't understand where the problem may be, except in a Windows security policy.
Thank you very much for helping! Mario.
Continue reading...