Monthly Archives: May 2010

Handling Native EXE Output Encoding in UTF8 with No BOM

If you are dealing with an native executable that outputs UTF8 with no BOM (byte order marker) you will find that PowerShell garbles the input.  This is most likely an issue with how the .NET console code interprets the incoming … Continue reading

Posted in PowerShell | 4 Comments

What’s in PSCX 2.0

Some questions are coming up about the contents of PSCX 2.0.  Here’s what in it: CMDLETS: Add-PathVariableClear-MSMQueueConvertFrom-Base64ConvertTo-Base64ConvertTo-MacOs9LineEndingConvertTo-MetricConvertTo-UnixLineEndingConvertTo-WindowsLineEndingConvert-XmlDisconnect-TerminalSessionExpand-ArchiveExport-BitmapFormat-ByteFormat-HexFormat-XmlGet-ADObjectGet-AdoConnectionGet-AdoDataProviderGet-AlternateDataStreamGet-ClipboardGet-DhcpServerGet-DomainControllerGet-DriveInfoGet-EnvironmentBlockGet-FileTailGet-FileVersionInfoGet-ForegroundWindowGet-HashGet-HttpResourceGet-LoremIpsumGet-MountPointGet-MSMQueueGet-OpticalDriveInfoGet-PathVariableGet-PEHeaderGet-PrivilegeGet-PSSnapinHelpGet-ReparsePointGet-ShortPathGet-TabExpansionGet-TerminalSessionGet-TypeNameGet-UptimeImport-BitmapInvoke-AdoCommandInvoke-ApartmentJoin-StringNew-HardlinkNew-JunctionNew-MSMQueueNew-ShortcutNew-SymlinkOut-ClipboardPing-HostPop-EnvironmentBlockPush-EnvironmentBlockRead-ArchiveReceive-MSMQueueRemove-AlternateDataStreamRemove-MountPointRemove-ReparsePointResolve-HostSend-MSMQueueSend-SmtpMailSet-BitmapSizeSet-ClipboardSet-FileTimeSet-ForegroundWindowSet-PathVariableSet-PrivilegeSet-VolumeLabelSkip-ObjectSplit-StringStart-TabExpansionStop-TerminalSessionTest-AlternateDataStreamTest-AssemblyTest-MSMQueueTest-ScriptTest-UserGroupMembershipTest-XmlUnblock-FileWrite-BZip2Write-ClipboardWrite-GZipWrite-TarWrite-Zip FUNCTIONS:Add-DirectoryLengthAdd-ShortPathDismount-VHDEdit-FileEdit-HostProfileEdit-ProfileEnable-OpenPowerShellHereGet-ChildItemGet-HelpGet-PropertyValueGet-ScreenCssGet-ScreenHtmlGet-ViewDefinitionhelpInvoke-BatchFileInvoke-ElevatedInvoke-GCInvoke-MethodInvoke-NullCoalescingInvoke-ReflectorInvoke-TernarylessMount-VHDNew-HashObjectOut-SpeechpromptQuoteListQuoteStringResolve-ErrorRecordResolve-HResultResolve-WindowsErrorSearch-TranscriptSet-LocationExSet-ReadOnlySet-WritableShow-TreeStop-RemoteProcess ALIASES: Name                           Definition—-                           ———-?:                             Invoke-Ternary??                             Invoke-NullCoalescingcall                           Invoke-Methodcvxml                          Convert-Xmle                              Edit-Fileehp                            Edit-HostProfileep                             Edit-Profilefhex                           Format-Hexfxml                           Format-Xmlgcb                            Get-Clipboardgpv                            Get-PropertyValuegtn                            Get-TypeNameigc                            Invoke-GCln                             New-HardLinklorem                          Get-LoremIpsumnho                            New-HashObjectocb                            Out-Clipboardql                             QuoteListqs                             … Continue reading

Posted in PSCX | Leave a comment

PSCX 2.0 Show-Tree

One issue with PowerShell providers is that only the Filesystem and Registry providers’ hierarchies are easily viewable using Windows Explorer and Regedit respectively.  The other PowerShell providers are mostly without such a view.  This is problematic for providers that supply … Continue reading

Posted in PSCX | 3 Comments

PSCX 2.0 Released

Finally! We’ve gotten PSCX 2.0 finished and released.  A few notes about this release.  It targets only Windows PowerShell 2.0 as it is module based.  Also, the deployment of the PSCX 2.0 is xcopy.  There is no installer.  For more … Continue reading

Posted in PSCX | Leave a comment