Question [Définition de type] GetMSDNHelp

Plus d'informations
il y a 9 ans 6 mois #8253 par unfam0us
Voilà :

[code:1]<?xml version=\"1.0\" encoding=\"utf-8\" ?>
<!-- *******************************************************************
These sample files contain formatting information used by the Windows
PowerShell engine. Do not edit or change the contents of this file
directly. Please see the Windows PowerShell documentation or type
Get-Help Update-TypeData for more information.

Copyright (c) Microsoft Corporation. All rights reserved.

THIS SAMPLE CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY
OF ANY KIND,WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
PURPOSE. IF THIS CODE AND INFORMATION IS MODIFIED, THE ENTIRE RISK OF USE
OR RESULTS IN CONNECTION WITH THE USE OF THIS CODE AND INFORMATION
REMAINS WITH THE USER.
******************************************************************** -->

<Types>
<Type>
<Name>System.Array</Name>
<Members>
<AliasProperty>
<Name>Count</Name>
<ReferencedMemberName>Length</ReferencedMemberName>
</AliasProperty>
</Members>
</Type>
<Type>
<Name>System.Xml.XmlNode</Name>
<Members>
<CodeMethod>
<Name>ToString</Name>
<CodeReference>
<TypeName>Microsoft.PowerShell.ToStringCodeMethods</TypeName>
<MethodName>XmlNode</MethodName>
</CodeReference>
</CodeMethod>
</Members>
</Type>
<Type>
<Name>System.Xml.XmlNodeList</Name>
<Members>
<CodeMethod>
<Name>ToString</Name>
<CodeReference>
<TypeName>Microsoft.PowerShell.ToStringCodeMethods</TypeName>
<MethodName>XmlNodeList</MethodName>
</CodeReference>
</CodeMethod>
</Members>
</Type>
<Type>
<Name>System.Management.Automation.PSDriveInfo</Name>
<Members>
<ScriptProperty>
<Name>Used</Name>
<GetScriptBlock>
## Ensure that this is a FileSystem drive
if($this.Provider.ImplementingType -eq
[Microsoft.PowerShell.Commands.FileSystemProvider])
{
$driveRoot = ([System.IO.DirectoryInfo] $this.Root).Name.Replace('\','')
$drive = Get-WmiObject Win32_LogicalDisk -Filter \"DeviceId='$driveRoot'\"
$drive.Size - $drive.FreeSpace
}
</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Free</Name>
<GetScriptBlock>
## Ensure that this is a FileSystem drive
if($this.Provider.ImplementingType -eq
[Microsoft.PowerShell.Commands.FileSystemProvider])
{
$driveRoot = ([System.IO.DirectoryInfo] $this.Root).Root.Name.Replace('\','')
$drive = Get-WmiObject Win32_LogicalDisk -Filter \"DeviceId='$driveRoot'\"
$drive.FreeSpace
}
</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.DirectoryServices.PropertyValueCollection</Name>
<Members>
<CodeMethod>
<Name>ToString</Name>
<CodeReference>
<TypeName>Microsoft.PowerShell.ToStringCodeMethods</TypeName>
<MethodName>PropertyValueCollection</MethodName>
</CodeReference>
</CodeMethod>
</Members>
</Type>
<Type>
<Name>System.Drawing.Printing.PrintDocument</Name>
<Members>
<ScriptProperty>
<Name>Name</Name>
<GetScriptBlock>$this.PrinterSettings.PrinterName</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Color</Name>
<GetScriptBlock>$this.PrinterSettings.SupportsColor</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Duplex</Name>
<GetScriptBlock>$this.PrinterSettings.Duplex</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.Management.Automation.ApplicationInfo</Name>
<Members>
<ScriptProperty>
<Name>FileVersionInfo</Name>
<GetScriptBlock>[System.Diagnostics.FileVersionInfo]::getversioninfo( $this.Path )</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.DateTime</Name>
<Members>
<ScriptProperty>
<Name>DateTime</Name>
<GetScriptBlock>
if ((& { Set-StrictMode -Version 1; $this.DisplayHint }) -ieq \"Date\"«»)
{
\"{0}\" -f $this.ToLongDateString()
}
elseif ((& { Set-StrictMode -Version 1; $this.DisplayHint }) -ieq \"Time\"«»)
{
\"{0}\" -f $this.ToLongTimeString()
}
else
{
\"{0} {1}\" -f $this.ToLongDateString(), $this.ToLongTimeString()
}
</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.Net.IPAddress</Name>
<Members>
<ScriptProperty>
<Name>IPAddressToString</Name>
<GetScriptBlock>
$this.Tostring()
</GetScriptBlock>
</ScriptProperty>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<NoteProperty>
<Name>SerializationDepth</Name>
<Value>1</Value>
</NoteProperty>
<NoteProperty>
<Name>DefaultDisplayProperty</Name>
<Value>IPAddressToString</Value>
</NoteProperty>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>Deserialized.System.Net.IPAddress</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<NoteProperty>
<Name>TargetTypeForDeserialization</Name>
<Value>Microsoft.PowerShell.DeserializingTypeConverter</Value>
</NoteProperty>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Diagnostics.ProcessModule</Name>
<Members>
<ScriptProperty>
<Name>Size</Name>
<GetScriptBlock>$this.ModuleMemorySize / 1024</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Company</Name>
<GetScriptBlock>$this.FileVersionInfo.CompanyName</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>FileVersion</Name>
<GetScriptBlock>$this.FileVersionInfo.FileVersion</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>ProductVersion</Name>
<GetScriptBlock>$this.FileVersionInfo.ProductVersion</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Description</Name>
<GetScriptBlock>$this.FileVersionInfo.FileDescription</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Product</Name>
<GetScriptBlock>$this.FileVersionInfo.ProductName</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.Collections.DictionaryEntry</Name>
<Members>
<AliasProperty>
<Name>Name</Name>
<ReferencedMemberName>Key</ReferencedMemberName>
</AliasProperty>
</Members>
</Type>
<Type>
<Name>System.Management.Automation.PSModuleInfo</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>Path</Name>
<Name>Description</Name>
<Name>Guid</Name>
<Name>Version</Name>
<Name>ModuleBase</Name>
<Name>ModuleType</Name>
<Name>PrivateData</Name>
<Name>AccessMode</Name>
<Name>ExportedAliases</Name>
<Name>ExportedCmdlets</Name>
<Name>ExportedFunctions</Name>
<Name>ExportedVariables</Name>
<Name>NestedModules</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.ServiceProcess.ServiceController</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
<Name>DisplayName</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<AliasProperty>
<Name>Name</Name>
<ReferencedMemberName>ServiceName</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>RequiredServices</Name>
<ReferencedMemberName>ServicesDependedOn</ReferencedMemberName>
</AliasProperty>
</Members>
</Type>
<Type>
<Name>Deserialized.System.ServiceProcess.ServiceController</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
<Name>DisplayName</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>

<Type>
<Name>System.Management.Automation.CmdletInfo</Name>
<Members>
<ScriptProperty>
<Name>DLL</Name>
<GetScriptBlock>$this.ImplementingType.Assembly.Location</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.Management.Automation.AliasInfo</Name>
<Members>
<ScriptProperty>
<Name>ResolvedCommandName</Name>
<GetScriptBlock>$this.ResolvedCommand.Name</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.DirectoryServices.DirectoryEntry</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>distinguishedName</Name>
<Name>Path</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<CodeMethod>
<Name>ConvertLargeIntegerToInt64</Name>
<CodeReference>
<TypeName>Microsoft.PowerShell.AdapterCodeMethods</TypeName>
<MethodName>ConvertLargeIntegerToInt64</MethodName>
</CodeReference>
</CodeMethod>
<CodeMethod>
<Name>ConvertDNWithBinaryToString</Name>
<CodeReference>
<TypeName>Microsoft.PowerShell.AdapterCodeMethods</TypeName>
<MethodName>ConvertDnWithBinaryToString</MethodName>
</CodeReference>
</CodeMethod>
</Members>
</Type>
<Type>
<Name>System.IO.DirectoryInfo</Name>
<Members>
<CodeProperty>
<Name>Mode</Name>
<GetCodeReference>
<TypeName>Microsoft.PowerShell.Commands.FileSystemProvider</TypeName>
<MethodName>Mode</MethodName>
</GetCodeReference>
</CodeProperty>
<ScriptProperty>
<Name>BaseName</Name>
<GetScriptBlock>
$this.Name
</GetScriptBlock>
</ScriptProperty>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<NoteProperty>
<Name>DefaultDisplayProperty</Name>
<Value>Name</Value>
</NoteProperty>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.IO.FileInfo</Name>
<Members>
<CodeProperty>
<Name>Mode</Name>
<GetCodeReference>
<TypeName>Microsoft.PowerShell.Commands.FileSystemProvider</TypeName>
<MethodName>Mode</MethodName>
</GetCodeReference>
</CodeProperty>
<ScriptProperty>
<Name>VersionInfo</Name>
<GetScriptBlock>
[System.Diagnostics.FileVersionInfo]::GetVersionInfo($this.FullName)
</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>BaseName</Name>
<GetScriptBlock>
if ($this.Extension.Length -gt 0){$this.Name.Remove($this.Name.Length - $this.Extension.Length)}else{$this.Name}
</GetScriptBlock>
</ScriptProperty>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>LastWriteTime</Name>
<Name>Length</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Diagnostics.EventLogEntry</Name>
<Members>
<ScriptProperty>
<Name>EventID</Name>
<GetScriptBlock>
$this.get_EventID() -band 0xFFFF
</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_PingStatus</Name>
<Members>
<ScriptProperty>
<Name>IPV4Address</Name>
<GetScriptBlock>
$iphost = [System.Net.Dns]::GetHostEntry($this.address)
$iphost.AddressList | ?{ $_.AddressFamily -eq [System.Net.Sockets.AddressFamily]::InterNetwork } | select -first 1
</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>IPV6Address</Name>
<GetScriptBlock>
$iphost = [System.Net.Dns]::GetHostEntry($this.address)
$iphost.AddressList | ?{ $_.AddressFamily -eq [System.Net.Sockets.AddressFamily]::InterNetworkV6 } | select -first 1
</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_Process</Name>
<Members>
<AliasProperty>
<Name>ProcessName</Name>
<ReferencedMemberName>Name</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>Handles</Name>
<ReferencedMemberName>Handlecount</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>VM</Name>
<ReferencedMemberName>VirtualSize</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>WS</Name>
<ReferencedMemberName>WorkingSetSize</ReferencedMemberName>
</AliasProperty>
<ScriptProperty>
<Name>Path</Name>
<GetScriptBlock>$this.ExecutablePath</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.Diagnostics.Process</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Id</Name>
<Name>Handles</Name>
<Name>CPU</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<PropertySet>
<Name>PSConfiguration</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>Id</Name>
<Name>PriorityClass</Name>
<Name>FileVersion</Name>
</ReferencedProperties>
</PropertySet>
<PropertySet>
<Name>PSResources</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>Id</Name>
<Name>Handlecount</Name>
<Name>WorkingSet</Name>
<Name>NonPagedMemorySize</Name>
<Name>PagedMemorySize</Name>
<Name>PrivateMemorySize</Name>
<Name>VirtualMemorySize</Name>
<Name>Threads.Count</Name>
<Name>TotalProcessorTime</Name>
</ReferencedProperties>
</PropertySet>
<AliasProperty>
<Name>Name</Name>
<ReferencedMemberName>ProcessName</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>Handles</Name>
<ReferencedMemberName>Handlecount</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>VM</Name>
<ReferencedMemberName>VirtualMemorySize</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>WS</Name>
<ReferencedMemberName>WorkingSet</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>PM</Name>
<ReferencedMemberName>PagedMemorySize</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>NPM</Name>
<ReferencedMemberName>NonpagedSystemMemorySize</ReferencedMemberName>
</AliasProperty>
<ScriptProperty>
<Name>Path</Name>
<GetScriptBlock>$this.Mainmodule.FileName</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Company</Name>
<GetScriptBlock>$this.Mainmodule.FileVersionInfo.CompanyName</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>CPU</Name>
<GetScriptBlock>$this.TotalProcessorTime.TotalSeconds</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>FileVersion</Name>
<GetScriptBlock>$this.Mainmodule.FileVersionInfo.FileVersion</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>ProductVersion</Name>
<GetScriptBlock>$this.Mainmodule.FileVersionInfo.ProductVersion</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Description</Name>
<GetScriptBlock>$this.Mainmodule.FileVersionInfo.FileDescription</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Product</Name>
<GetScriptBlock>$this.Mainmodule.FileVersionInfo.ProductName</GetScriptBlock>
</ScriptProperty>
<NoteProperty>
<Name>__NounName</Name>
<Value>Process</Value>
</NoteProperty>
</Members>
</Type>
<Type>
<Name>Deserialized.System.Diagnostics.Process</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Id</Name>
<Name>Handles</Name>
<Name>CPU</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<PropertySet>
<Name>PSConfiguration</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>Id</Name>
<Name>PriorityClass</Name>
<Name>FileVersion</Name>
</ReferencedProperties>
</PropertySet>
<PropertySet>
<Name>PSResources</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>Id</Name>
<Name>Handlecount</Name>
<Name>WorkingSet</Name>
<Name>NonPagedMemorySize</Name>
<Name>PagedMemorySize</Name>
<Name>PrivateMemorySize</Name>
<Name>VirtualMemorySize</Name>
<Name>Threads.Count</Name>
<Name>TotalProcessorTime</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Msft_CliAlias</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>FriendlyName</Name>
<Name>PWhere</Name>
<Name>Target</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_BaseBoard</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
<Name>PoweredOn</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Manufacturer</Name>
<Name>Model</Name>
<Name>Name</Name>
<Name>SerialNumber</Name>
<Name>SKU</Name>
<Name>Product</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_BIOS</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>SMBIOSBIOSVersion</Name>
<Name>Manufacturer</Name>
<Name>Name</Name>
<Name>SerialNumber</Name>
<Name>Version</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
<Name>Caption</Name>
<Name>SMBIOSPresent</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_BootConfiguration</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>SettingID</Name>
<Name>ConfigurationPath</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>BootDirectory</Name>
<Name>Name</Name>
<Name>SettingID</Name>
<Name>Caption</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_CDROMDrive</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Availability</Name>
<Name>Drive</Name>
<Name>ErrorCleared</Name>
<Name>MediaLoaded</Name>
<Name>NeedsCleaning</Name>
<Name>Status</Name>
<Name>StatusInfo</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Caption</Name>
<Name>Drive</Name>
<Name>Manufacturer</Name>
<Name>VolumeName</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_ComputerSystem</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>AdminPasswordStatus</Name>
<Name>BootupState</Name>
<Name>ChassisBootupState</Name>
<Name>KeyboardPasswordStatus</Name>
<Name>PowerOnPasswordStatus</Name>
<Name>PowerSupplyState</Name>
<Name>PowerState</Name>
<Name>FrontPanelResetStatus</Name>
<Name>ThermalState</Name>
<Name>Status</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Domain</Name>
<Name>Manufacturer</Name>
<Name>Model</Name>
<Name>Name</Name>
<Name>PrimaryOwnerName</Name>
<Name>TotalPhysicalMemory</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<PropertySet>
<Name>POWER</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>PowerManagementCapabilities</Name>
<Name>PowerManagementSupported</Name>
<Name>PowerOnPasswordStatus</Name>
<Name>PowerState</Name>
<Name>PowerSupplyState</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\WIN32_PROCESSOR</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Caption</Name>
<Name>DeviceID</Name>
<Name>Manufacturer</Name>
<Name>MaxClockSpeed</Name>
<Name>Name</Name>
<Name>SocketDesignation</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Availability</Name>
<Name>CpuStatus</Name>
<Name>CurrentVoltage</Name>
<Name>DeviceID</Name>
<Name>ErrorCleared</Name>
<Name>ErrorDescription</Name>
<Name>LastErrorCode</Name>
<Name>LoadPercentage</Name>
<Name>Status</Name>
<Name>StatusInfo</Name>
</ReferencedProperties>
</PropertySet>
<PropertySet>
<Name>PSConfiguration</Name>
<ReferencedProperties>
<Name>AddressWidth</Name>
<Name>DataWidth</Name>
<Name>DeviceID</Name>
<Name>ExtClock</Name>
<Name>L2CacheSize</Name>
<Name>L2CacheSpeed</Name>
<Name>MaxClockSpeed</Name>
<Name>PowerManagementSupported</Name>
<Name>ProcessorType</Name>
<Name>Revision</Name>
<Name>SocketDesignation</Name>
<Name>Version</Name>
<Name>VoltageCaps</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_ComputerSystemProduct</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>Version</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>IdentifyingNumber</Name>
<Name>Name</Name>
<Name>Vendor</Name>
<Name>Version</Name>
<Name>Caption</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\CIM_DataFile</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Compressed</Name>
<Name>Encrypted</Name>
<Name>Size</Name>
<Name>Hidden</Name>
<Name>Name</Name>
<Name>Readable</Name>
<Name>System</Name>
<Name>Version</Name>
<Name>Writeable</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\WIN32_DCOMApplication</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>AppID</Name>
<Name>InstallDate</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>Status</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\WIN32_DESKTOP</Name>
<Members>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>ScreenSaverActive</Name>
<Name>ScreenSaverSecure</Name>
<Name>ScreenSaverTimeout</Name>
<Name>SettingID</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Name</Name>
<Name>ScreenSaverActive</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\WIN32_DESKTOPMONITOR</Name>
<Members>
<PropertySet>
<Name>PSConfiguration</Name>
<ReferencedProperties>
<Name>DeviceID</Name>
<Name>Name</Name>
<Name>PixelsPerXLogicalInch</Name>
<Name>PixelsPerYLogicalInch</Name>
<Name>ScreenHeight</Name>
<Name>ScreenWidth</Name>
</ReferencedProperties>
</PropertySet>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>DeviceID</Name>
<Name>IsLocked</Name>
<Name>LastErrorCode</Name>
<Name>Name</Name>
<Name>Status</Name>
<Name>StatusInfo</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>DeviceID</Name>
<Name>DisplayType</Name>
<Name>MonitorManufacturer</Name>
<Name>Name</Name>
<Name>ScreenHeight</Name>
<Name>ScreenWidth</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_DeviceMemoryAddress</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
<Name>MemoryType</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>MemoryType</Name>
<Name>Name</Name>
<Name>Status</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_DiskDrive</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>ConfigManagerErrorCode</Name>
<Name>LastErrorCode</Name>
<Name>NeedsCleaning</Name>
<Name>Status</Name>
<Name>DeviceID</Name>
<Name>StatusInfo</Name>
<Name>Partitions</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Partitions</Name>
<Name>DeviceID</Name>
<Name>Model</Name>
<Name>Size</Name>
<Name>Caption</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
<PropertySet>
<Name>PSConfiguration</Name>
<ReferencedProperties>
<Name>BytesPerSector</Name>
<Name>ConfigManagerUserConfig</Name>
<Name>DefaultBlockSize</Name>
<Name>DeviceID</Name>
<Name>Index</Name>
<Name>InstallDate</Name>
<Name>InterfaceType</Name>
<Name>MaxBlockSize</Name>
<Name>MaxMediaSize</Name>
<Name>MinBlockSize</Name>
<Name>NumberOfMediaSupported</Name>
<Name>Partitions</Name>
<Name>SectorsPerTrack</Name>
<Name>Size</Name>
<Name>TotalCylinders</Name>
<Name>TotalHeads</Name>
<Name>TotalSectors</Name>
<Name>TotalTracks</Name>
<Name>TracksPerCylinder</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_DiskQuota</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>__PATH</Name>
<Name>Status</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>DiskSpaceUsed</Name>
<Name>Limit</Name>
<Name>QuotaVolume</Name>
<Name>User</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_DMAChannel</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>AddressSize</Name>
<Name>DMAChannel</Name>
<Name>MaxTransferSize</Name>
<Name>Name</Name>
<Name>Port</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_Environment</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
<Name>SystemVariable</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>VariableValue</Name>
<Name>Name</Name>
<Name>UserName</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_Directory</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Compressed</Name>
<Name>Encrypted</Name>
<Name>Name</Name>
<Name>Readable</Name>
<Name>Writeable</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Hidden</Name>
<Name>Archive</Name>
<Name>EightDotThreeFileName</Name>
<Name>FileSize</Name>
<Name>Name</Name>
<Name>Compressed</Name>
<Name>Encrypted</Name>
<Name>Readable</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_Group</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Caption</Name>
<Name>Domain</Name>
<Name>Name</Name>
<Name>SID</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_IDEController</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Manufacturer</Name>
<Name>Name</Name>
<Name>ProtocolSupported</Name>
<Name>Status</Name>
<Name>StatusInfo</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_IRQResource</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Caption</Name>
<Name>Availability</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>Hardware</Name>
<Name>IRQNumber</Name>
<Name>Name</Name>
<Name>Shareable</Name>
<Name>TriggerLevel</Name>
<Name>TriggerType</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_ScheduledJob</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>JobId</Name>
<Name>JobStatus</Name>
<Name>ElapsedTime</Name>
<Name>StartTime</Name>
<Name>Owner</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>JobId</Name>
<Name>Name</Name>
<Name>Owner</Name>
<Name>Priority</Name>
<Name>Command</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_LoadOrderGroup</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>GroupOrder</Name>
<Name>Name</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_LogicalDisk</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>Status</Name>
<Name>Availability</Name>
<Name>DeviceID</Name>
<Name>StatusInfo</Name>
</ReferencedProperties>
</PropertySet>
<MemberSet>
<Name>PSStandardMembers</Name>
<Members>
<PropertySet>
<Name>DefaultDisplayPropertySet</Name>
<ReferencedProperties>
<Name>DeviceID</Name>
<Name>DriveType</Name>
<Name>ProviderName</Name>
<Name>FreeSpace</Name>
<Name>Size</Name>
<Name>VolumeName</Name>
</ReferencedProperties>
</PropertySet>
</Members>
</MemberSet>
</Members>
</Type>
<Type>
<Name>System.Management.ManagementObject#root\cimv2\Win32_LogonSession</Name>
<Members>
<PropertySet>
<Name>PSStatus</Name>
<ReferencedProperties>
<Name>__PATH</Name>
[/code:1]

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 6 mois #8254 par unfam0us
Toujours rien? :dry:<br><br>Message édité par: unfam0us, à: 16/12/10 11:55

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 4 mois #8823 par Arnaud
Réponse de Arnaud sur le sujet Re:[Définition de type] GetMSDNHelp
Dans l'état actuel des choses je ne vois pas dans ton fichier de type la méthode GetMSDNHelp.

Pourquoi as tu fais un copier/coller d'un fichier livré par PowerShell ?

C'est pour cela qu'elle n'existe pas. Regarde l'exemple de la page 159. Tu n'as pas besoin de plus de code.

Arnaud<br><br>Message édité par: Arnaud, à: 10/02/11 22:16

Créateur du forum de la communauté PowerShell Francophone

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 6 mois #10711 par Laurent Dardenne
Correction d'un bug, remplacer :
[code:1]
$Uri = \&quot; msdn2.microsoft.com/\" ; + $culture + \"/library/\" + $this.GetType().FullName + \"(VS.80).ASPX\"
[/code:1]
par
[code:1]
$className=$this.GetType().FullName
if ($className -eq \&quot;System.RuntimeType\&quot;«»)
{ $className =$this.FullName}
$Uri = \&quot; msdn2.microsoft.com/\" ; + $culture + \"/library/\" + $className + \"(VS.80).ASPX\"
[/code:1]
Permet d'appeler la méthode sur une classe ET une instance.
La construction de l'url sera peut être à modifier dans qq temps, MS aime bien le changement :)

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.324 secondes
Propulsé par Kunena