In PowerShell v1.0, if you want to manage services on a remote computer, you likely used WMI and the Get-WMIObject cmdlet. But there is another solution using ADSI. If you use the WinNT provider, you can access all of the services on a remote machine in much the same way you would manage local users and groups. Let me show you.
Tag: Select-Object
Why does Select-Object take so long to keep the -first objects?
There’s recently been a big discussion on the PowerShell MVP mailing list about Select-Object and its -first parameter, which instructs it to only keep the first “x” objects it’s given. The discussion basically goes like this: 1..10000 | select -first 10 In this, a collection of objects numbering 1 to 10,000 is piped to Select-Object, […]