powershell-2.0
PowerShell - How to Import-Module in a Runspace
I am trying to create a cmdlet in C#. The code looks something like this: [Cmdlet(VerbsCommon.Get, \"HeapSummary\")][详细]
2023-03-11 10:20 分类:问答Filter a file based on an object of string
I have a SQL restore script (file on file system) that contains a list of databases to be resto开发者_高级运维red like so:[详细]
2023-03-11 03:18 分类:问答System.DirectoryServices.DirectorySearcher works if called from PowerShell but not if called from cmd.exe
I wrote an script for PowerShell 1.0 (now using 2.0) that executes a search on my Active Directory. The code is the following:[详细]
2023-03-09 07:16 分类:问答PowerShell script fails first time but works second time
I\'ve found a PowerShell script that can change the desktop wallpaper of my Windows 7 PC of an image file whose path is supplied as a parameter. The end result of what I want is to have this script ca[详细]
2023-03-09 03:28 分类:问答Colour-coding get-content results
I\'ve got a powershell script that monitors a log file, filters out the interesting bits and then presents those bits to me as and when they are writte开发者_StackOverflown to the file. Works wonderfu[详细]
2023-03-08 05:35 分类:问答Running background processes (especially rails) in powershell on windows 7
How does one run a background process in powershell on windows 7? The answers here: Powershell equivalent of bash ampersand (&) for forking/running background processes refer to *-psjob commands w[详细]
2023-03-07 08:22 分类:问答Can this be made to work on a remote computer?
I\'ve been killing myself trying to get this to work on a remote computer, is it even possible? If so, can someone point me in the right direction?[详细]
2023-03-07 02:52 分类:问答How to execute PowerShell commands from a batch file?
I have a PowerShell script to ad开发者_C百科d a website to a Trusted Sites in Internet Explorer:[详细]
2023-03-07 01:41 分类:问答Parsing / formatting strings with powershell
This original question was not about powershell. I am assuming these base premises: We are running Windows 7[详细]
2023-03-06 18:34 分类:问答Parsing an XML file with PowerShell
One of my application is generating below XML file. <root> <command name=\"Set\"> <property name=\"PWR.WakeupOnLAN\" value=\"6\" errorcode=\"0x0\"/>[详细]
2023-03-04 23:49 分类:问答