PowerShell is a command prompt and a scripting environment designed for Windows system administration.

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

In Powershell v3, “-online” won't open in web browser

For instance I am typing, "Get-Help Get-Help -online" and I get this error: Get-Help : Launching a program to show online help failed. No program is associated to launch URI I use Google Chrome as ...
0
votes
0answers
8 views

How to remove Applocker Policy using PowerShell?

I alreay research this ways that "How to remove Applocker Policy using PowerShell" for several days. but all not success. Microsoft TechNet describe AppLocker Cmdlets: New-AppLockerPolicy Creates a ...
0
votes
1answer
17 views

How to restructure/design the following code of custom Cmdlet? Within callstack, from any place to know the executing cmd?

Basically i have my own custom Cmdlet. At any given point of time within a call stack, i would like to know the Cmdlet thats been executed by the PowerShell Command Processor without passing the Cmd. ...
0
votes
1answer
18 views

Powershell Passing Variable to -Filter with Wild Card

I am having a hard time here on this one and I know its probably a simple syntax problem. I don't know how to pass this variable into the code chunk and have it acknowledged correctly. $user = ...
0
votes
1answer
13 views

in powershell, is there a way to pipe an output to another script?

I have a script that writes output to a log file and also the console. I am running the command Add-WindowsFeatures... I want to take output of this command and pipe it to my script. Is it ...
0
votes
2answers
19 views

powershell max/first/aggregate functions

First of all, i`m .NET developer and LOVE LINQ and extension methods in C#. But when i scripting i need something equivalent to Enumerable extension methods Can anybody give me any suggestion/explain ...
0
votes
1answer
13 views

powershell function parameter types

have the following function: function appendToSB([System.Text.StringBuilder]$sb, [string]$value){ [void]$sb.append($value) $sb } $sb = new-object -typename ...
0
votes
0answers
8 views

Problems executing a Citrix XenApp command after loading a plug-in in a Powershell remoting session

I can execute the following commands in a Powershell console and everything works as it should. PS C:\>enter-pssession computername [computername] PS C:\>add-pssnapin citrix.xenapp.commands ...
0
votes
1answer
11 views

How to get the SharePoint workflow status for each SP item with a PowerShell script?

The workflow status data that I want is in the column with the same name as the document library. However I cannot access the data in that column with the name for that column displayed in SharePoint. ...
0
votes
3answers
24 views

Powershell to remove text from a string

What is the best way for me to remove all text in a string after a specific character, in my case "=" and after another character in my case a "," but keep the text between? I've done this is bash ...
0
votes
1answer
18 views

How to get Custom Assembly Attribute with PowerShell

In the AssemblyInfo files of a .net project one can specify a custom assembly attribute via [assembly: AssemblyMetadata("key1", "value1")] My question is how does one retrieve this value from a ...
0
votes
1answer
16 views

Powershell, filters and combining properties

I have an AD group that has other AD groups as members. Some of these groups may have "sub-groups" as well. I want to recursively descend through this group and find answers to several questions ...
0
votes
1answer
19 views

Formatting loop output

I have the following code: $versionList = "Windows 2000","Windows XP","Windows Vista","Windows 7","Windows 8","Windows Server 2003","Windows Server 2008","Windows Server 2008 R2","Windows Server ...
0
votes
0answers
12 views

How to convert Process.StandardOutput.ReadToEnd to String value

I have two powershell scripts. Script 1 calls Script 2. Script 2 returns $standardOut = $process.StandardOutput.ReadToEnd() And Script 1 prints $standardOut to the console. So far, it works as ...
0
votes
0answers
7 views

Unable to update PowerGUI Script editor to latest version

OS: Windows 7 Ultimate SP1 x64. At some point I figured I can no longer update my IDE for Powershell - PowerGUI Script Editor (latest is v3.7.0.92 at the moment of writing). I am getting this error ...

15 30 50 per page