30.9 C
Dubai
Saturday, May 17, 2025
Home Blog Page 59

Discovery Search Simplified Script to Delete a Specific Email and other Tasks – Exchange 2010 & 2013

Updated – Script Supports Exchange 2013 and Exchange 2016 and Office 365

Download the Script

You can Use this Script to for the Below Tasks.

I would Strongly Recommended you to understand this script & Run it on your lab – Confirm it suits your Need

As it has the Ability to Delete Content in some tasks, Please be safe using it

Before running on the Production Server, Please Test it

Open Exchange Management Shell , Browse to the Location of the Script


PS C:\> .\DiscoverySearchSimplified.ps1

Discovery Search Simplified
----------------------------

1.Check for Discovery Search Permissions

2.Check for Mailbox Import Export Permissions

3. Add a User to Discovery Search Permission

4. Add a User to Mailbox Import Export Permission
Make Sure Discovery Search & Mailbox Import Export Permissions are Added to the Current Logged on User
To use Options greater than 4
5. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email

6. Remove a Email with a Specific Subject from One Mailbox

7. Remove a Email with a Specific Subject from all the Mailboxes in the Organization

8. Mailbox Cleanup - Emptying a Specific Mailbox (Exch2010 only)

9. Mailbox Dumpster Cleanup - Emptying a Specific Mailbox Dumpster(Exch2010 only)

10. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requir
es From Address

11. Remove a Email with a Specific Subject from One Mailbox and Requires From Address

12. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires From Address

13. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requir
es To Address

14. Remove a Email with a Specific Subject from One Mailbox and Requires To Address

15. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires To Address

16. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requir
es From&To Address

17. Remove a Email with a Specific Subject from One Mailbox and Requires From&To Address

18. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires From&To Address

Choose The Task: 6
Enter Alias of the User to Search for a Subject and Delete it: galsync1
Enter the Subject: Spam Email !!

Confirm
Deleting content from mailboxes galsync1
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y

Identity         : careexchange.in/Users/Galsync1
TargetMailbox    :
TargetPSTFile    :
Success          : True
TargetFolder     :
ResultItemsCount : 3
ResultItemsSize  : 29.82 KB (30,535 bytes)    

In the Above Example – I removed a Spam Email with a Subject “Spam Email !!”

Without disturbing the User

sample

Example –

With From to Options –  withFromTo

Hope it will help Exchange Admins to simplify their work.

Download the Script


#Requires -version 2
<#
.SYNOPSIS
DiscoverySearchSimplified.ps1 - It Can Check for Required Permissions to do a Discovery Search

1.Check for Discovery Search Permissions

It will ask for the User Alias, Checks the User is a member of "Discovery Management" Role Group

2.Check for Mailbox Import Export Permissions

It will ask for the User Alias , Checks the User is a member of "Mailbox Import Export" Management Role

3. Add a User to Discovery Search Permission

It will ask for the User Alias, Adds the user a member of "Discovery Management" Role Group

4. Add a User to Mailbox Import Export Permission"

It will ask for the User Alias, Adds the user a member of "Mailbox Import Export" Management Role

5. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email

It will ask for the User Alias , Asks for the Subject , Asks for the Mailbox name where it can send a report

6. Remove a Email with a Specific Subject from One Mailbox

It will ask for the User Alias , Asks for the Subject , Removes it

7. Remove a Email with a Specific Subject from all the Mailboxes in the Organization

It will ask for the User Alias , Asks for the Subject , Removes it from the Entire Organization asking for Confirmation

It won't run for all the Mailboxes Unless you choose - [A] Yes to All

8. Mailbox Cleanup - Emptying a Specific Mailbox

It will ask for the User Alias , Empties the Entire Mailbox

9. Mailbox Dumpster Cleanup - Emptying a Specific Mailbox Dumpster

It will ask for the User Alias , Empties the Dumpster Alone

.DESCRIPTION

Simplifies the Usage for Discovery Search Feature

.OUTPUTS
Results are output to the PowerShell window.

.EXAMPLE

[PS] C:\Scripts>.\DiscoverySearchSimplified.ps1
Discovery Search Simplified
----------------------------

1.Check for Discovery Search Permissions

2.Check for Mailbox Import Export Permissions

3. Add a User to Discovery Search Permission

4. Add a User to Mailbox Import Export Permission
Make Sure Discovery Search & Mailbox Import Export Permissions are Added to the Current Logged on User
To use Options greater than 4
5. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email

6. Remove a Email with a Specific Subject from One Mailbox

7. Remove a Email with a Specific Subject from all the Mailboxes in the Organization

8. Mailbox Cleanup - Emptying a Specific Mailbox (Exch2010 only)

9. Mailbox Dumpster Cleanup - Emptying a Specific Mailbox Dumpster(Exch2010 only)

10. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requir
es From Address

11. Remove a Email with a Specific Subject from One Mailbox and Requires From Address

12. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires From Address

13. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requir
es To Address

14. Remove a Email with a Specific Subject from One Mailbox and Requires To Address

15. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires To Address

16. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requir
es From&To Address

17. Remove a Email with a Specific Subject from One Mailbox and Requires From&To Address

18. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires From&To Address -Fore
Ground Cyan
Note :

- Adding Permissions Doesn't Reflect on the Powershell Instantly, You got to Close and Reopen Powershell to Refresh the
Permissions
Choose The Task: 6
Enter Alias of the User to Search for a Subject and Delete it: galsync1
Enter the Subject: trrddd

Confirm
Deleting content from mailboxes galsync1
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
Identity : careexchange.in/Users/Galsync1
TargetMailbox :
TargetPSTFile :
Success : True
TargetFolder :
ResultItemsCount : 3
ResultItemsSize : 29.82 KB (30,535 bytes)

.NOTES
Written By: Satheshwaran Manoharan
Website : Www.careexchange.in

Change Log
V1.0, 20/09/2012 - Initial version

Change Log
V1.1, 15/08/2016 - Add Support to Exchange 2016 with From-To Options to Search and delete
#>

#Add Exchange 2010 snapin if not already loaded
if (!(Get-PSSnapin | where {$_.Name -eq "Microsoft.Exchange.Management.PowerShell.E2010"}))
{
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction SilentlyContinue
}

Write-host "

Discovery Search Simplified
----------------------------

1.Check for Discovery Search Permissions

2.Check for Mailbox Import Export Permissions

3. Add a User to Discovery Search Permission

4. Add a User to Mailbox Import Export Permission" -ForeGround "Cyan"
Write-host "

Make Sure Discovery Search & Mailbox Import Export Permissions are Added to the Current Logged on User
To use Options greater than 4" -ForeGround "Green"

Write-host "

5. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email

6. Remove a Email with a Specific Subject from One Mailbox

7. Remove a Email with a Specific Subject from all the Mailboxes in the Organization

8. Mailbox Cleanup - Emptying a Specific Mailbox (Exch2010 only)

9. Mailbox Dumpster Cleanup - Emptying a Specific Mailbox Dumpster(Exch2010 only)

10. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requires From Address

11. Remove a Email with a Specific Subject from One Mailbox and Requires From Address

12. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires From Address

13. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requires To Address

14. Remove a Email with a Specific Subject from One Mailbox and Requires To Address

15. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires To Address

16. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requires From&To Address

17. Remove a Email with a Specific Subject from One Mailbox and Requires From&To Address

18. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires From&To Address -ForeGround "Cyan""

Write-host "

Note :

- Adding Permissions Doesn't Reflect on the Powershell Instantly, You got to Close and Reopen Powershell to Refresh the Permissions

" -ForeGround "Green"
$number = Read-Host "Choose The Task"

switch ($number)
{
#1.Check for Discovery Search Permissions
1 {

$GetAlias = Read-Host "Enter Alias of the User to Check for Discovery Search Permissions"

$Discovery = ((Get-RoleGroupMember "Discovery Management") | where-Object{$_.Name -eq "$GetAlias"}).Name -eq "$GetAlias"

if ($Discovery -eq 'True')

{

"$GetAlias is a Member of Discovery Management"

}

Else

{

Write-Host "$GetAlias is not a Member of Discovery Management" -foreground "RED"

};

break}
#2.Check for Mailbox Import Export Permissions
2 {

$GetAlias = Read-Host "Enter Alias of the User to Check for Mailbox Import Export Permissions"

$MailboxImportExport = (((Get-ManagementRoleAssignment -Role "Mailbox Import Export" -GetEffectiveUsers) | Where-Object{$_.EffectiveUserName -eq "$GetAlias"}).Count -ge "1")

if ($MailboxImportExport -eq "true")
{

"$GetAlias is a Member of Mailbox Import Export Permission"

}

else
{

Write-Host "$GetAlias is not a Member of Mailbox Import Export Permission" -foreground "RED"

};

break}
#3. Add a User to Discovery Search Permission
3 {

$GetAlias = Read-Host "Enter Alias of the User to add Discovery Management Permissions"

Add-RoleGroupMember "Discovery Management" -Member "$GetAlias"

; break}
#4. Add a User to Mailbox Import Export Permission"
4 {

$GetAlias = Read-Host "Enter Alias of the User to add Mailbox Import Export Permissions"

New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "$GetAlias"

; break}
#5. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email
5 {

$GetAlias = Read-Host "Enter Alias of the User to Search for a Subject"

$GetSubject = Read-Host "Enter the Subject"

$GetMailboxtoSendLog = Read-Host "Enter the Mailbox Alias to send the Generated Log"

search-mailbox -identity $GetAlias -searchquery "Subject:'$GetSubject'" -Logonly -Targetmailbox "$GetMailboxtoSendLog" -Targetfolder "Inbox"

; break}
#6. Remove a Email with a Specific Subject from One Mailbox

6 {

$GetAlias = Read-Host "Enter Alias of the User to Search for a Subject and Delete it"

$GetSubject = Read-Host "Enter the Subject"

search-mailbox -identity $GetAlias -searchquery "Subject:'$GetSubject'" -DeleteContent

; break}
#7. Remove a Email with a Specific Subject from all the Mailboxes in the Organization
7 {

$GetSubject = Read-Host "Enter the Subject of the Email to Delete from the Entire Organization"

get-Mailbox | search-mailbox -searchquery "Subject:'$GetSubject'" -DeleteContent

; break}
#8. Removed - Mailbox Cleanup - Emptying a Specific Mailbox
8 {

$GetAlias = Read-Host "Enter the Mailbox Name to Cleanup - Empyting a Mailbox"

search-mailbox -identity $GetAlias -searchquery "Subject:'*'" -DeleteContent

; break}
#9. Removed - Mailbox Dumpster Cleanup - Emptying a Specific Mailbox Dumpster
9 {

$GetAlias = Read-Host "Enter the Mailbox Name to Cleanup the dumpster Alone"

search-mailbox -identity $GetAlias -searchquery "Subject:'*'" -SearchDumpsterOnly -DeleteContent

; break}

#10. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requires From Address
10 {

$GetAlias = Read-Host "Enter Alias of the User to Search for a Subject"
$FromAddress = Read-Host "Enter from address of the Email Format user@domain.com"
$GetSubject = Read-Host "Enter the Subject"

$GetMailboxtoSendLog = Read-Host "Enter the Mailbox Alias to send the Generated Log"

search-mailbox -identity $GetAlias -searchquery "Subject:'$GetSubject' -AND from:$FromAddress" -Logonly -Targetmailbox "$GetMailboxtoSendLog" -Targetfolder "Inbox"

; break}
#11. Remove a Email with a Specific Subject from One Mailbox and Requires From Address
11 {

$GetAlias = Read-Host "Enter Alias of the User to Search for a Subject and Delete it"
$FromAddress = Read-Host "Enter from address of the Email Format user@domain.com"
$GetSubject = Read-Host "Enter the Subject"

search-mailbox -identity $GetAlias -searchquery "Subject:'$GetSubject' -AND from:$FromAddress" -DeleteContent

; break}
#12. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires From Address
12 {

$GetSubject = Read-Host "Enter the Subject of the Email to Delete from the Entire Organization"
$FromAddress = Read-Host "Enter from address of the Email Format user@domain.com"
get-Mailbox | search-mailbox -searchquery "Subject:'$GetSubject' -AND from:$FromAddress" -DeleteContent

; break}
#13. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requires To Address
13 {

$GetAlias = Read-Host "Enter Alias of the User to Search for a Subject"
$ToAddress = Read-Host "Enter To address of the Email Format user@domain.com"
$GetSubject = Read-Host "Enter the Subject"

$GetMailboxtoSendLog = Read-Host "Enter the Mailbox Alias to send the Generated Log"

search-mailbox -identity $GetAlias -searchquery "Subject:'$GetSubject' -AND to:$ToAddress" -Logonly -Targetmailbox "$GetMailboxtoSendLog" -Targetfolder "Inbox"

; break}
#14. Remove a Email with a Specific Subject from One Mailbox and Requires To Address
14 {

$GetAlias = Read-Host "Enter Alias of the User to Search for a Subject and Delete it"
$ToAddress = Read-Host "Enter To address of the Email Format user@domain.com"
$GetSubject = Read-Host "Enter the Subject"

search-mailbox -identity $GetAlias -searchquery "Subject:'$GetSubject' -AND to:$ToAddress" -DeleteContent

; break}
#15. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires To Address
15 {

$GetSubject = Read-Host "Enter the Subject of the Email to Delete from the Entire Organization"
$ToAddress = Read-Host "Enter To address of the Email Format user@domain.com"
get-Mailbox | search-mailbox -searchquery "Subject:'$GetSubject' -AND to:$ToAddress" -DeleteContent

; break}
#16. Generate a Log - To identitfy the Number of Emails Exist in a mailbox Specifying the Subject of the Email and Requires From & To Address
16 {

$GetAlias = Read-Host "Enter Alias of the User to Search for a Subject"
$FromAddress = Read-Host "Enter from address of the Email Format user@domain.com"
$ToAddress = Read-Host "Enter To address of the Email Format user@domain.com"
$GetSubject = Read-Host "Enter the Subject"

$GetMailboxtoSendLog = Read-Host "Enter the Mailbox Alias to send the Generated Log"

search-mailbox -identity $GetAlias -searchquery "Subject:'$GetSubject' -AND from:$FromAddress -AND to:$ToAddress" -Logonly -Targetmailbox "$GetMailboxtoSendLog" -Targetfolder "Inbox"

; break}
#17. Remove a Email with a Specific Subject from One Mailbox and Requires From & To Address
17 {

$GetAlias = Read-Host "Enter Alias of the User to Search for a Subject and Delete it"
$FromAddress = Read-Host "Enter from address of the Email Format user@domain.com"
$ToAddress = Read-Host "Enter To address of the Email Format user@domain.com"
$GetSubject = Read-Host "Enter the Subject"

search-mailbox -identity $GetAlias -searchquery "Subject:'$GetSubject' -AND from:$FromAddress -AND to:$ToAddress" -DeleteContent

; break}
#18. Remove a Email with a Specific Subject from all the Mailboxes in the Organization and Requires From & To Address
18 {

$GetSubject = Read-Host "Enter the Subject of the Email to Delete from the Entire Organization"
$FromAddress = Read-Host "Enter from address of the Email Format user@domain.com"
$ToAddress = Read-Host "Enter To address of the Email Format user@domain.com"
get-Mailbox | search-mailbox -searchquery "Subject:'$GetSubject' -AND from:$FromAddress -AND to:$ToAddress" -DeleteContent

; break}
Default {Write-Host "No matches found , Enter Options 1 to 18" -ForeGround "red"}
}

Download the Script

Standard and Premium Journaling vs Native and 3rd Party Archiving

  • Standard Journaling is on Database Level requires a Exchange Standard client access license (CAL)  – All messages Collects to Journal Mailbox
  • Premium Journaling is on User/Group Level requires a Exchange Enterprise client access license (CAL) – More Granular messages Collects to Journal Mailbox

End User Cannot Retrieving the Email by himself from a journaling Mailbox,But in Archiving End user can retrieve the email himself from the Archiving Mailbox. So Journaling can never replace archiving. They are used in different requirements. Plan and Size your Journal Mailboxes properly otherwise it can go unmanaged very easily as it collects more emails applying on a database level. Its good to put it on a dedicated database based on the requirements. Most of the situations Decision has be made seeing how deleted emails can be handled and serves the compliance which we are looking for.

  • If I delete a Email before archiving. Its removed from the server permanently after the retention period applied on Exchange Databases/users
  • But in Journaling its not the case. Every Email is Moved to a Safe Place. Before End user can play around with it.

To Safe Guard the deleted emails without Journaling , Placing the mailbox on Litigation hold is the feature is to retrieve these emails using e-discovery feature. But placing all mailboxes on litigation hold is not recommended . Its just for a temporary measure on few or more mailboxes while on a legal dispute for example.

Just FYI – Some 3rd Party Archiving Software’s Collects Emails for Archiving from Journal Mailboxes using Exchange Web Services.

Standard Journaling –

Database Properties – Maintenance

image

Premium Journaling –  Requires Enterprise CAL

Compliance Management – Journal rules

image

Native Archiving –  Requires Enterprise CAL

  • End User can move messages to Archiving or Using Retention Policies.
  • End User Can always Delete Emails unless they are not in litigation hold.
  • Helps Removing PST from the Environment.

image

image

3rd Party Archiving like Symantec Vault which stubs the emails from the exchange databases and places pointers in the database.

  • Saves a lot of space on the Databases.
  • Outlook Add-in Requires to Retrieve old emails
  • Helps Removing PST from the Environment.
  • Active sync devices requires to open the archived item via a phone browser. (After clicking the hyper link on the Archived item)

image

Configuring Sent Items Behavior in Exchange 2016

  • Saving Sent Items can be on Shared Mailboxes Only (Converting Mailbox to Shared to Set-Mailbox MailboxName –Type Shared)
Get-Mailbox test2016-4 | Set-Mailbox -MessageCopyForSendOnBehalfEnabled:$true -MessageCopyForSentAsEnabled:$true

image

User1 do SendAs on Test2016-4 Mailbox

Now in Test2016-4  Sent Items you can see Items being saved. Which is not by default.

Enabling From in Outlook Web Access After Applying SendAs Permission in Shared mailbox delegation properties.

image

From –

image

Send As is Saved to SharedMailbox

image

Message Approvals with Moderator in Exchange Servers

Like Distribution Groups , Primary Mailboxes ,Shared mailboxes which has Access to sending to All users for Example may require a additional layer of Approval.

  • Sensitive Announcements.
  • Payment Releases.

Transport Rules can help achieving it.

For Example like below any email from Test2016-1 requires moderators approval from Test2016-2.

image

Moderator can Approve or Reject with Response

 

image

On Reject – Approver can edit the reject response.

image

With Moderator Comments –

image

 

Does it work on Normal Mailboxes – Yes

Does it work on Shared Mailboxes – Yes

Does it work on Send As  – Yes

Exchange Management Shell FailureCategory =AuthZ-SetupVersionInformationCorruptException

Exchange Management Shell Fails with below Error –

image

Comparing Registry with – Nonworking/Working machines

image

Solution –

Exported Missing Registries – Imported to non-working server.

‘HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine’

Once PowershellEngine  registries were back . Exchange Management shell worked.

image

image

 

Error Reference  –


VERBOSE: Connecting to EXCH2013.Cloudid.biz.
New-PSSession : [exch2013.cloudid.biz] Processing data from remote server exch2013.cloudid.biz failed with the
following error message: [ClientAccessServer=EXCH2013,BackEndServer=exch2013.cloudid.biz,RequestId=21ec5dc7-79e9-4e74-a
ce2-8ab6189d4966,TimeStamp=8/4/2016 6:56:05 AM]
[AuthZRequestId=93d5835d-9dcd-4e4d-b2a7-c41ebcc620e3][FailureCategory=AuthZ-SetupVersionInformationCorruptException]
Unable to determine the installed file version from the registry key
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine'. For more information, see the
about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : IncorrectProtocolVersion,PSSessionOpenFailed

VxRail 3.5 Deployment in VLAN without DHCP – Hyper Converged

Don’t Start without these –

Two 10GE  Ports connected to each Node from the 10ge Switch with proper SFPs connected  – Validation will not succeed without this.

With DHCP life can be more simpler when it comes to Vxrail  or Enable Ipv6 Multicast.

For Initial Configuration.

Required information to Start with –

  • NTP Server IPs
  • DNS Server IPs
  • ESXi hostnames and IPpools for adding Additional Nodes in future.
  • Hostnames/ips/Passwords for VCenter,PlatformServiceController,VxRail manager,Esxi,Vrealize log Insight
  • IPpools/VLANs for vMotion,virtual SAN,VM networks.
  • VRealize Logging – hostname/ip

 

  • Changing Esxi Hosts Initial IP (Cannot have DHCP in my VLAN)
  • Changing the Initial IP for VxRail Setup (Cannot have DHCP in my VLAN)
  • Need DNS Servers (In my Case have Domain Controllers)
  • Need NTP Servers (In my Case have Domain Controllers)

Front-

image

Back –

image

image

Configuring Mgmt Ports –

  • Reboot Each hosts –
  • press F2 Continiously.
  • Enter Bios password – emcbios
  • Enter BMC Lan Configuration
  • Enter Static IPs
  • Configure User/password

On – Vxrail 4.5  – BMC comes with Default DHCP IP 192.168.0.120

Username admin

Password admin

 

  • Node down the DHCP EMC TAG Name on Each Node, (Need to Add A records in the DNS for vXRAIL Manager to Configure initially).

image

Get inside the DNS server you are going to use for initial Resolving –

EMCTAG-01 to Esxi-Manual-IP

for XRAIL manager to pick up the manual hosts.

image

Getting inside XRAIL Manager-

  • Get inside Node 1 –with Display/Keyboard/Mouse – Disable DHCP – Change Esxi Host IP to Manual – Enter VLAN ID
  • Login with root and Passw0rd!
  • Do the same for all  Nodes for the complete configuration

Note : Only one VMnic will be active. leave as it is. Connect a 10g port to the switch.

Brocade in my case -example-

interface TenGigabitEthernet 3/0/9

switchport

switchport mode trunk

switchport trunk allowed vlan add 100-200

switchport trunk tag native-vlan

spanning-tree shutdown

no shutdown

Now use a Jump Server (Connected to the  same switch with your convenience  ) and a Thick Vsphere Client.

  • Login to the manual IP host
  • Login with root and Passw0rd!

image

Enter VLAN id for VM Network and verify for Vkernel

image

Open Console of Vrealize manager and run below to change iP – Note (Take a Snapshot if possible. Things can’t be reverted easily)

systemctl status vmware-marvin
systemctl stop vmware-marvin
/opt/vmware/share/vami/vami_set_network eth0 STATICV4 <new_IP> <new_subnet mask> <new_gateway>

Run it and wait for the message . Reboot the esxi host with xrail manager.

 

My Domain Controllers IP  –

  • AD001
  • AD002

Checking which one is my NTP server –  PDC (My NTP)

netdom query fsmo
netdom query dc

Looks like AD001 is my NTP

image

Verified my XRAIL has access to NTP Servers and DNS Servers –

image

Now get inside XRAIL manager from Jump Server –

image

 

image

 

image

image

 

image

 

image

image

 

image

 

image

image

 

image

 

New XRAIL manager IP you specified –

username – administrator@vsphere.local

Password-use the xrail password for initial configuration.

  • Now It will configure with the Internal DNS of Vcenter.
  • you have to use the DNS of Vcenter from Jump Server in order to open Console and other things.
  • Start using Hostnames not IPs

image

imageimage

image

× How can I help you?