I can't get this to work but the links in the script work fine. I could not get this to run without errors as a batch file so I changed it to a power script file and I get a different error after I set-executionpolicy unrestricted. Am I doing this wrong? I'm shooting at straws now but here is the error I get running the script directly from powerscript. Seems the interpreter is reading the parenthesis and doesn't recognize the double quotes. Like I'm probably doing this wrong. Most of the answers up here are very vague and incomplete. They expect I knew how to do this last year and use that method on the last post.
PS C:\users\geekpros\desktop\Media Creation Tool by version> .\mediacreationtool.ps1
At C:\users\geekpros\desktop\Media Creation Tool by version\MediaCreationTool.ps1:285 char:78
... et "S=%SystemRoot%" & set "nx0=%~nx0" & call set "nx0=%%nx0:)=]%%" & ...
~
Unexpected token ')' in expression or statement.
At C:\users\geekpros\desktop\Media Creation Tool by version\MediaCreationTool.ps1:286 char:24
set "PATH=%S%\Sysnative;%S%\Sysnative\windowspowershell\v1.0\;%S%\Sys ...
~
Missing closing ')' in expression.
At C:\users\geekpros\desktop\Media Creation Tool by version\MediaCreationTool.ps1:294 char:4
for /f "delims=:" %%s in ('echo;prompt $h$s$h:^|cmd /d') do set "|=%% ...
I can't get this to work but the links in the script work fine. I could not get this to run without errors as a batch file so I changed it to a power script file and I get a different error after I set-executionpolicy unrestricted. Am I doing this wrong? I'm shooting at straws now but here is the error I get running the script directly from powerscript. Seems the interpreter is reading the parenthesis and doesn't recognize the double quotes. Like I'm probably doing this wrong. Most of the answers up here are very vague and incomplete. They expect I knew how to do this last year and use that method on the last post.
PS C:\users\geekpros\desktop\Media Creation Tool by version> .\mediacreationtool.ps1 At C:\users\geekpros\desktop\Media Creation Tool by version\MediaCreationTool.ps1:285 char:78