********************** Windows PowerShell Transcript Start Start time: 20070511143904 Username : NORTHAMERICA\edwils Machine : M5-1875135 (Microsoft Windows NT 6.0.6000.0) ********************** Transcript started, output file is C:\BookDocs\WindowsPowerShell\Chapter1\GetMember.txt PS C:\> md c:\mytest Directory: Microsoft.PowerShell.Core\FileSystem::C:\ Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 5/11/2007 2:39 PM mytest PS C:\> $a = Get-Item c:\mytest PS C:\> $a | Get-Member TypeName: System.IO.DirectoryInfo Name MemberType Definition ---- ---------- ---------- Create Method System.Void Create(), System.Void Create(DirectorySecurity directorySecurity) CreateObjRef Method System.Runtime.Remoting.ObjRef CreateObjRef(Type requestedType) CreateSubdirectory Method System.IO.DirectoryInfo CreateSubdirectory(String path), System.IO.Director... Delete Method System.Void Delete(), System.Void Delete(Boolean recursive) Equals Method System.Boolean Equals(Object obj) GetAccessControl Method System.Security.AccessControl.DirectorySecurity GetAccessControl(), System.... GetDirectories Method System.IO.DirectoryInfo[] GetDirectories(), System.IO.DirectoryInfo[] GetDi... GetFiles Method System.IO.FileInfo[] GetFiles(String searchPattern), System.IO.FileInfo[] G... GetFileSystemInfos Method System.IO.FileSystemInfo[] GetFileSystemInfos(String searchPattern), System... GetHashCode Method System.Int32 GetHashCode() GetLifetimeService Method System.Object GetLifetimeService() GetObjectData Method System.Void GetObjectData(SerializationInfo info, StreamingContext context) GetType Method System.Type GetType() get_Attributes Method System.IO.FileAttributes get_Attributes() get_CreationTime Method System.DateTime get_CreationTime() get_CreationTimeUtc Method System.DateTime get_CreationTimeUtc() get_Exists Method System.Boolean get_Exists() get_Extension Method System.String get_Extension() get_FullName Method System.String get_FullName() get_LastAccessTime Method System.DateTime get_LastAccessTime() get_LastAccessTimeUtc Method System.DateTime get_LastAccessTimeUtc() get_LastWriteTime Method System.DateTime get_LastWriteTime() get_LastWriteTimeUtc Method System.DateTime get_LastWriteTimeUtc() get_Name Method System.String get_Name() get_Parent Method System.IO.DirectoryInfo get_Parent() get_Root Method System.IO.DirectoryInfo get_Root() InitializeLifetimeService Method System.Object InitializeLifetimeService() MoveTo Method System.Void MoveTo(String destDirName) Refresh Method System.Void Refresh() SetAccessControl Method System.Void SetAccessControl(DirectorySecurity directorySecurity) set_Attributes Method System.Void set_Attributes(FileAttributes value) set_CreationTime Method System.Void set_CreationTime(DateTime value) set_CreationTimeUtc Method System.Void set_CreationTimeUtc(DateTime value) set_LastAccessTime Method System.Void set_LastAccessTime(DateTime value) set_LastAccessTimeUtc Method System.Void set_LastAccessTimeUtc(DateTime value) set_LastWriteTime Method System.Void set_LastWriteTime(DateTime value) set_LastWriteTimeUtc Method System.Void set_LastWriteTimeUtc(DateTime value) ToString Method System.String ToString() PSChildName NoteProperty System.String PSChildName=mytest PSDrive NoteProperty System.Management.Automation.PSDriveInfo PSDrive=C PSIsContainer NoteProperty System.Boolean PSIsContainer=True PSParentPath NoteProperty System.String PSParentPath=Microsoft.PowerShell.Core\FileSystem::C:\ PSPath NoteProperty System.String PSPath=Microsoft.PowerShell.Core\FileSystem::C:\mytest PSProvider NoteProperty System.Management.Automation.ProviderInfo PSProvider=Microsoft.PowerShell.C... Attributes Property System.IO.FileAttributes Attributes {get;set;} CreationTime Property System.DateTime CreationTime {get;set;} CreationTimeUtc Property System.DateTime CreationTimeUtc {get;set;} Exists Property System.Boolean Exists {get;} Extension Property System.String Extension {get;} FullName Property System.String FullName {get;} LastAccessTime Property System.DateTime LastAccessTime {get;set;} LastAccessTimeUtc Property System.DateTime LastAccessTimeUtc {get;set;} LastWriteTime Property System.DateTime LastWriteTime {get;set;} LastWriteTimeUtc Property System.DateTime LastWriteTimeUtc {get;set;} Name Property System.String Name {get;} Parent Property System.IO.DirectoryInfo Parent {get;} Root Property System.IO.DirectoryInfo Root {get;} Mode ScriptProperty System.Object Mode {get=$catr = "";... PS C:\> $a.parent Mode LastWriteTime Length Name ---- ------------- ------ ---- d--hs 5/11/2007 2:39 PM C:\ PS C:\> $a.LastAccessTime Friday, May 11, 2007 2:39:12 PM PS C:\> $a.PSIsContainer True PS C:\> $a.MoveTo("C:\movedFolder") PS C:\> Test-Path c:\movedFolder True PS C:\> Test-Path c:\mytest False PS C:\> $a.name movedFolder PS C:\> $a.Delete() PS C:\> $a Directory: Microsoft.PowerShell.Core\FileSystem::C:\ Mode LastWriteTime Length Name ---- ------------- ------ ---- darhs 12/31/1600 7:00 PM movedFolder PS C:\> dir Directory: Microsoft.PowerShell.Core\FileSystem::C:\ Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 4/4/2007 12:16 AM a d---- 4/4/2007 12:16 AM aLOG d---- 4/4/2007 12:16 AM aTest d---- 4/4/2007 12:16 AM autoScript d---- 4/4/2007 12:17 AM Backup_Extras_92705 d---- 5/5/2007 4:05 PM BookDocs d---- 4/4/2007 12:19 AM BookScripts_VbScript d---- 4/4/2007 12:19 AM CIMv2Scripts d---- 4/4/2007 12:19 AM CreateHTMLscript d---- 4/4/2007 12:19 AM DeskTOP d---- 4/4/2007 12:20 AM DOCS d---- 5/11/2007 4:55 AM downloads d---- 5/4/2007 1:40 PM folder d---- 5/3/2007 6:44 PM FSO d---- 4/27/2007 3:10 PM fso1 d---- 4/4/2007 12:16 AM html d---- 4/4/2007 12:16 AM ICE_Scripts d---- 4/4/2007 12:16 AM ITIL d---- 4/21/2007 4:56 PM Maps d---- 5/5/2007 3:51 PM music d---- 4/4/2007 12:16 AM NewScripts d---- 4/4/2007 1:32 AM Pictures d---- 4/29/2007 9:53 AM PowerShell d---- 5/3/2007 5:37 PM PowerShellWOrkshop d-r-- 5/8/2007 7:49 PM Program Files d---- 4/8/2007 10:09 AM PSIDE d---- 4/4/2007 12:21 AM ScriptComponents d---- 4/4/2007 12:47 AM scripts and stuff d---- 4/5/2007 1:02 AM scriptsINprogress d---- 4/4/2007 12:47 AM TeresaResume d---- 4/4/2007 12:45 AM tripReports d-r-- 4/2/2007 1:34 AM Users d---- 4/4/2007 12:45 AM vbscript assessment d---- 4/4/2007 12:45 AM VBScriptBook d---- 4/4/2007 12:45 AM vbscriptTemplates d---- 4/4/2007 12:47 AM VBSworkshop d---- 4/4/2007 12:41 AM VistaSHARE d---- 4/7/2007 8:38 PM VM d---- 5/8/2007 7:49 PM Windows d---- 4/4/2007 12:47 AM WMIworkshop -a--- 9/18/2006 5:43 PM 24 autoexec.bat -ar-s 2/1/2007 6:03 PM 8192 BOOTSECT.BAK -a--- 9/18/2006 5:43 PM 10 config.sys -a--- 2/1/2007 6:17 PM 54 MASK.txt -a--- 2/2/2007 3:58 PM 389758 vcredist_x86.log PS C:\> dir m* Directory: Microsoft.PowerShell.Core\FileSystem::C:\ Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 4/21/2007 4:56 PM Maps d---- 5/5/2007 3:51 PM music -a--- 2/1/2007 6:17 PM 54 MASK.txt PS C:\> Stop-Transcript ********************** Windows PowerShell Transcript End End time: 20070511152343 **********************