Using remove-computer to dedomain to workgroup failed,
What error did you get? Did you use the -Force switch?
but using GUI to dedomain to workgroup workgroup succeeded.
Then just use the GUI to perform the function.
It is not clear what you are trying to accomplish and why. This is an English based forum, so we rely on the browser's translate feature to read your question. You may wish to post your question in a native language forum.