Hello
We are using Sharepoint 2013 and Windows 2008R2. When running a powershell script from a batch direct from the command line the output is redirected to a file.
If this is done through the task scheduler the output is not redirected to the file.
The logfile is programmed within the powershell script as function
Function LogWrite
{
Param ([string]$logstring)
Add-content $Logfile -value $logstring -Verbose -
}
Do you have any idea
Cheers
Nickxx