hello!
I tried to use SQLlite but I couldn't get it to work.
I tested example #4 http://www.adaxes.com/sdk/ServerSideScr ... ptExamples and I got errors.
FYI - I ran it via Powershell ISE
I wanted to see how the reports will look.
error #1 - You cannot call a method on a null-valued expression.
At line:6 char:35
+ $domain = $Context.GetObjectDomain <<<< ($baseDN)
+ CategoryInfo : InvalidOperation: (GetObjectDomain:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Capacity MaxCapacity Length
-------- ----------- ------
16 2147483647 12
90 2147483647 90
180 2147483647 96
180 2147483647 138
180 2147483647 170
180 2147483647 174
360 2147483647 232
360 2147483647 237
Search-AdmAccount : Cannot validate argument on parameter 'Server'. The argument is null or empty. Supply an argument that
is not null or empty and then try the command again.
At line:35 char:12
+ -Server <<<< $domain -AdaxesService localhost
+ CategoryInfo : InvalidData: (:) [Search-AdmAccount], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Softerra.Adaxes.PowerShellModule.Commands.SearchAdmAccount
Command
360 2147483647 245
360 2147483647 259
You cannot call a method on a null-valued expression.
At line:55 char:18
+ $Context.SendMail <<<< ($email, "[AD Report] Inactive Users", $NULL,
+ CategoryInfo : InvalidOperation: (SendMail:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
I also ran the report to see general log and received the below. Ultimately, what's being logged via Logging in the console, I'd like in a report form.
error #2 -
GAC Version Location
--- ------- --------
True v2.0.50727 C:\Windows\assembly\GAC_MSIL\Softerra.Adaxes.Adsi\3.5.9329.0__43a637781bd9a3c2\Softerra.Adaxes.Adsi.dll
Property 'StartDateTime' cannot be found on this object; make sure it exists and is settable.
At line:15 char:16
+ $generalLog. <<<< StartDateTime = (Get-Date).AddDays(-$numDays)
+ CategoryInfo : InvalidOperation: (StartDateTime:String) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
Property 'EndDateTime' cannot be found on this object; make sure it exists and is settable.
At line:16 char:16
+ $generalLog. <<<< EndDateTime = Get-Date
+ CategoryInfo : InvalidOperation: (EndDateTime:String) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
You cannot call a method on a null-valued expression.
At line:21 char:24
+ $records = $log.GetPage <<<< (0)
+ CategoryInfo : InvalidOperation: (GetPage:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Start Time:
Completion Time:
Initiator:
Target Object:
Target Object Type:
Operation: