powershell-cmdlet
Powershell Importing custom C# CMDlets, no available "ExportedCommands"
first question here :) So I have to create a custom CMDLet for Powershell 2.0, using visual studio 2010 express.[详细]
2023-03-14 09:26 分类:问答Wrong time format returned by get-counter/export-counter in Powershell
The get-counter/export-counter cmdlets in powershell seem to return dates in the U开发者_开发技巧S format which is rather undesirable in this case. I went through both get-help -full pages and couldn\[详细]
2023-03-14 08:00 分类:问答Powershell Cmdlet with Mandatory Parameters
I\'m trying to create a simple powershell cmdlet that would h开发者_如何学运维ave a few mandatory parameters. I\'ve found the following code for doing so however, I cannot get it to execute:[详细]
2023-03-14 07:59 分类:问答Issue with Microsoft Enterprise Library 5.0 and custom powershell cmdlet
I\'m creating a custom powershell 1.0 cmdlet that will allow me to feed exceptions from powershell scripts to the Microsoft Enterprise Library v5.0 exception handling block.[详细]
2023-03-11 10:39 分类:问答How to retrieve email alias and CN for everyone in an AD group using PowerShell
I am using PowerShell with the Quest AD cmdlets. I can use the Get-QADGroupMember cmdlet to get a list of everyone in a given group. So far so good but I would like to get their email alias as well.[详细]
2023-03-02 13:57 分类:问答Is Make-Shell deprecated?
A couple of years ago I used Make-shell to create custom shells with custom cmdlets. Later I used snap-in technique and I forgot about that option.[详细]
2023-02-25 00:27 分类:问答PowerShell - How do I call a cmdlet in a function when overriding that cmdlet's name with the same name as the function?
So I have a cmdlet named update-name that I have no access to change. I have created a function named update-name (the same name as the cmdlet).How do I call the cmdlet from the function with the sam[详细]
2023-02-22 20:00 分类:问答Getting a cmdlet's dynamic parameters via reflection
Powers开发者_StackOverflow社区hell exposes some parameters, \"dynamic parameters\", based on context. The MSDN page explains the mechanism pretty well, but the skinny is that to find out about these o[详细]
2023-02-16 16:02 分类:问答VBscript Public Property Set/Get equivalent in PowerShell
I\'m trying to add elements to a Powershell variable with Add-Member. I have no 开发者_开发知识库problem adding static properties with NoteProperty, and methods with ScriptMethod, like that :[详细]
2023-01-25 07:56 分类:问答creating powershell script to backup a file and append the date
Currently I have a one line batch file to back up a file.I run it manually when I need to back up a file.The only thing I would like to add to it is the current date.Here is what I have:[详细]
2023-01-15 14:45 分类:问答