I tried that before I posted on here, just forgot to mention it...
I used the ID Only switch, and GetmachineID switch , seperately. I just get a return of "ResultCode = 0xdb000002; Result Description = The database has not been created or initialized yet"
I think it should be -command:getlocalmachinename -file:t.txt -idonly
you don't need admin creds to get the local ID, but you DO if you want to get the name. If you need that, then the command is telling you that it can't connect to the listed database name.
whats the command line you are using?
sbadmcl -adminuser:xxxxxx -admipwd:xxxxxxx -command:getlocalmachinename -idonly:true
where did you get :true from? :-)
you also need -adminpwd, not -admipwd. that won't work.
and finally, you don't need admin account details if you only want the id, but you DO need the -file parameter.
I got ":true" because the default is false and I wanted that information, and every other switch you use with SBADMCL needs some parameter.
Sorry about the typo on adminpwd:
Why do I have to write it to a file? I just want it to display on my rclient session.
I ran "sbadmcl -command:getlocalmachinename -idonly -file:id.txt
ResultCode = 0xe0050004
ResultDescription = The wrong version of the Endpoint Encryption for PC is currently active
You need to use a similar version of the API to the client you are running - what are the two versions?
When I run the command I get:
Executable version : 220.127.116.11
DLL version : 18.104.22.168
The client on this machine is 5.2.1
you are a version apart - you need to use 5.2 apis on a 5.2 client.