Welcome to MSDN Blogs Sign in | Join | Help

What's New in CTP of PowerShell 2.0

 

As you start to play with the CTP bits of Windows PowerShell 2.0, it would be wise to tell what's new in this CTP release. 

First thing to know is that this release is compatible with and replaces Windows PowerShell 1.0. You must un-install PowerShell 1.0 to install this CTP release.

Uninstalling Windows PowerShell 1.0

·         Windows XP-SP2 and Windows Server 2003: Under Add/Remove Program, select the option to show updates. Remove the PowerShell updates as applicable for your system: KB926139 (en-us),KB926140 (localized), KB926141 (MUI pack)

·         Windows Vista: Go to Control Panel->Program and features->Installed Updates. Uninstall the PowerShell update: KB928439

·         Windows Server 2008: Starting with Beta3 of Windows Server 2008, PowerShell 1.0 comes as an in-band optional component. If you have enabled PowerShell 1.0, you must turn the feature off before you can install PowerShell V2 CTP. Launch Server Manager and choose the option to remove Features. Select PowerShell from the list and disable the feature.

Breaking Changes from Windows PowerShell 1.0

·         The value of the PowerShellEngine key under HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine has been changed to 2.0

·         New language Keywords Data and Cmdlet have been added. What this means is that commands named ‘data’ or ‘cmdlet’ will be interpreted as language Keywords which will result into parse errors.

·         Changes in Argument separator behavior. In PowerShell 1.0, $a.method(,1) is treated as a call with an array of 1 element but $a.method(1,,2) as a parse error. In PowerShell 2.0, both are treated as parse errors.

·         New Cmdlets, variables have been added (listed below). These can conflict with existing variables and functions. 

 

1.       PowerShell Remoting

Windows PowerShell 2.0 provides support for executing Cmdlets and Scripts remotely. PowerShell Remoting allows managing a collection of remote machines from a single client. Managing remote computers using PowerShell 2.0, requires that PowerShell 2.0 be installed on all the computers taking part in the operation; that is the client computer and the computer(s) being managed.

For more information:

·         get-help About_Remoting

·         get-help Invoke-Expression

 

Enable Remoting: PowerShell Remoting feature relies on Windows Remote Management (WS-Man) technology. In order for remoting to work, make sure that the WS-Man Winrm service is installed and started. To verify that Winrm service is running, do the following:

                                PS> get-service winrm

Setup places a PowerShell script (Configure-Wsman.ps1) in $pshome folder that configures WS-Man settings. To configure WS-Man for PowerShell remoting feature, please run the configure-WSMan.ps1 script from PowerShell folder (run elevated for Windows Server 2008 or Windows Vista SP1). This script does not start or stop WinRM service.

                & $pshome\Configure-Wsman.ps1

Known issue: 

·         To use Remoting Cmdlets and features, PowerShell must be started as administrator/elevated. 

      ·         PowerShell 2.0 Remoting features will not work correctly on Windows Vista RTM. Please install Windows Vista Service Pack 1 (SP1) Beta to enable PowerShell Remoting features.

2.       Background Jobs

Windows PowerShell 2.0 introduces the concept of a background job (PsJob).  A PsJob runs a command or expression asynchronously and "in the background" without interacting with the console. The command prompt returns immediately and you can query for the job results at your convenience.  You can run background jobs on a local or remote computer.

For more information:

·         get-help About_PSJob

 

3.       ScriptCmdlets

ScriptCmdlets allow you to write cmdlets in PowerShell script, rather than compiled C# and VB.NET code.

Known issue: 

For this release, following cmdlet parameters are not supported:

·         Parameter sets

·         Help

 

For more information:

·         get-help about_scriptcmdletparameters

·         get-help about_scriptcmdletmethods

·         get-help about_scriptcmdletattributes

 

4.       Steppable Pipelines

This feature allows turning a script-block into a steppable pipeline and then controlling the sequence of activities by individually calling Begin(), Process() and End() on the pipeline.

5.       Data Language

The data language is a subset of the PowerShell language that allows better sharing of scripts. It also allows better separation of data from the rest of the code in your script.

For more information:

·         get-help about_data_section

·         get-help ConvertFrom-StringData

 

6.       Script Internationalization

This new feature allows PowerShell script authors to write scripts that can be translated to any language supported by Windows.

You can separate string resources from the rest of the code, using the new data language feature (above). Using the new Import-LocalizedData cmdlet, you can instruct PowerShell to check the operating system’s UI culture, check for a translated data file (.psd1) in the proper culture folder (such as en-US, or de-DE), and replace the original strings with the translated ones.

For more information:

·         get-help about_script_internationalization

·         get-help Import-LocalizedData

·         get-help ConvertFrom-StringData

·         get-help about_data_section

 

7.       Script Debugging

New debugging features have been added: You can now set breakpoints on lines, columns, functions, variables, and commands. You can also specify actions to run when the breakpoint is hit. Stepping into, over, or out of functions is also supported. You can also get the call stack.

For more information:

·         get-help about_debugger

 

8.       New Operators:

·         Splatting operator (@): PowerShell V2 supports splatting operator (@) to pass a collection of parameters

·         -Split: The -split operator enables a user to split a string into an array of substrings, based on a separator.

·         –Join: The -join operator concatenates multiple strings from a string array into a single string, separated by the separator.

 

9.       New Variables:

·         $commandLineParameters: Accumulates command-line and pipeline parameters. Cmdlets can access it through MyInvocation.CommandLineParameters.

·         $PSVersionTable: PowerShell version information is available through this variable

·         $Culture: Current Culture information is available through this variable

·         $UICulture: Current UI Culture information is available through this variable

 

10.   New Cmdlets:

Following 24 cmdlets have been added in PowerShell 2.0. See help for these Cmdlets for details about how to use them.

Get-PSBreakpoint

Get-PSCallStack

Remove-PSJob

New-PSBreakpoint

ConvertFrom-StringData

Start-PSJob

Disable-PSBreakpoint

Import-LocalizedData

Stop-PSJob

Enable-PSBreakpoint

Get-Runspace

Wait-PSJob

Remove-PSBreakpoint

New-Runspace

Invoke-WMIMethod

Step-Into

Remove-Runspace

Remove-WMIObject

Step-Out

Get-PsJob

Set-WMIInstance

Step-Over

Receive-PSJob

Out-GridView

 

11.   Constrained Runspaces:

Constrained Runspaces allows creation of PowerShell Runspaces with a set of Constraints. Constraints include the ability to restrict access and execution of Commands, scripts, and language elements when using the Constrained Runspace.

12.   RunspacePools

Support has been added for RunspacePools. RunspacePools enables concurrent execution of commands by efficiently managing a pool of runspaces on behalf of the user. See the SDK documentation for more details about how to use RunspacePool APIs.

13.   Parser Tokenizer API

Another new feature in this release is the Parser Tokenizer API which lets you determine the Tokens associated with a PowerShell script. This API enables many scenarios such as building syntax color highlighters, making your scripts production ready by expanding aliases and so on. See SDK documentation for more details about how to use the API. 

14.   New PowerShell Hosting APIs

The release introduces new APIs which simplifies Hosting PowerShell Engine in your Applications and building GUI Management applications on top of PowerShell Cmdlets. Please see the SDK documentation for the new APIs.

15.   Metadata APIs for Command and Parameters

New APIs allow access to command and parameter metadata (similar to the metadata obtained in the shell via get-command). This metadata can be used to automate generation of stub ScriptCmdlet code from Cmdlet Type.

16.   Graphical PowerShell

This release includes a very early alpha version of the new graphical shell. A feedback button has been placed on the toolbar to hear your feedback, so please use it to report bugs, likes and dislikes. If you do not have a mail client installed, send feedback to gPSfback@microsoft.com. This feature requires Microsoft .NET Framework 3.0.

 

Features:

·         An interactive shell with syntax coloring and Unicode support.

·         A multi-tabbed scripting pane for loading / composing multiple ps1 files.

·         The ability to run (dot-source) a script by pressing <F5>, or by clicking the “Run” on the toolbar.

·         The ability to run (dot-source) parts of a script by selecting the desired parts and pressing <F5>, or clicking “Run” on the toolbar.

·         Multiple runspaces (shells): You can open up to eight runspaces inside Graphical PowerShell, by using the “Shell” menu, or pressing the tab “stub” when it becomes visible (after the second runspace)

 

Known issues:

·         There is no support for any commands that require user input, including legacy commands, such as: netsh, telnet, ftp, nslookup etc.

·         There is no support for Tab Completion.

·         PSHost functionality is not supported.

·         Text output still has the ellipses (…) although the screen is wide enough to display more textThe script editor is slow for large files (> 1,000 lines)

 

17.   Out-GridView

The new Out-GridView cmdlet displays the results of other commands in an interactive table, where you can search, sort, and group the results. For example, you can send the results of a get-process, get-wmiobject, or get-eventlog command to out-gridview and use the table features to examine the data. This feature requires Microsoft .NET Framework 3.0.

For more information:

·         get-help out-gridview

 

Known issue:

·         The command output that you send cannot be pre-formatted, such as by using the Format-Table or Format-Wide commands.

 

18.   Improvements in Windows PowerShell V2

Changes to TabExpansion function: The TabExpansion function now only shows unique parameters and lists them in sorted order. 

New parameters added to Select-String: Select-String cmdlet now supports new parameters, such as:

o   -Context: This allows you to see lines before and after the match line

o   -AllMatches: which allows you to see all matches in a line (Previously, you could see only the first match in a line)

o   -NotMatch: Equivalent to grep -v

o   -Encoding: to specify the character encoding

Updated Type Adapters: Member lookup algorithm for Type Adapters has been updated to include Base members. Members on the Base Object for Adapted types are now directly accessible on the object. This removes the need to use PSBASE property to access base members.

Improvements to Get-Member: Get-Member cmdlet now supports a –View and –Force parameter. Valid values for –View parameter are "Extended, Adapted, Base, All". The default value is “Extended,Adapted”. Getter and Setter Methods are not shown by the default get-member output. Since adapted Types now expose Base members, use –view All to list Base members in the get-member output.

Improved ADSI support: ADSI adapter now allows access to Base Methods and Properties. [ADSISearcher] Type accelerator has been added for System.DirectoryServices.DirectorySearcher Class. Two CodeMethods, ConvertDNBinaryToString and ConvertLargeIntegerToInt64 have been added to DirectoryEntry type to simplify marshalling data between ADSI and PowerShell.

New parameters added to Get-WMIObject: Get-WMIobject cmdlet now supports following parameters -Impersonation, -Authentication, -Locale, -EnableAllPrivileges, -Amended, -DirectRead, -Authority.

The new parameters allow setting Authentication and Impersonation properties which are needed to make secure connections to a remote computer.

Improved Bitwise Operators: The Bitwise operators now work with Int64

19.   New PowerShell APIs

This release provides new APIs for programmatic access to many of the features listed above. See SDK documentation available on download center for a complete list of new Types and APIs. The following is a quick summary of Key APIs and related features to help you get started.

 Note: This is a pre-release drop and the Type Names and APIs are subject to change.

Feature Area

Related Types

Hosting, RunspacePools

System.Management.Automation.Runspaces.PowerShell, System.Management.Automation.Runspaces.PSDataCollection, System.Management.Automation.Runspaces.RunspacePool

System.Management.Automation.Runspaces.PSCommand

Parser Tokenizer

System.Management.Automation.PSParser, System.Management.Automation.PSToken, System.Management.Automation.PSTokenType, System.Management.Automation.PSParseError

Constrained Runspaces

System.Management.Automation.Runspaces.InitialSessionState

System.Management.Automation.Runspaces.SessionStateAssemblyEntry

System.Management.Automation.Runspaces.SessionStateCmdletEntry

System.Management.Automation.Runspaces.SessionStateProviderEntry

System.Management.Automation.Runspaces.SessionStateScriptEntry

System.Management.Automation.Runspaces.SessionStateAliasEntry

System.Management.Automation.Runspaces.SessionStateApplicationEntry

System.Management.Automation.Runspaces.SessionStateFunctionEntry

System.Management.Automation.Runspaces.SessionStateVariableEntry

MetaData APIs

System.Management.Automation.ProxyCommand, System.Management.Automation.CommandMetadata, System.Management.Automation.ParameterMetaData

 

Published Tuesday, November 06, 2007 7:20 AM by PowerShellTeam

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# The Community Technology Preview (CTP) of Windows PowerShell 2.0

The Windows PowerShell Team is pleased to release the first Community Technology Preview (CTP) of Windows

Tuesday, November 06, 2007 3:51 AM by Windows PowerShell

# Powershell 2.0 CTP

The first CTP of Microsoft Powershell 2.0 is out! It doesn&#xB4;t work very well with Vista RTM, so install

Tuesday, November 06, 2007 5:53 AM by Mikael Söderström

# PowerShell v2.0 CTP is public

PowerShell v2.0 CTP is public ...

Tuesday, November 06, 2007 6:00 AM by Rolf Usergroup Germany/Swiss/Austria

# Windows PowerShell 2.0 Community Technology Preview (CTP)

Windows PowerShell 2.0 Community Technology Preview (CTP)

Tuesday, November 06, 2007 6:01 AM by Martin Pavlis - KPCS CZ, s.r.o., www.kpcs.cz

# re: What's New in CTP of PowerShell 2.0

Windows XP - I do not have an entry in Add/Remove programs for Powershell V1.0 (Windows PowerShell(TM) 1.0.)nor do I have entries for KB926139. Powershell v1.0 is installed and running.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Powershell\1\Install is set to 1.

How do I Uninstall?

Thank you,

Fred J.

Tuesday, November 06, 2007 7:49 AM by Fred Jacobowitz

# PowerShell 2.0 - CTP

La nueva versión de Windows PowerShell 2.0 extenderá lsa características actuales de Windows PowerShell

Tuesday, November 06, 2007 8:33 AM by Jorge Serrano - MVP Visual Developer - Visual Basic

# re: What's New in CTP of PowerShell 2.0

This is a very important milestone for PowerShell. The CTP contains great work on several fronts.

Well done PowerShell Team

Tuesday, November 06, 2007 8:46 AM by thomas Lee

# Disponibilité de la CTP de PowerShell 2.0

Le blog n&#39;a même pas encore un message qu&#39;on parle déjà de PowerShell 2.0 !! En effet depuis

Tuesday, November 06, 2007 10:56 AM by Powershell Blog

# New and Notable 201

SOA Nick has his fourth post in a series on the impact of the business operating model on Service Oriented

Tuesday, November 06, 2007 11:38 AM by Sam Gentile

# Windows Powershell V2 RTM -whatif

I'm a Powershell fan (a recovering LogParser junkie - check out this mighty fine mix from MS.COM operations

Tuesday, November 06, 2007 12:07 PM by Allan's Best Week Ever

# PowerShell 2.0 CTP Available

Want to see the new featurs and functions of PowerShell as it marches to a 2.0 milestone? So do I! Compatibility

Tuesday, November 06, 2007 1:17 PM by TenBrink Tech

# @Fred J.

Fred,

Make sure you have "Show Updates" checked.  I'm not 100% sure, but I believe that is where it will show up.

Tuesday, November 06, 2007 1:18 PM by marco.shaw

# re: What's New in CTP of PowerShell 2.0

I've just gotten into the notion of changing my career path to more on the development side, since I've enjoyed PHP and vbScript quite a bit.

I'm not much of a developer in any means.  Looking at the bit of PowerShell I've played with so far... looks like it'd be a good springboard in to other languages as well.  Am I correct in that thought?  Any tips, tricks, ideas in helping the learning curve here would not be tossed to the side either (picked up a copy of Bruce Payette's book as a starting point).

~Mike

Tuesday, November 06, 2007 3:56 PM by MikeDub

# re: What's New in CTP of PowerShell 2.0

Well done guys! Looking forward to trying it out tonight!

Kirk

Tuesday, November 06, 2007 4:15 PM by Kirk Jackson

# re: What's New in CTP of PowerShell 2.0

I whipped up a sample script cmdlet (slightly convoluted, for the sake of executing identically from either arguments or the pipeline) ... so I thought I'd share it:

http://huddledmasses.org/powershell-20-ctp-script-cmdlets/

Tuesday, November 06, 2007 5:43 PM by Joel "Jaykul" Bennett

# Windows Powershell ver.2.0 CTP

Windows Powershell ver.2.0 CTP

Tuesday, November 06, 2007 8:24 PM by Scripting Weblog

# Windows Powershell ver.2.0 CTP

Windows Powershell ver.2.0 CTP

Tuesday, November 06, 2007 8:25 PM by Scripting Weblog

# @Mike

I had no practical experience with .NET before coming to PowerShell.  I think PowerShell is a great starting point to try to get your head around .NET via C#.  Bruce's book is very good, and getting a good solid knowledge of PowerShell is good before trying to dig into programming.  If you think of it, you're programming in PowerShell when you start calling the .NET framework.  Check out my blog, leave a comment.  I'd be happy to try to help you learn and maybe help others.

Tuesday, November 06, 2007 9:35 PM by marco.shaw

# [help] I can't find KB926140 to uninstall

I'm used WindowsServer2003-KB926140-x86-CHS.exe to install powershell v1.0,

But i can't find it under Add/Remove Program.

And I'm sure "Show Updates" is checked.

who can help me?

thanks!

Wednesday, November 07, 2007 6:42 AM by SpikeKnox

# re: What's New in CTP of PowerShell 2.0

Hey!

These features sound awesome. Is a port to Linux planned so I can use this sophisticated PowerShell there too?

I'm so excited!

Greetings,

Johannes

Wednesday, November 07, 2007 10:07 AM by Johannes Bauer

# Windows PowerShell 2.0 (CTP)

Som jag skrev i mitt tidigare inlägg om PowerShell 2.0 (CTP) så går det alltså att ladda hem denna förhandstitt

Wednesday, November 07, 2007 10:18 AM by Fredrik Wall

# Windows PowerShell : What's New in CTP of PowerShell 2.0

All I can say is WOW... PowerShell is great... Command line and GUI... how can it get better... Windows...

Wednesday, November 07, 2007 10:19 AM by It's my life... And I live it...

# re: What's New in CTP of PowerShell 2.0

Anything about MTA or performance improvements??

Wednesday, November 07, 2007 12:10 PM by andrzej_kukula

# re: What's New in CTP of PowerShell 2.0

Please help; I can't uninstall Version 1. I check the "Show Updates" box but it nor the patches are displayed. I see I am not the only one having a problem. I am running XP-Pro. Can I just remove some registry entries and a directory? I am anxious to try the CTP.

Fred Jacobowitz

Wednesday, November 07, 2007 12:13 PM by Fred Jacobowitz

# re: What's New in CTP of PowerShell 2.0

SpikeKnox,

If you updated your machine to W2K3-SP2 after installing PowerShell 1.0, you might be seeing the issue as mentioned at http://blogs.msdn.com/powershell/archive/2007/03/19/windows-server-2003-sp2-upgrade.aspx.

If that is the case, you might be able to find the uninstaller at %windir%\$ntuninstallkb<KBNUMBER>$\spuninstall\spuninstall.exe.

Wednesday, November 07, 2007 1:10 PM by PowerShellTeam

# PowerShell v2.0 CTP is here

When v1.0 was in beta, I used to really love it (and I still do!). The PowerShell blog has just announced

Wednesday, November 07, 2007 4:49 PM by LA.NET [EN]

# [help] spuninstall.exe is not exist -_-!

Thanks PowerShellTeam,

I just find two exe in %windir%\$ntuninstallkb<KBNUMBER>$

C:\WINDOWS\$NtUninstallKB926140$\PSCustomSetupUtil.exe

C:\WINDOWS\$NtUninstallKB926140$\PSSetupNativeUtils.exe

I removed powershell entries in registry and reinstall KB926140 again, but it doesn't work.

BTW machine to W2K3-SP2 is before installing PowerShell 1.0.

Wednesday, November 07, 2007 8:38 PM by SpikeKnox

# re: What's New in CTP of PowerShell 2.0

I ran the V2 on win2003 R2,when I use "get-help about_remoting",it told me that

PS C:\> get-help about_remoting

Get-Help : Cannot find Help for topic "about_remoting".

At line:1 char:9

+ get-help <<<<  about_remoting

PS C:\> get-help -?

Get-Help : Error loading help content for Get-Help from file "System.Management.Automation.dll-Hel

em.Management.Automation.dll-Help.xml.

At line:1 char:9

+ get-help <<<<  -?

Maybe I am a poor guy?

Thursday, November 08, 2007 9:36 AM by Nemo

# re: What's New in CTP of PowerShell 2.0 - Better ACL management?

Hi there at the PowerShell Team,

Great job so far-

I am hoping that the fuctionality for managing both local and remote NTFS permissions is or can be improved in version 2. I really have to revert to using xcacls.vbs to truly manage permissions properly. get-acls & set-acl really need to do all xcacls do - without the saving to file and re-applying that the current v1 commandlet do. If the xcacls functionality/simplicity could be incorporated - it would be awesome - for me at least!

Pete Gomersall

Friday, November 09, 2007 12:14 PM by Pete Gomersall

# re: What's New in CTP of PowerShell 2.0

I also had the same problem about using "get-help".

I copy all the files in the

"C:\WINDOWS\system32\WindowsPowerShell\v1.0\en-US" to the "C:\WINDOWS\system32\WindowsPowerShell\v1.0"

, and it works.

Friday, November 09, 2007 1:28 PM by Hung-Yu Wu

# re: What's New in CTP of PowerShell 2.0

Any screenshots (or even a screencast) available to show the GUI part?

Friday, November 09, 2007 3:20 PM by andy

# PowerShell : CHM mis à jour, et CHM pour la CTP de la v2

Le fichier CHM bien pratique dont je vous avais parler a été mis à jour : Windows PowerShell Graphical

Saturday, November 10, 2007 6:14 PM by CoqBlog

# Powershell学习笔记(9):PowerShell V2 CTP

声明: The PowerShell V2 CTP is not for everyone. You should read this PowerShell Team blog entry ( http://blogs.msdn.com/powershell/archive/2007/11/02/ctp-watch-this-space.aspx

Tuesday, November 13, 2007 5:37 AM by ghjconan's blog

# re: What's New in CTP of PowerShell 2.0

Windows XP-SP2 and Windows Server 2003: Under Add/Remove Program, select the option to show updates. Remove the PowerShell updates as applicable for your system: KB926139 (en-us),KB926140 (localized), KB926141 (MUI pack)

None of these exsist with my windows 2003 installation. Can't remove powershell 1.0

inorder to update to powershell 2, if I delete the reg key will that allow me to install.

Friday, November 16, 2007 9:53 AM by Greg

# re: What's New in CTP of PowerShell 2.0

Greg: Deleting the registry key would do the trick. But if I were you, I would install 1.0 after deleting the registry key and do a clean uninstall before installing V2 CTP

Saturday, November 17, 2007 12:16 PM by TimePass

# re: What's New in CTP of PowerShell 2.0

I can't get gpowershell (the graphical interface) to work.  No matter what I run it in - a Command window, a PowerShell v.2.0 window or just by clicking on it in Explorer, it refuses to do anything at all.  By the way, I'm running XP SP2, x64.  What is the secret?

- Theedrich

Monday, December 03, 2007 12:07 AM by Theedrich Yeat

# re: What's New in CTP of PowerShell 2.0

> I can't get gpowershell (the graphical interface) to work

The Microsoft.Public.Windows.PowerShell newsgroup is the best place to ask support-type questions.  When you place a post there, include what problems you see.  (e.g. you don't get a window or you get a window but you get an error, etc).

Jeffrey Snover [MSFT]

Windows Management Partner Architect

Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell

Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Monday, December 03, 2007 8:38 AM by PowerShellTeam

# Powershell with Jeffrey Snover by James One (IT Forum 2007)

James One posted his interview with Jeffrey Snover at IT-Forum 2007 onto the edge site : Powershell with

Sunday, December 30, 2007 4:39 PM by The PowerShell Guy

# The PowerShell 2.0 CTP is here!

The PowerShell 2.0 CTP is here!

Monday, January 07, 2008 12:51 PM by PowerShell Answers

# re: What's New in CTP of PowerShell 2.0

reply:Fred Jacobowitz

Please check the checkbox of "windows uodate" is checked in your Add/Remove programs.

Tuesday, January 08, 2008 11:32 PM by Flemming Wong

# re: What's New in CTP of PowerShell 2.0

Excellent job on the 2.0 version.  I especially like the [ADSISearcher] type accelerator.  In version 1.0 I had to do some extra stuff to get this to work.

Speaking of ADSI, here is a suggestion for PowerShell version 3.0.  Simply stated how about a built-in PowerShell Directory Service provider.  So I can do things like:

Set-Location LDAP://CN=Users,DC=ACME,DC=COM

Get-ChildItem LDAP://CN=Users,DC=ACME,DC=COM

Remove-Item LDAP://CN=JDoe,CN=Users,DC=ACME,DC=COM

Sure seems like a perfect fit.

Thursday, February 14, 2008 3:26 PM by Tom Holt

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker