PowerShell
How to invoke method on PSObject from managed C++
I\'m trying to execute a WMI function using the PowerShell class from a managed C++ function. But I can\'t work out how to call a method on the object that is returned in the PSObject list from the P[详细]
2023-04-10 15:26 分类:问答Piping into objects/properties/methods in PowerShell
In PowerShell, y开发者_如何学运维ou can pipe into Cmdlets and into scripted functions. But is it possible to pipe into objects, properties, or member functions?[详细]
2023-04-10 12:31 分类:问答VM Clone to the Subdirectory of a Datastore
I have a Datastore in vCenter that I\'m trying to clone to using a PowerCLI script I run weekly.I can clone virtual machines to it, but I have absolutely no control over the directory structure.It\'s[详细]
2023-04-10 11:16 分类:问答PowerShell Connect Wirless Adapter
PowerShell 3.0 has several built-in NetAdapter cmdlets / fu开发者_运维问答nctions.Is it possible to connect / disconnect a wireless adapter using this new noun?For example:[详细]
2023-04-10 07:32 分类:问答Where does Windows PowerShell set $profile?
I would like to move my default \"My Documents\\WindowsPowerShell\" folder开发者_运维技巧. However, when I try this, PowerShell of course can\'t find $profile. Is there a file or something that I can[详细]
2023-04-10 03:55 分类:问答Trying to copy a group of files contained in a text file
I\'m trying to copy a list of files from a txt file and as a newbie, I\'m having a hard time. Here is a bit of the text file. The real file has no extra lines, but I had to do that to :[详细]
2023-04-10 03:37 分类:问答Powershell - Array Range from user input
What would be the easiest way to get user input for an array range. For ex开发者_Go百科ample: function MyArrayOfMachines {[详细]
2023-04-10 02:18 分类:问答Powershell regex for connectionStrings?
For some reason I\'m having a brutal time parsing the conn开发者_如何转开发ection string in the web.config file.[详细]
2023-04-09 23:45 分类:问答GetType used in PowerShell, difference between variables
What is the difference between variables $a and $b? $a = (Get-Date).DayOfWeek $b = Get-Date | Select-Object DayOfWeek[详细]
2023-04-09 23:18 分类:问答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 分类:问答