Top "Cmdlets" questions

Cmdlets are lightweight, task-oriented commands in the Windows PowerShell environment.

Join two results in Powershell

I've got two CMDlets that return lists of objects. One returns objects of the type SPSolution, which contains the property …

powershell join cmdlets
Is there an powershell cmdlet equivalent of [System.IO.Path]::GetFullPath($fileName); when $fileName doesn't exist?

If $fileName exists then the cmdlet equivalent of [System.IO.Path]::GetFullPath($fileName); is (Get-Item $fileName).FullName. However, an exception …

powershell cmdlets
How do I deal with Paths when writing a PowerShell Cmdlet?

What is the proper way to receive a file as a parameter when writing a C# cmdlet? So far I …

c# powershell parameters cmdlets
Get file list with Robocopy

I'm trying to see if a solution with Robocopy could be faster than using the Get-ChildItem for getting a list …

powershell robocopy cmdlets
Office 365: Connecting to Office Online 365 service using Power Shell Script issue

I have Windows Server 2008 R2 machine and it has Power Shell v1.0. I wanted to connect to MS 365 online service …

c# sharepoint powershell cmdlets
How to import a Cmdlet from a DLL

Is it possible to import and invoke a Cmdlet from a DLL that is not in the PATH directories? I …

powershell dll build cmdlets
PowerShell Snapin Cmdlet CommandNotFoundException

Currently I'm trying to create my first PowerShell Snapin. I followed this tutorial: How to create a PowerShell Snapin and …

powershell cmdlets cmdlet snap-in pssnapin
Using Remove-Item with Credentials

I am attempting to use the Remove-Item cmdlet as part of an automation for a system. The files are stored …

powershell powershell-2.0 cmdlets
How to get/set/update registry value through group policy cmdlet of Windows PowerShell?

I have configured the EventForwarding Manually but I was wondeing If I could do it programmatically and I came across …

powershell windows-server cmdlets group-policy
Is there any tool that can do c# code to powershell

I was wondering if there is an online tool that can convert c# code to powershell cmdlet code. I have …

c# sharepoint powershell sharepoint-2010 cmdlets