3
votes
0answers
184 views

How to correctly retrieve SVN-Info from relative URI in SVN-external using SharpSvn

I have a Powershell Cmdlet, which creates SVN-Branches from the trunk via SharpSvn. The repository contains externals with and without revision/pegRevision explicitly set. In the branch, all externals ...
2
votes
0answers
81 views

Running Powershell script via Runspace from C# is very slow

When executing a particular script from Powershell command window, the execution takes about 2 minutes. Executing the same script from C# (Windows Service) using System.Management.Automation.Runspaces ...
2
votes
0answers
162 views

Is it possible to share properties and comments between Powershell cmdlets in c#?

When exposing a set of related functions in Powershell cmdlets, is it possible to share the property names and summary help to normalize these across cmdlets in an assembly? I know that this can be ...
1
vote
0answers
62 views

How to send a string parameter from c# to powershell?

I'm writing 2 apps one with c# and the other with powershell 1.0, in some point of my code I want to pass a string that indicating the server name from my c# app to a powershell script file that I ...
1
vote
0answers
58 views

Start GUI application on remote server

I've looked through the forums and havn't found anything that quite helps me complete what I want to do. What I'm looking for is a way to start a the GUI for an application on a remote server. I've ...
1
vote
0answers
88 views

WinRM - Second Hop without CredSSP

I would like to ask if it is possible to impersonate at "second hop" at WinRM service using only Kerberos (delegation)? CredSSP is no solution for me because I cannot prompt user password .. I'm ...
1
vote
0answers
148 views

Exchange 2010 replication problems while c# powershell invoking multiple commands

I have a problem with sequentially invoking multiple powershell commands on HA Exchange environment (on single development host everything work fine). As long as it was about only Exchange commands I ...
1
vote
0answers
124 views

add-windowsfeature is not recognized

I'm trying to run powershell commands using C# but I keep getting errors when I invoke the pipeline. I was wondering if anyone know why I keep getting add-windowsfeature is not recognized. Thanks in ...
1
vote
0answers
174 views

Get-WMIObject fails to enumerate Win32_LogicalDiskToPartiion in elevated powershell

I have a really simple Powershell query: Get-WmiObject -query 'ASSOCIATORS OF {Win32_LogicalDisk.DeviceID="C:"} WHERE AssocClass = Win32_LogicalDiskToPartition' On a Windows 7 (64-bit) machine, ...
1
vote
0answers
269 views

Problems with accessing AD Information (PowerShell Script works, C# code dont)

I found this PowerShell Script that searches for Exchange Servers in the Domain. Function Get-ExchangeServerInSite { $ADSite = [System.DirectoryServices.ActiveDirectory.ActiveDirectorySite] ...
1
vote
0answers
192 views

Syntax not supported by this runspace in Powershell and C#

I am trying to get information about my users mailboxes by powershell integrated into C#, but i am getting this error: "This syntax is not supported by this runspace. This might be because it is ...
1
vote
0answers
188 views

Feature To Provision Managed Metadata Service

I created a PowerShell script which: Uses Get-SPServiceApplicationPool, Get-SPMetadataServiceApplicationProxy and Get-SPMetadataServiceApplication to check if the service is already configured Uses ...
1
vote
0answers
512 views

Sharepoint formatting datetime from xml eg: 2011-12-15T00:00:00+01:00

I saved a sharepoint list to xml using dataset. DateTime is saved in this kind of format in xml: <ExpiryDate>2011-12-15T00:00:00+01:00</ExpiryDate> I tried to use ...
1
vote
0answers
292 views

save sharepoint list data together with the data types to xml by using Dataset

I have the code below which saves a sharepoint list to xml by using dataset. Below the code you will see the output in xml format. There are a few things which I would like some help: How can I ...
1
vote
0answers
268 views

Powershell: Remote Runspace vs. remote sessions

I need to run commands remotely on a different machine programmatically and am using powershell (from c#) for it. I would like to know the pros and cons of using remote runspace and running the ...

1 2 3 4 5 10
15 30 50 per page