Windows – Outgoing Fax in the Console

Having difficulty with the fax console for your user to see outgoing fax for everyone ?

There is some generic tip to help you out.

First, logging enabled ?

Open Fax Service Manager.
In the left pane, right-click Fax, and then click Properties.
1.  On the Archives tab, please check the “Archive all faxes to this folder” item, and the sent faxes will be stored in this folder.

and

Open Fax Service Manager.
– Right-click Fax, and then click Properties.
– On the Activity Logging tab:

— Enable Log outgoing fax activity check box to start logging outgoing faxes.

Secondly, it’s a Windows Server 2008 R2 or the client is Windows 7 ?

Check to see if those patch are installed:

Consider the following scenario:You have a computer that is running Windows Server 2008 R2 or Windows 7.
You run an application or a service that calls the FaxEnumJobs function to query fax jobs that are on a FAX server.
In this scenario, the FaxEnumJobs function does not return all the fax jobs. The function returns only the fax jobs of the current user account.

For example, an administrator account can view only the fax jobs of the administrator account.

Consider the following scenario:You install the Fax Server role on a computer that is running Windows Server 2008 R2.
Your account is assigned the View Outgoing Jobs permission in Fax Service Manager on the Fax server.
You open Windows Fax and Scan to check outgoing faxes.
In this scenario, you cannot view or manage outgoing faxes from other users.

On a computer that is running Windows 7 or Windows Server 2008 R2, you have an application that uses the Fax Service Extended COM API to query fax jobs on a Fax server. However, the application can only enumerate the fax jobs of the current user account that you use to run the application.

Note This issue occurs even when you run the application by using a user account that has necessary permissions to enumerate the fax jobs of all users.

Thirdly, a nice workaround if you need to have a user manage the outgoing box. A Script that create an .html’s file with all the outgoing fax information (that you can share on IIS after). Using it in a planned task to run it at each hour in example can do the trick.

The script is not from me, credit to Logman for the modified version, and original version is there

# This script takes the outboxlog.txt file from the Windows Server fax service 
# and parses it to find faxes that did not complete. Results are dumped as a 
# Web page. Normally a user can view only the status of their own faxes. 
# This allows you to view failed faxes for any user. 

# This script can be run as a scheduled task to provide a constantly updated list 
# Required command line in scheduled task is: 
# powershell.exe "& 'C:\ProgramData\Microsoft\Windows NT\MSFax\ActivityLog\ParseOutbox.ps1'" 

# Created by Byron Wright, byron@conexion.ca 

# Define the file locations used. 
$Source="C:\ProgramData\Microsoft\Windows NT\MSFax\ActivityLog\outboxLog.txt" 
$TempSource="C:\ProgramData\Microsoft\Windows NT\MSFax\ActivityLog\outboxlogtemp.txt" 
$CsvDestination="C:\ProgramData\Microsoft\Windows NT\MSFax\ActivityLog\outboxlog.csv" 
$HTMLDestination="C:\inetpub\wwwroot\FailedFaxes.htm" 

# Import-TabDelimited function taken from The PowerShell Guy 
# Source located at http://thepowershellguy.com/blogs/posh/archive/2007/03/31/powershell-examples-used-on-ars-technica.aspx 

function Import-TabDelimited ($Path) { 
 gc $path |% {$header = $true} { 
 if ($header){ 
 $h = $_.split("`t") 
 $header = $false 
 } 
 Else { 
 $r = new-object object 
 $_.split("`t") |% {$i=0}{ 
 $r | add-Member -memberType noteProperty -name $h[$i] -value $_ 
 $i++ 
 } 
 $r 
 } 
 } 
} 


#Processing the text file may lock it and cause problems on a busy fax server 
#So, copy it quick. 
Copy-Item -Path $Source -Destination $TempSource 

#Convert to Outboxlog.txt to a csv file 
Import-TabDelimited -Path $TempSource | Export-csv -Path $CsvDestination -NoTypeInformation 

#Get a list of faxes that failed by looking at the Status column 
#Note that the column name includes double quote. Single quotes used to allow that. 
$BadFaxes=import-csv -Path $CsvDestination | where {$_.'"Status"' -eq '"Transmission Error"'} | Sort-Object {[datetime] $_.'"SubmissionTime"'} -descending 

#Dump bad faxes to an HTML file. The Select-Object cmdlet is selecting the columns to include. 
#Again note that double quotes are part of the column name. 
# "JobID" "ParentJobID" "SubmissionTime" "Scheduled" "Status" "ErrorDesc" "ErrorCode" "StartTime" "EndTime" 
# "Device" "DialedNumber" "CSID" "TSID" "Pages" "TotalPages" "QueueFileName" "Document" "FileSize" "Retries" 
# "ServerCoverPage" "CoverPageSubject" "CoverPageNote" "UserName" "SenderName" "SenderFaxNumber" 
# "SenderCompany" "SenderStreet" "SenderCity" "SenderZipCode" "SenderCountry/Region" "SenderTitle" 
# "SenderDepartment" "SenderOffice" "SenderHomePhone" "SenderOfficePhone" "SenderEMail" "RecipientName" 
# "RecipientFaxNumber" "RecipientCompany" "RecipientStreet" "RecipientCity" "RecipientZipCode" "RecipientCountry/Region" 
# "RecipientTitle" "RecipientDepartment" "RecipientOffice" "RecipientHomePhone" "RecipientOfficePhone" 
# "RecipientEMail" "BillingCode"


$Header = @"
<style>
TABLE {border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}
TH {border-width: 1px;padding: 3px;border-style: solid;border-color: black;background-color: #6495ED;}
TD {border-width: 1px;padding: 3px;border-style: solid;border-color: black;}
</style>
"@
$Pre = "<H1>Failed Faxes: $(Get-Date -format 'g')</H1>"
$Post = "<H3>$(Get-Date -format 'g')</H3>"

$BadFaxes | Select-Object '"SubmissionTime"','"RecipientName"','"RecipientFaxNumber"','"CoverPageSubject"','"Retries"','"ErrorDesc"' | ConvertTo-HTML -Body $Header -PreContent $Pre -PostContent $Post | Out-File -FilePath $HTMLDestination 
Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s