Could anyone help me deduce why the following script is giving me and error?
It’s returning the following error:
New-Object : Exception calling ".ctor" with "1" argument(s): "The given path's format is not supported." At C:userstest.userdesktopautoconfigffscript.ps1:22 char:21 + $oFile = New-Object <<<< System.IO.FileInfo $Path + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCom Test-Path : The given path's format is not supported. At C:userstest.userdesktopautoconfigffscript.ps1:24 char:16 + if ((Test-Path <<<< -Path $Path) -eq $false) + CategoryInfo : InvalidOperation: (C:Userschrist...le.ps1cert8.db:String) [Test-Path], N ception + FullyQualifiedErrorId : ItemExistsNotSupportedError,Microsoft.PowerShell.Commands.TestPathCommand
submitted by /u/xkillmequickx
[link] [comments]
The post Firefox Profile Script Error appeared first on How to Code .NET.