Click here to Skip to main content
15,904,986 members
Home / Discussions / C#
   

C#

 
QuestionWPF MVVM Threads and a Log Pin
cjb11013-Jun-13 2:38
cjb11013-Jun-13 2:38 
AnswerRe: WPF MVVM Threads and a Log Pin
Pete O'Hanlon13-Jun-13 2:54
mvePete O'Hanlon13-Jun-13 2:54 
GeneralRe: WPF MVVM Threads and a Log Pin
cjb11013-Jun-13 3:03
cjb11013-Jun-13 3:03 
GeneralRe: WPF MVVM Threads and a Log Pin
Pete O'Hanlon13-Jun-13 5:13
mvePete O'Hanlon13-Jun-13 5:13 
Questionhow to customize datatable.Select Pin
jojoba201112-Jun-13 17:36
jojoba201112-Jun-13 17:36 
AnswerRe: how to customize datatable.Select Pin
Ron Beyer12-Jun-13 18:10
professionalRon Beyer12-Jun-13 18:10 
QuestionRe: how to customize datatable.Select Pin
jojoba201112-Jun-13 20:26
jojoba201112-Jun-13 20:26 
AnswerRe: how to customize datatable.Select Pin
Ron Beyer13-Jun-13 2:52
professionalRon Beyer13-Jun-13 2:52 
QuestionC# accessing a windows api Pin
classy_dog12-Jun-13 12:17
classy_dog12-Jun-13 12:17 
AnswerRe: C# accessing a windows api Pin
Ron Beyer12-Jun-13 12:30
professionalRon Beyer12-Jun-13 12:30 
AnswerRe: C# accessing a windows api Pin
Richard MacCutchan12-Jun-13 21:15
mveRichard MacCutchan12-Jun-13 21:15 
AnswerRe: C# accessing a windows api Pin
DaveyM6913-Jun-13 2:45
professionalDaveyM6913-Jun-13 2:45 
GeneralRe: C# accessing a windows api Pin
classy_dog13-Jun-13 9:08
classy_dog13-Jun-13 9:08 
GeneralRe: C# accessing a windows api Pin
Pete O'Hanlon13-Jun-13 9:48
mvePete O'Hanlon13-Jun-13 9:48 
GeneralRe: C# accessing a windows api Pin
DaveyM6913-Jun-13 9:52
professionalDaveyM6913-Jun-13 9:52 
GeneralRe: C# accessing a windows api Pin
Eddy Vluggen13-Jun-13 9:53
professionalEddy Vluggen13-Jun-13 9:53 
QuestionC# using WPF Pin
classy_dog12-Jun-13 12:16
classy_dog12-Jun-13 12:16 
AnswerRe: C# using WPF Pin
Pete O'Hanlon12-Jun-13 12:31
mvePete O'Hanlon12-Jun-13 12:31 
AnswerRe: C# using WPF Pin
Richard MacCutchan12-Jun-13 21:12
mveRichard MacCutchan12-Jun-13 21:12 
AnswerRe: C# using WPF Pin
classy_dog13-Jun-13 9:06
classy_dog13-Jun-13 9:06 
QuestionServer 2012 remote powershell with C# Pin
JD8612-Jun-13 9:26
JD8612-Jun-13 9:26 
I'm having the toughest time finding / figuring out how to get remote powershell working with 2012.

Currently this is my code:

C#
private void OpenRunspace(string username, string password, ref Runspace remoteRunspace)
        {
            // Convert plain text password to secure string
            SecureString pass = new SecureString();
            foreach (char c in password.ToCharArray())
            {
                pass.AppendChar(c);
            }

            PSCredential psc = new PSCredential(username, pass);
            WSManConnectionInfo wmci = new WSManConnectionInfo(new Uri("http://" + ConfigurationManager.AppSettings["ExchangeServer"] + "/powershell"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", psc);
            wmci.AuthenticationMechanism = AuthenticationMechanism.Kerberos;
            wmci.ProxyAuthentication = AuthenticationMechanism.Negotiate;

            wmci.SkipCACheck = true;
            wmci.SkipCNCheck = true;
            remoteRunspace = RunspaceFactory.CreateRunspace(wmci);
        }



The error I keep getting is "Access is denied". I've verified the credentials I am passign to it is part of the REmote Management Users group on that local server, ran the Set-User "Administrator" powershell enabled command in Exchange 2013

What else am I missing here?
QuestionDB Connection Pin
mynamearan12-Jun-13 3:25
mynamearan12-Jun-13 3:25 
AnswerRe: DB Connection Pin
V.12-Jun-13 3:31
professionalV.12-Jun-13 3:31 
GeneralRe: DB Connection Pin
mynamearan13-Jun-13 4:05
mynamearan13-Jun-13 4:05 
GeneralRe: DB Connection Pin
V.13-Jun-13 20:02
professionalV.13-Jun-13 20:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.