Hi,
I have retrieved the Vault id and would now like to retrieve the password for a user name, but I do not know how to retrieve the entryid required in the command, can you assist me please? I am using the Get-DSEntrySensitiveData <Entry Id guid > command.
Thanks,
Jen
Hello Jen,
Here are some ways to retrieve the information you are looking for.
Do not hesitate if you have any more questions regarding the module.
Best regards,
Alexandre Martigny
Thanks Alexandre. I am trying to get all of the entries now to get the id of one of them. When I execute this, I get an error:
Get-DSEntry -VaultId "00000000-0000-4e82-8bdb-85441a3f70e4" (fake guid)
isSuccess : False
originalResponse :
Exception : System.ArgumentException: Conversion from JSON failed with error: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Microsoft.PowerShell.Commands.JsonObject.ConvertFromJson(String input, Boolean returnHashtable, Nullable`1 maxDepth, ErrorRecord& error)
--- End of inner exception stack trace ---
at Microsoft.PowerShell.Commands.JsonObject.ConvertFromJson(String input, Boolean returnHashtable, Nullable`1 maxDepth, ErrorRecord& error)
at Microsoft.PowerShell.Commands.ConvertFromJsonCommand.ConvertFromJsonHelper(String input)
at Microsoft.PowerShell.Commands.ConvertFromJsonCommand.EndProcessing()
at System.Management.Automation.CommandProcessorBase.Complete()
ErrorMessage : Conversion from JSON failed with error: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
StandardizedStatusCode : 0
Body :
Hello Jennifer,
Please try again after adding the "-All" switch parameter after your command. There seems to be a case that slipped by me.
Get-DSEntry -VaultID $YourVaultId -All
Best regards,
Alexandre Martigny