Forum Discussion

Alpha45's avatar
Alpha45
Brass Contributor
Feb 05, 2025

Error PowerShell 30015-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

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

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

Thanks

 

1 Reply

  • Hi,

    The error “Missing termination character in the string” usually appears when the path contains spaces or escape characters that break the string.

    In your case, the path: D:\\Ripristino\\File Ripristino\\Office\\Office

    contains a space (File Ripristino) and double backslashes. PowerShell interprets this as an unterminated string, which also explains the Set‑Location binding error.

     

    Try using a quoted literal path:

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

     

    Or, if you prefer escaping:

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

     

    Using -LiteralPath avoids PowerShell interpreting backslashes or special characters.

    Let me know if the error persists or if you want to validate your ODT command.