PSEC - Powershell Enhanced Capability
Version 1.2.1

objdef CMD

Syntax

objdef obj-inst [file]

Description

Displays obj-inst on the console where obj-inst is a new-object constructor

Notes

The file parameter causes the text to be written to the specified file

Due to the vagueness of Powershell parameter parsing the new-object constructor needs to be wrapped in parenthesis when the file parameter is included as the second example shows. DirInfo: objdef new-object system.io.directoryinfo('x')

FileInfo: objdef (new-object system.io.fileinfo('x')) c:\temp\dirinfo.txt

PSEC - Powershell Enhanced Capability
1.2.1

Copyright © 2018-2021, 2022, Rexcel System Inc.

 

 

 

 

 

X