Forum Discussion

Alpha45's avatar
Alpha45
Brass Contributor
Feb 05, 2025

Error PowerShell 300-1015 (80)

Hello,

using PowerShell for office installation, with ODT, it gives me the following error shown in the photo, or opening the console in any folder with the right mouse button "open the P.S. window here" gives an error:

Missing termination character in the string: ". + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

or 

While if I run the command on the desktop, the window opens normally!

Thanks

Set-Location : Impossibile trovare un parametro posizionale che accetta l'argomento 'Ripristino\Office\Office'. In riga:1 car:1 + Set-Location -literalPath D:\Ripristino\File Ripristino\Office\Office ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Set-Location], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

 

  • It looks like PowerShell is having trouble interpreting the file path because of the spaces in D:\Ripristino\File Ripristino\Office\Office. In PowerShell, paths with spaces must be enclosed in quotes or properly escaped

    Here’s how you can fix it

    Set-Location -LiteralPath "D:\Ripristino\File Ripristino\Office\Office"

    or

    Set-Location D:\Ripristino\File` Ripristino\Office\Office

    The backtick (`) is PowerShell's escape character.

Resources