tag:blogger.com,1999:blog-2857779700332084475.post4213680495122337407..comments2023-04-14T18:55:22.599+03:00Comments on SharePoint Trenches: Create ZIP Archive in PowerShell and SharePoint IIS and ULS archiving scriptsIvan Yankulovhttp://www.blogger.com/profile/01518276480144054762noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2857779700332084475.post-50340839402121056012016-06-30T22:26:07.334+03:002016-06-30T22:26:07.334+03:00Hi Yagya,
Can you give me example log name from t...Hi Yagya,<br /><br />Can you give me example log name from the farm? It seems that there is an issue during the log time parsing.Ivan Yankulovhttps://www.blogger.com/profile/01518276480144054762noreply@blogger.comtag:blogger.com,1999:blog-2857779700332084475.post-56048255983123805992016-06-29T17:46:15.151+03:002016-06-29T17:46:15.151+03:00ULS archive script is giving below error
Cannot f...ULS archive script is giving below error<br /><br />Cannot find an overload for "op_Subtraction" and the argument count: "2".<br />At E:\Scripts\ULS_Achive\New-ULSLogArchive (2).ps1:113 char:3<br />+ $timeSpan = ((Get-Date) - ($logDayTime))<br />+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br /> + CategoryInfo : NotSpecified: (:) [], MethodException<br /> + FullyQualifiedErrorId : MethodCountCouldNotFindBest<br /> <br />Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."<br />At E:\Scripts\ULS_Achive\New-ULSLogArchive (2).ps1:112 char:3<br />+ $logDayTime = [System.DateTime]::ParseExact($logDay, 'yyyyMMdd', $null)<br />+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br /> + CategoryInfo : NotSpecified: (:) [], MethodInvocationException<br /> + FullyQualifiedErrorId : FormatExceptionAnonymoushttps://www.blogger.com/profile/07107178658874925956noreply@blogger.com