Recommended Posts

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;

 

  Quote

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.

Expand  


 

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.

So let me get my head around this, sorry I'm struggling to understand the question when the article you've linked is different to the problem you're having (as you've said).

 

There's an AD user that's been added to a user role inside SCVMM that at some point the user was deleted through AD users and groups. Now that user is trying to connect to a VM?

 

I am pretty far off, aren't I?

Yeah pretty far off...

 

OK so let me explain the whole thing.

 

I have a self service user who is trying trying to console into a VM using the App Controller Web Portal, they get an error that VMM has lost connection to the machine. I found the following Knowledge Base Article that suggested if the Self Service User Role had a member assigned that no longer existed then his symptom can be seen so remove it.

 

Now my issue is slightly different in that we don't assign users to the roles we do it by AD group and manage within AD and I've checked the group itself and no deleted user SID's so I know that's not the case. However I noticed that the VM itself is setup with shared access and the user shared the VM with 3 people. 2 of which are still with the company and one has left (just a SID remains).

 

This is why my problem above comes in, if I click remove I get the error regarding not being a valid AD user and same with powershell. Is that a little more clear?

This topic is now closed to further replies.
  • Posts

    • Charlie Manson, They must be his devotees.
    • Download Excel Quick and Easy (worth $12) for free by Steven Parker Claim your complimentary eBook worth $12 for free, before the offer ends on June 24. Drawn from the most important tasks in the latest bestselling Excel Bible , Excel Quick and Easy is your ticket to data mastery. Excel veterans Michael Alexander and Dick Kusleika distil the most essential and useful tasks you need to understand about the world's most popular spreadsheet program, from functions to charts, graphs, formulas and more. Prepare for a whirlwind tour of Excel, packed with simple and step-by-step guides to common and lesser-known Excel features. This book shows you how to: Create new spreadsheets and workbooks by entering and editing worksheet data Simplify working with large amounts of data by naming and moving ranges Make calculations and draw conclusions from your data by using formulas Visualize and present your data by creating functional charts The secret weapon in your productivity arsenal Being great at Excel is quickly becoming a standard expectation for a ton of employers and organizations, in all sorts of industries. Sharpening your skills can boost your workplace performance and make it easier to land promotions or find new roles. Excel Quick and Easy makes it a breeze to develop the proficiencies that help you stand out from your peers. Unique features of this book Step-by-step guides to the most commonly used and productive Excel tasks, from basic worksheet operations to formatting spreadsheets for hardcopy printing Intuitive explanations for making your data tell a compelling story with visualizations, including charts, graphs, and tables Advanced number-crunching techniques, including formulas and functions, that help you unlock fresh insights and new conclusions from your data Excel Quick and Easy is the perfect reference for brand-new Excel users trying to get up-to-speed quickly and confidently. It's also a must-read for anyone migrating from another spreadsheet program, like Google Sheets, or more experienced Excel users who need to solidify and improve their skills. If you're tired of stumbling through your spreadsheets and just “surviving” in Excel, grab a copy of Excel Quick and Easy and supercharge your productivity. You'll refine your understanding of the basics, learn brand-new skills and features, and become the Excel expert that every office desperately needs. This free to download offer expires June 24. How to get it Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last! Download Excel Quick and Easy (worth $12) for free Offered by Packt, view other free resources The below offers are also available for free in exchange for your (work) email: AI and Innovation ($21 Value) FREE – Expires 6/11 Unruly: Fighting Back when Politics, AI, and Law Upend [...] ($18 Value) FREE - Expires 6/17 SQL Essentials For Dummies ($10 Value) FREE – Expires 6/17 Continuous Testing, Quality, Security, and Feedback ($27.99 Value) FREE – Expires 6/18 VideoProc Converter AI v7.5 for FREE (worth $78.90) – Expires 6/18 Macxvideo AI ($39.95 Value) Free for a Limited Time – Expires 6/22 Excel Quick and Easy ($12 Value) FREE – Expires 6/24 The Inclusion Equation: Leveraging Data & AI ($21 Value) FREE – Expires 6/24 Microsoft 365 Copilot At Work ($60 Value) FREE – Expires 6/25 Natural Language Processing with Python ($39.99 Value) FREE – Expires 6/25 How to Engage Buyers and Drive Growth in the Age of AI ($22.95 Value) FREE – Expires 7/1 Using Artificial Intelligence to Save the World ($30.00 Value) FREE – Expires 7/1 Essential: How Distributed Teams, Generative AI, [...] ($18.00 Value) FREE – Expires 7/2 The Chief AI Officer's Handbook: Master AI leadership with strategies to innovate, overcome challenges, and drive business growth ($9.99 Value) FREE for a Limited Time – Expires 7/2 The Ultimate Linux Newbie Guide – Featured Free content Python Notes for Professionals – Featured Free content Learn Linux in 5 Days – Featured Free content Quick Reference Guide for Cybersecurity – Featured Free content We post these because we earn commission on each lead so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. Other ways to support Neowin The above deal not doing it for you, but still want to help? Check out the links below. Check out our partner software in the Neowin Store Buy a T-shirt at Neowin's Threadsquad Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: An account at Neowin Deals is required to participate in any deals powered by our affiliate, StackCommerce. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through the branded deals site.
    • At least Starship Block 2 is consistent in failure.  They were lucky it was not the stack. That would have been really huge. 
    • VR is dead on the PS at this rate, sales just aren't there. Way more VR push on the PC, even Sony knows this and that's why they added PC support to the PSVR.
  • Recent Achievements

    • First Post
      MikeK13 earned a badge
      First Post
    • One Month Later
      OHI Accounting earned a badge
      One Month Later
    • Week One Done
      OHI Accounting earned a badge
      Week One Done
    • First Post
      Thornskade earned a badge
      First Post
    • Week One Done
      Higante88 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      716
    2. 2
      ATLien_0
      273
    3. 3
      Michael Scrip
      203
    4. 4
      +FloatingFatMan
      182
    5. 5
      Steven P.
      128
  • Tell a friend

    Love Neowin? Tell a friend!