Sunday 8 November 2015

Install Tomcat on Centos



Wow.. Weeknd End with my first Shell Scripting, Its work , feeling like on Air, Time to have some Beer.
Description : Once you run it, it will download the tomcat and start the tomcat service and you will be ready to kick off the installtion of Open AM. 
Note : Drop me a mail any.singha@gmail.com in case it not work,




Saturday 11 July 2015

NewBee Post for sharepoint in Installation of FIM Portal 2010


> As a NewBee to FIM the hardest part is to configure the sharepoint for the FIM portal, The below are not the best practise.However it will give you an fair idea how to install at the first go, I have skipped the installation for FIM portal. It will only show how you have configure your sharepoint site.

> My Machine name is NewBee and domain joined.
>Install the sharepoint site from the internet.
















> Once the sharepoint is installed, Go to Start menu and select share

























> Create a Web application Pool













>Create a Alternate Acces Mapping












>> Go to FIM Splash of FIM portal and Install it. Once it got installed, you will get the below page.


Happy Installation..!!!

Sunday 5 April 2015

C# With PowerShell Import Module Active Directory



How to import Module ActiveDirectory in C#, This is just an example how can you integrate powershell with C#, If you are ITPro code looks simple with the help of powershell.



ConsoleApplication and Powershell


Saturday 4 April 2015

Calling Powershell from C#.

Calling Powershell from C#



In the solution explorer, add a project reference to the System.Management.Automation. I always found this in 





using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management.Automation;
using System.Management.Automation.Host;
using System.Management.Automation.Provider;
using System.Management.Automation.Runspaces;
using System.Collections.ObjectModel;


namespace PowerShell_Call
{
    class Program
    {

        public static string name(string args)
        {

            using (PowerShell powershell = PowerShell.Create().AddCommand("Get-Process").AddArgument(args))
            {
             
                foreach (PSObject result in powershell.Invoke())
                {
                    return result.Members["id"].Value.ToString();
                 
                                 }
            }

            return "";
         

        }    
     
     
        static void Main(string[] args)
        {

            string x = "apnmcp";
            string v=name(x);          
            Console.WriteLine("The value is {0}", v);
            Console.ReadLine();

        }
    }
}

Output :

Console Application


Powershell Output.


ServiceNow onboarding Sailpoint