April 20, 2019 Vignesh Sathiyanantham

We got a support case user created a backup of the Virtual Machines with MS SQL running but he cannot see the databases running on the machine We checked the added credential, it was Windows Active Directory user added to administrator groups, after we disable the UAC on the Windows Server 2019 user can able to list all the backups To Disable the UAC on Windows Server 2019 Right-click at the bottom of the Windows Server 2012 Start screen, select All apps and click Run.Enter regedit and click OK. The Registry Editor window opens.Expand HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > policies > system.Right-click EnableLUA, and then select Modify.In Value data, enter 0 and then click OK. The following message displays:You must restart your computer…

April 19, 2019 Vignesh Sathiyanantham

  While testing our product Nimesa with Microsoft SQL Server 2016 on Microsoft Windows 2019 i hit with some scenarios my nodes in SQL cluster has some shadows, i wanted to check in all the machine and delete the shadows. What i did is, i wrote a small powershell script which connects to all the nodes in my test bed and run diskshadow command  delete shadows all  For that, First i need to enable the PowerShell Remoting on all the nodes ( My nodes are connected to active directory and all are part of Windows Failover clustering ) Enable-PSRemoting -Force…

February 29, 2016 Vignesh Sathiyanantham

Shadow Copies  are possible for almost all volumes and not “all volumes”. There are few cases which the shadow copy may not work Enough Space The shadow storage volume must contain enough free space. At the very minimum you need at least 300 MB or so, for a single shadow copy, for multiple shadow copies, the space can increase more depending on the I/O usage. You can always run the command VSSADMIN LIST SHADOWSTORAGE to see how much space is used for the existing shadow copies. Only Fixed Drives Only fixed drives are supported. You cannot enable Shadow Copy on removable,…

February 9, 2016 Vignesh Sathiyanantham

Setup a Virtual Host on WAMP Most developers do work locally, Like them i work locally, test then deploy to staging / production. Sometime i used to work on WAMP stack too… in this case creating virtual hosts is better option V-Hosts makes URL cleaner, no need of much modifications in case of CMS let’s setup a virtual host in WAMP. Open your Apache configuration Default Location : C:\wamp\bin\apache\apache2.4.9\conf Search for “Virtual hosts” Uncomment the Include line if it is commented Virtual Host Config File Include Now update the Virtual host config file Sample vHost config <VirtualHost *:80>…

August 27, 2015 Vignesh Sathiyanantham

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…

May 24, 2015 Vignesh Sathiyanantham 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 Vignesh Sathiyanantham 1Comment

VSS hardware provider can be initiate and test using DiskShadow Commands Open the Powershell and Enter Diskshadow PS C:\Users\Administrator> diskshadow Microsoft DiskShadow version 1.0 Copyright (C) 2013 Microsoft Corporation On computer: WIN-VigneshDev, 5/22/2015 12:06:35 AM DISKSHADOW> List the Hardware Providers DISKSHADOW> list providers * ProviderID: {74600e39-7dc5-4567-a03b-f091d6c7b092} Type: [2] VSS_PROV_SOFTWARE Name: Hyper-V IC Software Shadow Copy Provider Version: 1.0.0.0 CLSID: {3e02620c-e180-44f3-b154-2473646e4cb8} * ProviderID: {89300202-3cec-4981-9171-19f59559e0f2} Type: [4] VSS_PROV_FILESHARE Name: Microsoft File Share Shadow Copy provider Version: 1.0.0.1 CLSID: {fce59da7-7bac-40da-8d21-3e7311ba51cd} * ProviderID: {b57190af-4567-4dd0-ad8d51abd60b20d5 Type: [3] VSS_PROV_HARDWARE Name: Vignesh Test Provider Version: 6.2.9200.16384 * ProviderID: {b5946137-7b9f-4925-af80-51abd60b20d5} Type: [1] VSS_PROV_SYSTEM Name: Microsoft Software Shadow Copy…

March 22, 2015 Vignesh Sathiyanantham

If you connected with VPN (Virtual private network), by default your internet will go through the remote gateway (ie. VPN gateway ), Here i explain how to access internet through your local gateway while you are connected to the VPN And the below steps applies only to VPN setups that use Windows default VPN connection and Windows Server RRAS as remote VPN server. The steps may differ if you are using some other My home gateway : 10.0.0.1 My VPN Gateway : 192.168.0.1 My VPN assigned IP : 192.168.0.210 To verify that i use tracert google.com, it goes to my…

January 14, 2015 Vignesh Sathiyanantham

There is an updated rolled out for chrome today which adds adds a new menu in the top-right of the chrome browser that allows the user to manages the user accounts. Many people feels it as ugly and a bit obnoxious, If you are the one who doesn’t switch the accounts often here is the tip to disable the menu To disable it,head into your flags menu. Type in address bar chrome://flags Search the page for “Enable new profile management system” Change the drop-down menu to “Disabled” Restart Chrome That’s it. You’ll lose the user management menu and return to…

January 6, 2015 Vignesh Sathiyanantham

Inconsistent Backup The oldest type of backup probably not consistent. The process of taking the backup was so simple, backup application starts at the beginning of a file structure and copies all of the data until it reaches the end, resulting in a backup (Inconsistent). The reason which can make this backup inconsistent is that if any user added/modified after a backup but before it completed that would result in an inconsistent backup; the files in the backup are not consistent. Mainly the volumes which have Random read and random writes application like databases these types of backups do not…