Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with tool #10

Open
ianeriksonVMware opened this issue Apr 4, 2017 · 4 comments
Open

error with tool #10

ianeriksonVMware opened this issue Apr 4, 2017 · 4 comments
Assignees
Labels

Comments

@ianeriksonVMware
Copy link

Hi,

Working with a customer who is trying the tool..

They are getting an error "Import-Clixml : Data at the root level is invalid. Line 1, position 1" while setting up the initial configuration.

2017-03-22_17-43-30 1

Snippet of cred file is as below
$newPScreds = Get-Credential -message "abcd"
$newPScreds | Export-Clixml nsxMgrCreds.xml

thanks,
Ian

@vScripter
Copy link
Member

@ianeriksonVMware What directory were you in when you exported/generated the credential file? / Have you verified that it exists and there is valid content within the file, located in the \Plugins\15 NSX directory?

If so, can you try the following and see if it helps?:

  1. Open ~\Plugins\00 Initialize\01 Connection Plugin for NSX.ps1 in you editor of choice
  2. On line 20, replace everything with the following:
    $creds = Import-Clixml "$PSScriptRoot\..\Plugins\15 NSX\nsxmgrCreds.xml"

@vScripter vScripter added the error label Apr 4, 2017
@vScripter vScripter self-assigned this Apr 4, 2017
@davehocking
Copy link
Contributor

davehocking commented Apr 4, 2017 via email

@davehocking
Copy link
Contributor

..did this get resolved?

@ianeriksonVMware
Copy link
Author

Hi, our Customer is working out of Singapore, so its taking some time to get feedback. Will update ASAP.

thanks,
Ian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants