Friday 18 October 2019

How to export user's managers in O365?


Or, PowerShell command to export mailbox's managers in CSV format in O365

You can use the following command to export the user name along with the assigned manager details in .csv format.
------------------------------------------------------------------------------------------------
Get-user | select displayname, *manager* | Export-Csv -Path c:\managers.csv
-----------------------------------------------------------------------------------------------

Note: Please make sure you are connected to the O365 PowerShell session.

Cheers, please write me back if you have any query or feedback.

Wednesday 8 May 2019

How to check email message header in Gmail or GSuite?


Or, How to download email message header in Gmail or GSuite?
Or, Message Header Download Procedure

Description: In this article, you would learn ‘how to download email message header in GSuite or Gmail?’. The email message header is used for analyzing and tracing the email source, legitimacy of the email etc…


Steps:
Login to Gmail > Click to open the Affected Email






Click on three dots to see all available options > Click on Show Original


Click on ‘Download Original 




The downloaded text file will contain all the information of email the source you are looking for.

Cheers, please write me back if you have any query or feedback.

Tuesday 23 April 2019

What is difference between compiler and interpreter?


Or, Difference between compiler and interpreter
Or, Understanding the differences between compiler and interpreter
Or, Definition of compiler and interpreter

Compiler: Compiler is a program that translates or converts the codes written in high-level programming language into low-level machine language. It takes the entire program a time and executes the program faster than interpreters.

It is used largely for C, C++, and Scala etc…

Interpreter: The interpreter is an alternative and does the same works as compilers.  It takes single line code or instruction at a time and execute the program little slower compared to compilers.

It is used largely in Python, Php, and Perl etc…


Cheers, Please write me back if you have any query or feedback on this.

Friday 1 February 2019

How to remove CR LF from codeblocks new project?

Or, Removing CR LF in codeblocks

Descriptions: As a beginner when you start using codeblocks for C or C++ languages, you may face this situation which may discomfort you. It was annoying to me as well… J

Don’t worry, it’s not an error or a problem, it’s just a setting of codeblocks which need to be set to get rid of this visual.















Steps: How to remove CR LF in codeblocks

Open codeblocks > Go to Settings > Click on Editor…













Uncheck the option ‘Show end-of-line chars’ under End-of-line options section as highlighted below









Cheers, please write me back if you have any query or feedback on this.

Friday 25 January 2019

How to transfer file or folder without FTP and VPN to Remote Servers?

Or, Using local resources feature of windows to transfer files/folder between two remote servers

Descriptions: Want to copy some files/folders to some remote servers but don’t have VPN connection, don’t have any FTP too....???? No worries...Your windows machine is self-capable for doing it...

Let’s see, how???

It’s possible from windows RDP (Remote Desktop Protocol).

Steps:

Go to Run > Type MSTSC > Press Enter > Enter your Server Name or IP > Click on "Show Option" as shown in below screenshot:
















Now click on "Local Resources" as shown in below screenshot:

























Now click on "More Option" as shown in the below screenshot...

























Now select any drive in which you have data which need to be transferred to the remote location, as shown in below screenshot:























Click on "OK" button > Click on "Connect"

Now you will be prompted for user name and password of the remote server, please enter user name and password of the remote server and hit ENTER...

You are done now, once you are connected with that remote server, you can see that your local drives are appearing in the remote server's "My Computer" drives list.

You can browse your attached local drive on that remote server as you browse local drive partitions.

It’s cool, isn't it...?

Cheers, please write me back if you have any query or feedback.

Tuesday 22 January 2019

How to export continuous ping result in to a .txt File?

Or, Export ping result output to a .txt file
Or, Recording long duration’s ping output to a .txt file

To Export ping result to a .txt file in C:\ drive of Windows, Please follow below-given steps:

Steps:-            
1. Go to Run
2. Type CMD
3. Hit Enter
4. On CMD prompt, type ping google.com >> C:\pingresult.txt -t

Now you can check your C:\ drive, the pingresult.txt file can be found there containing continuous ping result of google.com.


Cheers, please write me back if you have any query or feedback on this.

Thursday 10 January 2019

Setup is missing an installation prerequisite: Microsoft System CLR Types for SQL Server 2012

Or, The Microsoft Report Viewer 2012 Redistributable is required for this feature. Please close the console before installing this package
Or, WSUS Server report viewer prerequisites on Windows Server 2016
Or, Download Report Viewer for WSUS Server 2016
Or, Download Microsoft System CLR Types for SQL Server 2012

Descriptions: This is a very common problem you may face after installing a fresh WSUS server when you try to view any detailed report of reported patches or detected client machines. As the error message you have been encountered with is self-explanatory, you have to download and install two major prerequisites in order to be able to view the desired reports.

You can download these prerequisites from the Microsoft’s site given for reference below:

Downloaded setup files (this is how it should look like):











Error Message Reference-1: When you try to view any report, it would ask you to install report viewer













Error Message Reference-2: When you try to install report viewer without having ‘Microsoft System CLR Types for SQL Server 2012’ already installed, it would ask you to install this component first














Steps: Install these two prerequisites in the sequence given below
1. Close the WSUS Server console if it’s open
2. Install SQLSysClrTypes.msi that you have downloaded already as explained in the description section
3. Install ReportViewer.msi that you have downloaded already as explained in the description section
4. Re-Open WSUS console

Cheers, please write me back if you have any query or feedback on this.

Wednesday 9 January 2019

How to change VMware vSphere Update Manager’s IP Address?

Or, Re-register update manager server with vCenter Server
Or, Re-register update manager with the vCenter server after changing the IP address of update manager
Or, How to use update manager utility to re-register update manager with the vCenter server?

Descriptions:  You might need to re-register the Update Manager with vCenter Server in certain situations, for example when the IP address of vCenter Server or Update Manager changes. You do not need to worry, because it may not take more than 5 minutes if you do it correctly with the correct approach.

Prerequisites:
1. Stop the Update Manager service
2. vSphere vCenter Server administrator credentials

Error message reference:
The similar error may be reported when Update Manager has not been reconfigured after changing the vCenter Server IP address or Update manager has not been re-registered in the vCenter server after changing the IP address of Update Manager

There was an error connecting to VMware vSphere Update Manager - [x.x.x.x:443]. The request failed because of a connection failure. (Unable to connect to the remote server)

Or,

There was an error connecting to VMware vSphere vCenter Server - [x.x.x.x:443]. The request failed because of a connection failure. (Unable to connect to the remote server)


Steps: Re-register update manager with the vCenter server

1. Login to Update Manager Server
2. Go to the update manager’s installation directory path C:\Program Files(x86)\VMware\Infrastructure\Update Manager
3. Right Click on VMwareUpdateManagerUtility.exe and Choose Run as Administrator
4. Provide all the details as requested e.g. IP Address, User Name, and Password of vCenter Server
5. Click on Login














6. In the Options pane of the Update Manager Utility, click on Re-register to vCenter Server.
7. In the Configurations pane, provide the connection and authentication details as requested e.g. IP Address, User Name, and Password of vCenter Server
8. Click Apply





















9. Finally, the confirmation pop-up will appear, and you would be requested to restart the Update Manager Service
10. Click OK, and Close the Utility Windows




















Restart the Update Manager services, and the Update Manager server would be re-registered now.

Cheers, Please write me back if you have any query or feedback.

PowerShell command for permanently deleting the AD objects

Or, Removing deleted AD objects from AD database
Or, Deleting AD objects from AD database permanently which are already marked as ‘isDeleted’

Descriptions: This approach is useful when you really want to permanently delete the AD object and you no more need these entries to available in ‘DeletedObject’ container of AD.

The most important point to note here is, you would not be able to recover any AD object from Active Directory Recycle Bin once you permanently delete the objects using this PowerShell command.

Steps:
Open Windows PowerShell (run as administrator) > run the below command
-----------------------------------------------------------------------------------------------------------------------
Get-ADObject -Filter 'isDeleted -eq $true -and Name -like "*DEL:*"' -IncludeDeletedObjects | Remove-ADObject -Confirm:$false
-----------------------------------------------------------------------------------------------------------------------

Reference screenshot:





Cheers, please write me back if you have any query or feedback.

How to check OS installation Date of Windows OS?

Or, Finding windows OS installation date using command line interface

Steps: To check Windows Operating System Installation Date, follow the steps given below:

Go to Run > Type CMD > Press Enter > Type systeminfo on the command prompt as shown in the reference screenshot below:











Original Installation Date (highlighted in the red mark): is the date when actually the windows OS was installed on the particular PC.

Cheers, Please write me back if you have any query or feedback on this.

Tuesday 8 January 2019

Understanding the types of CISCO UCS backup and their relevance

Or, CISCO UCS Backup - Explained
Or, Difference between Full State, All configuration, System Configuration, and Logical Configuration Backups in CISCO UCS

Backup and Export Configuration
When you perform a backup through Cisco UCS Manager, you take a snapshot of all or part of the system configuration and export the file to a location on your network. You cannot use Cisco UCS Manager to backup data on the servers.

You can perform a backup while the system is up and running. The backup operation only saves information from the management plane. It does not have any impact on the server or network traffic.











Backup Types
You can perform one or more of the following types of backups through Cisco UCS Manager:

Full state—A binary file that includes a snapshot of the entire system. You can use the file generated from this backup to restore the system during disaster recovery. This file can restore or rebuild the configuration on the original fabric interconnect, or recreate the configuration on a different fabric interconnect. You cannot use this file for an import.

All configuration—An XML file that includes all system and logical configuration settings. You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect. You cannot use this file for a system restore. This file does not include passwords for locally authenticated users.

System configuration—An XML file that includes all system configuration settings such as usernames, roles, and locales. You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect. You cannot use this file for a system restore.

Logical configuration—An XML file that includes all logical configuration settings such as service profiles, VLANs, VSANs, pools, and policies. You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect. You cannot use this file for a system restore.

Reference: CISCO UCS Backup Admin Guide (b_UCSM_GUI_Configuration_Guide_2_0_chapter_0100111.pdf).

Cheers, please write me back if you have any query or feedback on this.

Friday 4 January 2019

What is VAPT (Vulnerability Assessment, and Penetration Testing)?

Or, What is a Vulnerability Assessment?
Or, What is Penetration Testing?
Or, What is the difference between vulnerability assessment and penetration testing?

Vulnerability Assessment is a method to rapidly review the network devices, servers, and systems to identify key vulnerabilities and configuration issues that an attacker may be able to take advantage of. It’s generally conducted within the network on internal devices with help of some specialized software tools.


Penetration Testing is an in-depth expert-driven activity focused on identifying various possible routes an attacker could use to potential harm the network or applications. In addition to the vulnerabilities, it also helps in identifying the potential damage and further internal compromise an attacker could carry out.

Additional Note: Once you have the vulnerability assessment or penetration testing report, you start with analyzing the impact area and applicable vulnerabilities to your infra. After this stage is completed, you start fixing the vulnerabilities reported on respective devices.

Technically, its good to fix all reported vulnerabilities, but still you have the choice to decide whether you want to fix it or not. That's all depends upon your business need and the impact that you may see after applying the fixes.

Cheers, if you have any feedback or query, please write me back.

Wednesday 2 January 2019

What is "Archive Attributes" in windows backup?

Or, How ‘Archive Attributes’ helps in windows level folders/files backup

Archive Attributes: This is a technology which helps backups to be performed in the way we required. Archive attributes set an identity on file/folder or data as which file/folder or data have been backed up in last recent backup performed and which has not been backed up yet...

Archive Attributes Status (Before Backup): All files and folder will be having "Check Mark Enabled" on "Folder is ready for archiving" option.

If the check mark is there, means this folder/file has not been backed up yet.  You can refer the below screenshot for reference or you can verify it on your computer's data by going to that folder's Properties > General Tab > Advance Option

















Archive Attributes Status (After Backup): All files and folders will be having "Check Mark Cleared" on "Folder is ready for archiving option".

















Cheers, please write me back if you have any query or feedback on this.

Export all groups with members list - GSuite

Or, How to export all GSuite groups with members list using GAM tool?
Or, Using GAM tool to export GSuite groups list with members
Or, Export GSuite groups with all members including all other details
Or, Export members, managers, created date, owners, name etc… of all groups in GSuite using GAM tool

Descriptions: GSuite is not having any feasibility on web GUI to export groups list in to a CSV file along with members, however, you can export groups one by one with members list from group’s properties advanced settings. This becomes really tedious when you have a large list of groups though.

To achieve this, you may think of trying GAM tool available at GitHub.

If you already have GAM tool installed on your machines, you may try the command given below to export all groups in a CSV file with the name and email addresses.

Steps: Exporting groups with members list into a CSV file

Open CMD and Locate to the directory where GAM tool is installed










Type the command given below and hit enter
-----------------------------------------------------------------------------------------------------------------------
gam print groups name description admincreated id aliases members owners managers settings > D:\temp\groups.csv
-----------------------------------------------------------------------------------------------------------------------





You can change the destination directory to your own convenient path. In my case its D:\temp

Cheers, write me back if you have any query or feedback on this.

Wednesday 26 December 2018

What is EVC in VMware, and how to enable it?

Or, What is EVC in VMware?
Or, How to enabled EVC in VMware?

What is EVC in VMware?
EVC stands for Enhanced vMotion Compatibility. It is used for enabling hardware compatibility between different hardware types of ESXi hosts so that we can easily migrate Virtual machines from one to another host even if the hardware of ESXi hosts are different.

If EVC is not enabled, you can't migrate a Virtual machine to an ESXi host which is having different hardware version with compare to another ESXi host.

Simply we can say that EVC ensures that all hosts in a cluster are VMotion compatible, even if they are not from the same hardware category.

How to enable EVC (Enhanced vMotion Compatibility) in VMware ESXi Cluster?
Few easy steps and you are done with EVC configuration for your ESXi cluster.

IMP Note: Before enabling EVC mode, you must shutdown your all VMs of that particular ESXi host on which you are going to enable EVC mode and migrate VMs to another ESXi host/cluster if possible.

Steps:
- Log in to vCenter Server by using VMware vSphere Client
- Right Click on your Virtual Datacentre Cluster
- Go to Edit Settings
- Select VMware EVC in the left Panel
- Click on Change button to edit the EVC settings
- Select appropriate EVC settings for your Virtual Environment from the drop-down list...
- If validation succeeded with your desired CPU selection for EVC, you should be happy...
- Click OK twice to EVC mode dialog box and cluster setting dialog box...
- Power on your ESXi host.
- Migrate VMs from another host to this host to check if things are done correctly

You are done now... cheers…

Please write me back if you have any query or feedback.

Monday 24 December 2018

What is difference between Upstream and Downstream WSUS Server?

Or, What is Upstream Server in WSUS?
Or, What is Downstream Server in WSUS?
Or, What are the roles of Downstream or Upstream WSUS Servers?

Upstream WSUS Server: - This is the server which is also known as primary WSUS server, and it synchronizes the patches directly from Microsoft (internet).

Downstream WSUS Server: - This is the server which is also known as Secondary WSUS server, and it downloads the patches and settings from the upstream WSUS server. We can define rules and policies on primary or upstream WSUS server to get it inherited on secondary or downstream server. No changes are allowed on the downstream server as it is controlled from Upstream WSUS server centrally.

Cheers, Please write me back if you have any query or feedback on this.

How to perform move request for an O365 mailbox?

Or, Performing move request for O365 based mailbox
Or, Moving mailbox to another datastore or database in online exchange O365
Or, How to change datastore or database of O365 mailbox?

Description: There are real situations where you face unexpected issues with some of the mailboxes, and observe unusual behavior while sending or receiving emails, using features of our email client, functionalities challenges, slowness etc… If you have already tried many the troubleshooting steps, and nothing has helped, its time for you to try the MoveRequest now to see if that helps.

This method will move your affected user’s mailbox from exiting to new datastore or database, and that helps in fixing such unusual problems if the problem is from the online exchange server side of Microsoft O365.

In my case, it has been one of the best approaches to handle such an issue.

Step-1: Logn to MS O365 Azure Powershell
Launch Microsoft Azure Active Directory – Windows PowerShell > run the following commands in sequence to login to your O365 tenant > Feed in your O365 admin credentials wherever prompted
-----------------------------------------------------------------------------------------------------------------------
1)      $LiveCred=Get-Credential
2)      $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirectio
3)      Import-PSSession $Session
-----------------------------------------------------------------------------------------------------------------------

Reference Screenshot:









Step-2: Run MoveRequest
Run the command given below for the selected user to initiate move request
-----------------------------------------------------------------------------------------------------------------------
New-MoveRequest admin@techiessphere.com
-----------------------------------------------------------------------------------------------------------------------
You can replace admin@techiesspehere in the above command, with the affected user’s email address of yours

Reference Screenshot:





Optional: Check the progress of MoveRequest
Run the following command to check the percentage completion of the MoveRequest
-----------------------------------------------------------------------------------------------------------------------
Get-MoveRequestStatistics -Identity admin@techiessphere.com
-----------------------------------------------------------------------------------------------------------------------
You can replace admin@techiesspehere in the above command, with the affected user’s email address of yours

Reference Screenshot:






Cheers, please write me back if you have any query or feedback.

Friday 21 December 2018

Diagnostic information for administrators: #550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found

Or, Diagnostic information for administrators: #550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found ##

NDR Error: Delivery has failed to these recipients or distribution lists
The recipient's e-mail address was not found in the recipient's e-mail system. Microsoft Exchange will not try to redeliver this message for you. Please check the e-mail address and try resending this message, or provide the following diagnostic text to your system administrator.

Possible Reason 1: - The user does not exist

Resolution: - Please check if the user email ID your typing is correct or not. Generally, this happens, if the user mailbox has been deleted or you are typing a wrong email ID

Possible Reason 2: - The user which have been deleted from your AD/Exchange, may still exist/added in some Transport Rules.

Resolution: - Please check all your Transport rules and delete the user email address from any transport rules that you have created under EMC > Organization Configuration > Hub Transport> Transport Rule


Cheers, please write me back if you have any query or feedback on this.

How to bypass clutter for all users in O365?

Or, Disabling clutter for all users in O365
Or, Creating ‘Bypass Clutter’ transport rule in MS O365

Descriptions: If you are looking for disabling clutter function for all currently active mailboxes in your O365 domain just for one time, you can disable clutter by following the KB http://www.techiessphere.com/2016/06/command-to-disable-clutter-for-single.html
But, If you want this clutter function to be bypassed for all current as well as upcoming users, you should create a transport rule for this.

Solution/Steps: Creating ‘Bypass Clutter’ transport rule in MS O365
Login to O365 Admin Portal > Go to Mail Flow > Create a New Trasport Rule as per the reference details are given in below screenshot

IMP Notes:
1. Set the message header 'X-MS-Exchange-Organization-BypassClutter' to the value 'true'
2. You may or may not need an exception in this rule, so you can skip that option if not required


















Cheers, Please write me back if you have any query or feedback...

Tuesday 18 December 2018

Deleting a single email from all mailboxes in GSuite using GAM tool

Or, How to delete a single email using GAM tool in GSuite?
Or, Delete a single email from all mailboxes in GSuite
Or, Email sent by mistake to all users, want to delete the specific email from everyone’s mailboxes

Descriptions: This is a very common scenario where someone in your organization sent an email by mistake to a ‘Distribution List’ which may contain 100-1000 or even more users. Now the role of administrator starts here.
The requirement here is to delete this particular email from every user’s mailbox without letting them know about this or without their intervention.
Take it easy, you can use below GAM command to get it done.

Prerequisite: You should have the Message ID of the email that you want to delete

Steps:
Open GAM CMD with administrative privilege, and Run below command to delete the specific email
gam all users delete messages query rfc822msgid:<Message_ID> doit

Example:-
gam all users delete messages query rfc822msgid:CAhshdghs79jo_J6XZimV_tywxjhshgQh2cZV-mQ@mail.gmail.com doit

Result:
-----------------------------------------------------------------------------------------------------------------------
Got 1 messages for user tsadmin@techiessphere.com
delete 1 messages
Got 0 messages for user tsuser@techiessphere.com
would try to delete 0 messages for user tsuser@techiessphere.com (max 1)
----------------------------------------------------------------------------------------------------------------------
Here in the above result section, you can see that the email was deleted from one affected user where it was found matched, and the command skipped the second user where there was no matched content/email found.


Cheers, please write me back if you have any query or feedback on this.