-
1. Re: Cannot Connect to CIM Server
LucD Jul 23, 2019 10:04 AM (in response to DanTheMan42)I don't think this has anything to do with PowerCLI nor with the vSphere version.
Looks like the Rename-NetAdapter cmdlet has a problem.
Can you run the code in the guest OS itself from a PS prompt?Make sure to logon with the same account you used for the Invoke-VMScript cmdlet.
-
2. Re: Cannot Connect to CIM Server
DanTheMan42 Jul 23, 2019 11:23 AM (in response to LucD)I was able to run this command in the guest OS from PS with the same account.
I was also receiving this error on other cmdlets besides Rename-NetAdapter.
Thanks for the timely reply!
-
3. Re: Cannot Connect to CIM Server
LucD Jul 23, 2019 11:46 AM (in response to DanTheMan42)Anything in the eventlogs that gives more info on what the error might be?
-
4. Re: Cannot Connect to CIM Server
DanTheMan42 Jul 24, 2019 7:07 AM (in response to LucD)I looked in the PowerShell Event log with the Get-EventLog -LogName 'Windows PowerShell' cmdlet and also looked through the computer event log. Nothing stood out as being relevant to the problem I was having. There were no errors in the PowerShell log, only warnings that said the following:
"The specified mount name 'vmstores' is already in use"
"The specified mount name 'vis' is already in use"
"Attempting to perform the NewDrive operation on the 'VimInventory' provider fail..."
The computer event log had no warnings or errors.
If neither of these is the right eventlog you were referring to, could you please be more specific?
-
5. Re: Cannot Connect to CIM Server
LucD Jul 24, 2019 7:32 AM (in response to DanTheMan42)No specific eventlog intended, just in general.
On another note, the messages that registry entries were marked for deletion.
Did you reboot the VM, and do still get the same error after that?