Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 728

Remove deleted AD account from Shared Access Virtual Machine List

$
0
0

I seem to be in a bit of a catch 22 here , I think I've hit the following issue with a virtual machine however rather than a User Role with a deleted AD account I have a VM that has shared Access with a deleted AD account. 

If I try to remove the AD account via SCVMM I get the following;

Error (813)
The specified owner is not a valid Active Directory Domain Services account.


Recommended Action
Specify a valid Active Directory Domain Services account, and then try the operation again.

Even trying powershell (my powershell skills are pretty limited) but using the following I get the same error;

$Resource = Get-VM | where {$_.Name -eq "VMNAME"}
Revoke-SCResource -Resource $Resource -Username "SID"

I tried adding a -force to the end as I know I've seen that used in the past for dead hosts but it doesn't seem to recognise it but that could just be me remembering it's use wrongly.

So I'm stuck in a situation where a self service user can't console to the VM because of a deleted AD account but I can't remove the account because it's been deleted - Suggestions anyone? I imagine I could do it via SQL but my SQL skills are much worse than my powershell so I'd rather not go messing with something I don't understand.



Viewing all articles
Browse latest Browse all 728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>