powershell-cmdlet
How to add a PSCmdlet or PSSnapin to hosted Powershell runtime without installing the snapin
My scenario is as follows. I am uploading my dll through web UI. I am hosting a PowerShell runspace in an ASP.NET application.[详细]
2023-04-13 08:13 分类:问答Custom PowerShell Cmdlet does not accept Variables
I have a custom PowerShell cmdlet that has the following attributes on one of the input properties.The property is a get/set of type float . I want to be able to supply this property with either a flo[详细]
2023-04-09 18:51 分类:问答Problems using literals and codeblocks with c# to interact with powershell 2.0
If I try to run a Powershell Command through c# I get the following error: \"The term \'select\' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelli[详细]
2023-04-08 10:17 分类:问答Hosted PowerShell cannot see Cmdlets in the same Assembly
I\'m trying to run PowerShell scripts f开发者_高级运维rom my C# code, that will use custom Cmdlets from the assembly that runs them. Here is the code:[详细]
2023-04-07 12:39 分类:问答How to register a powershell snapin programmatically in a hosted powershell environment?
I\'ve developed some powershell cmdlets and providers, and also devel开发者_如何学JAVAoped an application to host powershell environment. I would like to run those cmdlets and providers in this hosted[详细]
2023-04-06 01:28 分类:问答How to find new cmdlets in Powershell v3.0
I wanted to find the new cmdlets / functions in Powershell. I used the following approach, but not sure if it is comprehensive / correct. Any ideas to find this in a better / different way?[详细]
2023-04-05 19:31 分类:问答How do you support PowerShell's -WhatIf & -Confirm parameters in a Cmdlet that calls other Cmdlets?
I have a PowerShell script cmdlet that supports the -WhatIf & -Confirm parameters. It does this by calling the $PSCmdlet.ShouldProcess() method before performing the change.[详细]
2023-03-30 18:03 分类:问答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. Howev开发者_运维百科er, an exception is thrown if the path does not exist.[详细]
2023-03-30 00:37 分类:问答wap cmdlets - add-certificate error
I\'m doing something wrong when trying to upload a certificate to Azure using the WAPPA command, add-certificate.[详细]
2023-03-25 10:37 分类:问答How to convert cmdlet parameter (which is string) to any other type
I want to pass parameter of custom type to my cmdlet. I declare parameter like this: [Parameter(Position = 1)][详细]
2023-03-18 09:57 分类:问答