Powershell command not working!

On a Windows 10 - 64 bit laptop running Windows 10 version (1709) I have been asked to re-register all .dll files to try solve a problem causing an exe-file not to start. In order to do so, I am opening the Windows Power Shell admin prompt (Cmd prompt) and type: for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1

However I then get the following error: "At line: 1 char: 4
+ for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1
+       ~
+ Missing opening '(' after keyword 'for'.

Se enclosed screen capture

I have seen this command with the same syntax at several offical Microsoft websites, so it is a bit strange!

What to do?
Dag WoltersAsked:
Who is Participating?
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
That's a Command Prompt (cmd.exe) line, so just use that one instead of PowerShell.
Dag WoltersAuthor Commented:
Thanks a lot QLemo! I thought these two were the same thing! I guess you learn every day!
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.

All Courses

From novice to tech pro — start learning today.