Wednesday, 23 July 2025

Creating a Switch Embedded Teaming (SET) virtual switch in Hyper-V on Windows Server 2016 or later

 how to create SET in Windows server 2022 hyper-v


New-VMSwitch -Name "vSwitch-SET" -NetAdapterName "Ethernet1", "Ethernet2" -EnableEmbeddedTeaming $true -AllowManagementOS $true


both of the netadapter should be up, means connected to the network.

No need to create network team in windows server 2016 and later.

on the physical server you will see the VSwitch with the name "vSwitch-SET" you can assign IP on vSwitch-SET so will be able to access the physical server remotely, and may perform some other tasks as well. But if you leave the vSwitch-SET without any IP assigned then still the VMs will be able to communicate. As the VMs will use "vSwitch-SET" switch but each VM will have its own IP and VLAN for communication.

Thursday, 5 June 2025

how to find serial number of HPE 3PAR Storage

 Issue:

how to find serial number of HPE 3PAR Storage

Resolution:

Access 3PAR storage with Putty

type the following command.

#showsys

the forth column in the output of above command shows Serial number.


how to find serial number of HPE MSA 2050 Storage

 Issue: 

how to find serial number of HPE MSA 2050 Storage

Solution:

Access the MSA storage with Putty. 

type the following command

#Show Configuration

beside other details of the storage, it will show the Serial number of enclosures as well.

Friday, 4 April 2025

Search an email in a mailbox and export to another mailbox through search-mailbox

Mathod 1: first export the contents to targent mailbox and check. Get-Mailbox -Identity "A.I@I.Co" | Search-Mailbox -SearchQuery {sent:01/04/2022..12/20/2022} -TargetMailbox mnk-da@i.co -TargetFolder "ai" if all ok, run the following command to delete. Get-Mailbox -Identity "A.I@I.Co" | Search-Mailbox -SearchQuery {sent:01/04/2022..12/20/2022} -TargetMailbox mnk-da@i.co -TargetFolder "ai" -DeleteContent Mathord 2: get-mailbox nawaz@i.co | search-mailbox -searchquery "subject: thisissubject" -targetmailbox mnk-da@i.co -targetfolder "nawazfolder" Example: working fine... the email were exported to the target mailbox and were appearing in the target folder [PS] C:\Windows\system32>get-mailbox mnawaz.k@I.co | search-mailbox -searchquery "subject: 'friday'" -targetmailbo x mnk-da@I.co -targetfolder "nawazfolder" WARNING: The Search-Mailbox cmdlet returns up to 10000 results per mailbox if a search query is specified. To return more than 10000 results, use the New-MailboxSearch cmdlet or the In-Place eDiscovery & Hold console in the Exchange Administration Center. RunspaceId : 791886ab-1814-4072-89a9-127dbb186537 Identity : c.Ig.com/Sites/_g/Users/kmn TargetMailbox : c.Ig.com/g/Users/O365 Users/kmn Success : True TargetFolder : \nawazfolder\kmn-12/15/2022 1:36:26 PM ResultItemsCount : 2 ResultItemsSize : 71.48 KB (73,200 bytes)

Wednesday, 5 February 2025

Keyboard stops working after logging to windows 10

 On windows 10 machine, I was able to enter pin code through keyboard but after logins,  keyboard stopped working. 


Resolution:

In action centre,  click  easy of access and click keyboard and turn off the   filter keys .


Sunday, 12 January 2025

Printer out of paper error

Was getting "printer out of paper" error on the machines from which i tried to print any page. even on the printer server, from which this printer was deployed on the client through GPO, was getting out of Perper status in console. But same other printers were deployed through this printer server were working fine, all were appearing as ready in the console but this one printer was having status as "out of paper"


Solution:

On the printer server, open services.msc and restart the print spooler service. 

Tuesday, 31 December 2024

HP blade server (Proliant bl460c Gen10) unable to boot

 HP blade server (Proliant bl460c Gen10) unable to boot. and showing the following error in ilo.


system error:

Server critical fault (service information: runtime fault processor(intel), Processor 2(01h))


Resolution:

The issue got resolved after resetting the memory modules. 

Thursday, 10 October 2024

BACKUP failed to complete the command BACKUP LOG DBname. Check the backup application log for detailed messages.

 Environment:

Taking SQL server 2016 Database backup through DPM Server 2016, The full backup and the consistency check was completing successfully but the differential backup was getting fail.

The backup was getting fail with the following error in DPM server.

Error:

Execution of SQL command failed for SQL Server 2016 database servername\databasename with the reason: . (ID 30173 Details: internal error code 0x80990D18)

Was getting the following error in the event viewer of the machine in which the SQL server was installed

Error:

BACKUP failed to complete the command BACKUP LOG ReportServer. Check the backup application log for detailed messages. 

Solution:

Change the Recovery model from Simple to Full, as mentioned below. 

On the SQL Server Database machine, open SQL server management studio, Extend Databases node--->right click on the effected database and select properties--->click on Options----> change the Recovery model to Full and click on OK

Saturday, 21 September 2024

How to collect logs of windows failover cluster

 

The following single line command will Creates a log file for all nodes, for last 2 hours, will use local time and save in the c:\temp folder with the names of all cluster nodes in a failover cluster.


Get-clusterlog -uselocaltime -timeSpan 2 -Destination "c:\temp"

Tuesday, 27 August 2024

The VHD containing the replica or one of it's snapshots could not be mounted or unmounted. (ID 40002)

Issue: 

The VHD containing the replica or one of its snapshots could not be mounted or unmounted. (ID 40002)


Environment:

the backup was configured in DPM 2016 of a VM in Windows 2016, Failover cluster, which was failing with above error. the only change due to which this issue started was the Hyper-V physical server was rebooted.

Solution:

Remove and Re-Add the VM in protection group, the issue was resolved. 


Wednesday, 21 August 2024

SCOM warning: Failed accessing windows event logs

 In SCOM 2019 was getting the following warning for few servers.

"Failed accessing windows event logs"

Resolution:

  1. Using Services Console:

    • Press Windows + R to open the Run dialog.
    • Type services.msc and press Enter.
    • In the Services window, find Microsoft Monitoring Agent.
    • Right-click on it and select Restart.

Tuesday, 2 July 2024

How to display video on Barco wall in VLC from NGS device

First note the IP of NGS device of which you want to display the video on Barco wall.

Type the IP and access in web browser as below.

https://192.168.12.12

select settings tab and then select Encoder settings and go down to "HDMI in" and there is steam 0 and stream 1, select the concern stream and right click on rtsp and select copy link.

Now open the VLC tool on the barco wall. From Media menu select Open network steam and past that copied URL. i.e it will be like "unsafe;rtsp://192.168.12.12/HDMIIn/v2dstream0" 

Delete the unsafe; from the above URL and hit enter.

Now the video should be displayed in the VLC in barco wall. 

Wednesday, 29 May 2024

How to install SCCM client manually on windows machine


To install SCCM agent on client windows machine, first download the source file to the windows machine on which you want to install the agent. place it in a folder, go to that path in command prompt and run the following command. 


ccmsetup.exe /mp:sccm.abc.com SMSSITECODE=101 SMSMP=sccm.abc.com FSP=sccm.abc.com DNSSUFFIX=abc.com

ccmsetup.exe /mp:NameOfManagementPoint SMSSITECODE=101 SMSMP=NameOfManagementPoint FSP=FallbackStatusPoint DNSSUFFIX=DomainName




Thursday, 18 April 2024

Disable the First things First popup in office 2013

To disable the following message in office 2013. You may do the following registry changes.


[Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Registration]
“AcceptAllEulas”=dword:00000001


 



To disable the following message in office 2013. You may do the following registry changes.



[Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\General]
“OptInDisable”=dword:00000001


Thursday, 19 October 2023

How to change Microsoft Exchange services startup type to automatic and start the services

 Issue:

There are some security patches of Microsoft exchange server which change the startup type of exchange services to disable from automatic, Due to which these services would not auto start after deploying the patches.  changing the startup type of these services may be time consuming and the better option would be to use the following command in exchange PowerShell. 



Get-Service | Where-Object { $_.DisplayName -like "Microsoft Exchange *" } | Set-Service -StartupType Automatic

Get-Service | Where-Object { $_.DisplayName -eq "IIS Admin Service" } | Set-Service -StartupType Automatic

Get-Service | Where-Object { $_.DisplayName -eq "Microsoft Filtering Management Service" } | Set-Service -StartupType Automatic

Get-Service | Where-Object { $_.DisplayName -eq "World Wide Web Publishing Service" } | Set-Service -StartupType Automatic

Get-Service | Where-Object { $_.DisplayName -like "Microsoft Exchange *" } | Start-Service

Get-Service | Where-Object { $_.DisplayName –eq “IIS Admin Service” } | Start-Service

Friday, 29 September 2023

Resolved: This computer is a member of a database availability group (DAG). It must be removed from the DAG before you can uninstall Exchange.

Issue detail:

Was trying to decommission Exchange 2019, but was getting the following error.


 "Error:

This computer is a member of a database availability group (DAG). It must be removed from the DAG before you can uninstall Exchange."


Resolution:

From role and feature, remove the failover cluster feature and reboot the system and then try again to start the uninstall from control panel/uninstall program.

the above error was no more.  

Friday, 3 March 2023

Resolved: An unknown error has occurred in outlook. mail could not be sent. the message has been moved to your drafts folder.

Issue: an unknown error has occurred in outlook. mail could not be sent. the message has been moved to your drafts folder. 

Issue detail:

User A has full access on user B mailbox. have migrate User B mailbox to Exchange 2019 recently, but User A was still on Exchange 2013. After that the issue was started (User A was unable to send email from User B mailbox, of which he has the rights)

Before migration of user B mailbox, there was no issue, User A was able to send the emails from User B.

Solution:

Did two things to resolve this issue:

  1. migration User A as well to exchange 2019
  2. Assign the permission again on User B to user A.

 




Sunday, 27 November 2022

[Solved]: A server-side database availability group administrative operation failed. Error The operation failed. CreateCluster errors may result from incorrectly configured static addresses.

Environment Detail:

 Deploying Exchange server 2019, 6 servers on PR site and 3 servers on DR site. After installation and DAG creation PR site 6 servers were added to the DAG successfully but on the DR site 3 servers getting the following error while adding these servers from ECP or even from the servers powershell, using the following command.

Add-DatabaseAvailabilityGroupServer -Identity DAG19 -MailboxServer servername

Error:

A server-side database availability group administrative operation failed. Error The operation failed. CreateCluster errors may result from incorrectly configured static addresses.

 Error: An error occurred while attempting a cluster operation. Error: Cluster API failed: "AddClusterNode() (MaxPercentage=12) failed with 0x35. Error: The network path was not found". [Server: servername.cp.IG.com]


Solution:

uninstall the failover cluster feature with the following command.

Remove-windowsfeature failover-clustering

Restart the server

Try to add the server, Run the following powershell command on the required server.

Add-DatabaseAvailabilityGroupServer -Identity DAG19 -MailboxServer servername

 and server was added without any issue.

Solution details:

Nearly same issue is discussed here with same solution.

https://learn.microsoft.com/en-US/troubleshoot/windows-server/high-availability/duplicate-address-error-validate-failover-cluster

I have created the effected VMs from same image and per above link it seems the failover cluster feature was installed, and which have assigned same MAC address to the three VMs. may find the following lines in Microsoft article. 

"

  • The referenced servers are built from the same image and automatically create the Cluster NetFT adapter on each node with an identical MAC address. Failover clustering flags this as an error because it requires unique physical addresses.

"

with removing and re installing the failover cluster feature that MAC addresses were changed. 

Monday, 15 August 2022

How to find the name of requester of a server component in exchange server 2013 and then make the server component active

 Some time you may need to put the exchange server in maintenance mode, in which one step is to put the servercomponents in inactive state and after the completion of the activity will have to remove the server from maintenance, in which one step is to use the following command in exchange powershell to make the servercomponents back in active state


Set-ServerComponentState <ServerName> -Component ServerWideOffline -State Active -Requester Maintenance


but some time the above command will not work and will still have some components in inactive state, even if try the above command again.

So in that case, you first have to identify requester and then use the command accordingly.

like in below command we are identifying the requester for AutoDiscoverProxy inactive state.


[PS] C:\Windows\system32>$Requester = Get-ServerComponentstate -Identity ex1301 -Component AutoDiscoverProxy

[PS] C:\Windows\system32>$Requester.LocalStates


Requester                                             State Timestamp                     Component

---------                                             ----- ---------                     ---------

HealthApi                                          Inactive 6/23/2022 9:49:25 AM          AutoDiscoverProxy

Maintenance                                          Active 6/23/2022 10:35:04 AM         AutoDiscoverProxy

functional                                           Active 6/23/2022 10:33:34 AM         AutoDiscoverProxy



We can see that the HealthApi is the Requester for this component. so now we will use the following command.


Set-ServerComponentState Ex1301 -Component AutoDiscoverProxy -State Active -Requester HealthApi


after that, we can check the status of all server components again with following command.


Get-ServerComponentState <ServerName> | ft Component,State –Autosize 


and the required components should be in active state.