forked from timmcmic/DLConversionV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrite-errorEntry.ps1
35 lines (29 loc) · 1.25 KB
/
write-errorEntry.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<#
.SYNOPSIS
This function writes the error entry to the log file.
.DESCRIPTION
This function writes the error entry to the log file.
#>
Function write-errorEntry
{
[cmdletbinding()]
Param
(
[Parameter(Mandatory = $true)]
$errorEntry
)
out-logfile -string "====="
out-logfile -string ("Alias: "+$errorEntry.alias)
out-logfile -string ("Name: "+$errorEntry.name)
out-logfile -string ("PrimarySMTPAddressOrUPN: "+$errorEntry.primarySMTPAddressOrUPN)
out-logfile -string ("RecipientType: "+$errorEntry.RecipientType)
out-logfile -string ("GroupType: "+$errorEntry.GroupType)
out-logfile -string ("RecipientOrUser: "+$errorEntry.recipientoruser)
out-logfile -string ("ExternalDirectoryObjectID:" +$errorEntry.externalDirectoryObjectID)
out-logfile -string ("OnPremADAttribute: "+$errorEntry.onPremADAttribute)
out-logfile -string ("DN: "+$errorEntry.DN)
out-logfile -string ("isAlreadyMigrated: "+$errorEntry.isAlreadyMigrated)
out-logfile -string ("isError: "+$errorEntry.isError)
out-logfile -string ("isErrorMessage: "+$errorEntry.isErrorMessage)
out-logfile -string "====="
}