Click here to Skip to main content
15,893,401 members

Comments by @BangIndia (Top 173 by date)

@BangIndia 17-Jul-17 8:09am View    
Because as the continuous production environment a consumer will keep using the topic. But old data should get deleted. But That's not happening in windows environment.
@BangIndia 10-Mar-15 1:29am View    
Yes i am running the exe in system acccount and trying to log off other accounts.
If you want to use ImpersonateLoggedOnUser then we need to user name and password.
From system account we can't get this.
is there any other way?
@BangIndia 21-Feb-14 10:21am View    
For me that Get-WdsClient failing again.
@BangIndia 21-Feb-14 9:43am View    
using System;
using System.Collections.Generic;
using System.Text;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Collections.ObjectModel;


Runspace runspace = RunspaceFactory.CreateRunspace();

runspace.Open();
Pipeline pipeline = runspace.CreatePipeline();
pipeline.Commands.AddScript("C:\\GetClinetINfo.ps1");
Collection<PSObject> results = pipeline.Invoke();
foreach (object item in pipeline.Error.ReadToEnd())
{
Console.WriteLine("Error" + item.ToString());
}


GetClinetINfo.ps1:


Get-WdsClient -DeviceID 1


above c# code is development in .net 3.5 and powershell 2.0..
@BangIndia 21-Feb-14 9:13am View    
Deleted
I know its not available. but i am running that application in Windows 2012 only. then also its throughing that error.

when i execute the command manually in powershall (which is avaialbe in 2012) its working fine. (I know there is no prob in my command)