Not able to delete the folders in windows 7

Earlier this host was linked to AD and so any users from that AD were able to login. Now I have unlinked this host from AD and want to delete users's directory but I see error as in attach file. How to fix it?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
If the server is gone so you cannot connect to delete then download unlocker and delete the folder with unlocker

Here is a decent source for unlocker:
David Johnson, CD, MVPOwnerCommented:
you could from an elevated command prompt (run as administrator)
takeown /f c:\users\username /r /d n
rd c:\users\username /s /q

Open in new window

beer9Author Commented:
Thanks David, Do I need to run it in 'cmd' or 'powershell' ?
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

beer9Author Commented:
I am seeing following error in 2nd step in powershell

PS C:\Users> rd C:\Users\user1  /s /q
Remove-Item : A positional parameter cannot be found that accepts argument '/s'.
At line:1 char:3
+ rd <<<<  C:\Users\user1  /s /q
    + CategoryInfo          : InvalidArgument: (:) [Remove-Item], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

Open in new window

JohnBusiness Consultant (Owner)Commented:
Did you try unlocker? You just want to delete some folders.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
beer9Author Commented:
Thanks John, I am trying unlocker now
David Johnson, CD, MVPOwnerCommented:
elevated command prompt to run those 2 commands.
JohnBusiness Consultant (Owner)Commented:
@beer9 - I was happy to help. Thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.