August 27, 2015 asvignesh
You can write the power shell modules through scripts (Script Modules) or through c# code (Binary modules) Script modules can have any valid PS code and save as .psm1 Binary modules can be any assembly that contain cmdlet classes (.dll) the assembly would be imported to powershell and use the commands In this post am writing about the how to create a Binary PowerShell module Open Visual Studio 2012 New Project -> Class Library In order to get the powershell runspace inside the programming language and to create the powershell commands we must add reference of “System.management.automation” dll The DLL…
August 8, 2015 asvignesh
I’ve been developing an automation scripts to provision and expand VMFS Datastore. Expand not Extent… I increased the storage volume size and need to increase the size of VMFS datastore without affording the downtime Here is the VIjava / YAVI Java code for expanding the datastore https://gist.github.com/cd02090562b8cf2ee0e3   [[Amazon_Link_Text]]
May 24, 2015 asvignesh 1Comment
Usually we register the dll to the Global Assembly Cache a.k.a GAC using the Visual Studio developer console Gacutil or earlier to Windows server 2012 you can simply drag and drop to the Windows Assembly folder With the Windows server 2012 drag and drop the file to the assembly folder will no longer work In this scenario developer can use Powershell To add DLL to the Global Assembly Cache Run the powershell PS C:\Users\Vignesh> [System.Reflection.Assembly]::Load(“System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”) GAC    Version        Location —    ——-        ——– True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50… PS C:\Users\Vignesh> $publish = New-Object System.EnterpriseServices.Internal.Publish PS C:\Users\Vignesh> $publish.GacInstall(“C:\Users\Vignesh\bin\asvignesh.dll”); To remove DLL from the Global Assembly Cache (Unregister) Run…
May 22, 2015 asvignesh
There are lots of document and posts about GIT repos and commits, i wrote this like a note for future reference for me and my colleagues Firstly need to setup a bare repository SSH into the remote Unix machine and create a bare repo ssh git@asvignesh.in mkdir asvignesh_proj.git cd asvignesh_proj.git git init –bare Then move to the client machine, mkdir asvignesh_proj cd asvignesh_proj init git //Create Some files add * git commit -m “My initial commit ” git remote add origin git@asvignesh.in:/path/asvignesh_proj.git git push -u origin master Now your team can download / clone it git clone git@asvignesh.in:/path/asvignesh_proj.git