PSCustomObject1 [PowerShell] PSCustomObject for Saving Log [Scenario] The business wants a scipt to run periodically as a temporal solution and needs to trace script's activities via log. [Objectives] Create PSCustomObject to save script log as an Excel file [Steps] As starter, lets create PSCustomObject which can save datetime, device, action $pso = [PSCustomObject]@{ "DateTime" =(get-date -format 'yyyy-MM-dd') "DeviceName" ='KRYAN-L-FM992H2' "State"='.. 2023. 7. 14. 이전 1 다음 반응형