Top "Cmdlet" questions

A cmdlet is a lightweight Windows PowerShell script that performs a single function.

powershell Get-NetAdapter command not recognized

I am running Windows 7 Home Premium. I installed .Net4.5.1 and Powershell 4.0 It installed successfully. I can verify that because this …

powershell cmdlet
Return only files with Get-childitem in powershell 2

I know that we can use the parameter -File in Powershell V3.0 but how can we get only files with …

windows powershell powershell-2.0 cmdlets cmdlet
stop-service cmdlet timeout possible?

We're using the stop-service cmdlet to kill a few services on our boxes. Most of the time it works great, …

powershell windows-services cmdlet
Powershell String Length Validation

I created a really simple HelloWorld.ps1 Power-shell script which accepts a Name parameter, validates its length and then prints …

powershell cmdlets cmdlet
How to capture a Powershell CmdLet's verbose output when the CmdLet is programmatically Invoked from C#

BACKGROUND I am using Powershell 2.0 on Windows 7. I am writing a cmdlet in a Powershell module ("module" is new to …

c# powershell powershell-2.0 cmdlet
Run parallel Invoke-WebRequest jobs in PowerShell v3

Running simultaneous background jobs in PowerShell in pretty straightforward, but I cannot seem to get it working with the new (…

powershell background-process powershell-3.0 download cmdlet
how to create a cmdlet?

I have written my program in c# .net. I want to convert it in to a powershell cmdlet. I was …

powershell cmdlet pssnapin
Shorter versions of powershell cmdlet parameters

Given my research, I don't believe the following is easily accomplished, if at all. As a last resort, however, I …

powershell parameters alias cmdlet
Select-String in Powershell only displaying part of the line from a text file, need it to display whole thing

I am trying to write a simple PS script to check large .txt log files for a short string: "SRVE0242…

powershell cmdlet select-string
Powershell - Cannot convert value of type "System.Management.Automation.PSCustomObject" to type "System.Management.Automation.PSCustomObject"

I am working with Powershell 4 under Windows 7 and I have cmdlet defined like this: Function Transfer-File { [CmdletBinding()] Param( [Parameter(Mandatory=$…

powershell type-conversion powershell-4.0 cmdlet