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?
Screenshot-2015-11-18-08.40.05.png
beer9Asked:
Who is Participating?
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:  http://download.cnet.com/Unlocker/3000-2248_4-10493998.html
0
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

0
beer9Author Commented:
Thanks David, Do I need to run it in 'cmd' or 'powershell' ?
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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

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

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
0
David Johnson, CD, MVPOwnerCommented:
elevated command prompt to run those 2 commands.
0
JohnBusiness Consultant (Owner)Commented:
@beer9 - I was happy to help. Thanks.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.