Ask a question

Justin Tuson

SBS 2011 Standard to Windows Server 2019 - Guide step 19.1

Hi,

I've tried, from an elevated Powershell, to run the command

Remove-Computer -UnjoinDomaincredential webgum\administrator -PassThru -Verbose –Restart

But I'm getting the following error 

Remove-Computer : A parameter cannot be found that matches parameter name 'UnjoinDomaincredential'.

At line:1 char:40

+ Remove-Computer -UnjoinDomaincredential <<<<  webgum\administrator -PassThru -Verbose -Restart   

 + CategoryInfo          : InvalidArgument: (:) [Remove-Computer], ParameterBindingException    

+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.RemoveComputerComman

 

I then just followed the screen shot and typed Remove-Computer but obviously didn't get the window pop-up asking for password. So I have stopped here and HAVE NOT restarted the computer as I'm concerned that it will restart and that I will not be able to log back in as a local admin

What should I do to get the full remove computer command to work and prompt for a password?

 

A screen shot can be seen here of where I am

[img]https://i.ibb.co/tPQCFb1/step19-1.png[/img]


asked06/05/2019 00:12
116 views
Add Comment
Last Activity 06/05/2019 04:04

1 Answer(s)

  • Mariette Knap
    Add Comment
Add an Answer