Witam pisze sobie teraz program do pobierania wszystkich danych z komputera za pomocą komend cmd i powershella i w c++ mam taki kod
system("powershell Get-LocalUser > C:/Informacje_o_komputerze.txt")
i w pliku mam takie cos
get-localuser : The term 'Get-LocalUser' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ get-localuser
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-localuser:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
oczywiście program uruchamiam z uprawnieniami administratora
sama komenda w sobie działa i powinna wypluć kod o nazwach kont i które są aktywne
mam windows 10 64 oczywiście oryginalny i aktywowany.