Public/Get-DPAModuleData.ps1
# .ExternalHelp IdentityCommand.DPA-help.xml Function Get-DPAModuleData { [CmdletBinding()] Param () BEGIN { }#begin PROCESS { #Calculate the time elapsed since the start of the session and include in return data if ($null -ne $ISPSSSession.StartTime) { $ISPSSSession.ElapsedTime = '{0:HH:mm:ss}' -f ([datetime]$($(Get-Date) - $($ISPSSSession.StartTime)).Ticks) } else { $ISPSSSession.ElapsedTime = $null } #Deep Copy the $ISPSSSession session object and return as IdCmd Session type. Get-SessionClone -InputObject $ISPSSSession | Add-CustomType -Type IdCmd.Session }#process END { }#end } |