Monday, 20 July 2026

Bulk Upload Outlook PST in to M365 User Mailbox Using Admin Panel

How to import Office 365 PST files

Follow the steps below on how to import Office 365 PST files step by step:

1. Assign Mailbox Import Export role

You must be assigned the Mailbox Import Export role in Exchange Online to create import jobs in the Microsoft Purview compliance portal and import PST files to user mailboxes. By default, this role isn’t assigned to any role group in Exchange Online.

Assign Mailbox Import Export role in Exchange Online to create import jobs in the Microsoft Purview compliance portal and import PST files to user mailboxes:

  1. Sign in to Exchange Admin Center.
  2. Expand Roles and click on Admin roles.
  3. Select Organization Management

  1. Click on the tab Permissions.
  1. Select Mailbox Import Export role.
  2. Click Save.

Note: It can take up to 24 hours before the change applies. But, most of the time it will work within 1 hour.

Suppose you get the error below after clicking on Save:

We couldn’t save your changes. Please try again.

An excellent alternative way to add the Mailbox Import Export role is with PowerShell.

Connect to Exchange Online PowerShell and run the New-ManagementRoleAssignment cmdlet.

PS C:\> New-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup "Organization Management" -Name "Import Export Org Management"

 

Name                           Role              RoleAssigneeName  RoleAssigneeType  AssignmentMethod  EffectiveUserName

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

Import Export Org Management   Mailbox Import... Organization M... RoleGroup         Direct

2. Create PST import job

To create a PST import job in Microsoft Purview compliance portal, follow these steps:

  1. Sign in to Microsoft Purview compliance portal.
  2. Expand Data lifecycle management and click on Microsoft 365.
  3. Choose Import.
  4. Click on New Import Job.








If you don’t see a New import job, it means that you have to wait before the change in the previous steps applies.

  1. Give the import job a name. Click Next.













      6. Select upload your data. Click Next.













  1. Click on Show network upload SAS URL.













  1. Click on Copy to clipboard to copy the SAS URL. You will need the SAS URL in the next step.













In the next step, you will upload the PST files to Office 365 with AzCopy command-line tool.

Note: Don’t cancel the import job because you need to return to this window and finish the import job. If you cancel the import job, you need to do this job again.

3. Upload PST files to Office 365

  1. Download AzCopy and extract it













2.      Copy the path, open cmd (run as administrator) type cd (change directory) (past the copied path here) hit enter.









1.    3.  Now copy the PST path and SAS url and past here as follows \

azcopy.exe copy "<Source location of PST files>/*" "<SAS URL>"





  1. The output will show like this.

INFO: Scanning...

INFO: Could not read destination length. If the destination is write-only, use --check-length=false on the command line.

100.0 %, 1 Done, 0 Failed, 0 Pending, 0 Skipped, 1 Total, 2-sec Throughput (Mb/s): 26.7263

 Job summary

Elapsed Time (Minutes): 06.21431

Number of File Transfers: 3

Number of Folder Property Transfers: 0

Total Number of Transfers: 3

Number of Transfers Completed: 3

Number of Transfers Failed: 0

Number of Transfers Skipped: 0

TotalBytesTransferred: 1841431012

Final Job Status: Completed

6. Select PST import mapping file

  1. Go back to the PST import job, check both the boxes, and click Next.









  1. Click Select mapping file.
  2. Browse to the PstImportMappingFile.csv file. It must be as look like







4. Click on Validate.








  1. It shows a green text, which means that it’s valid. Click Next.







  1. Review the PST import job. Click Submit.













  1. Upload to the cloud succeeded. Click Done.













You are not finished because there is one last step. That’s to start the PST import to Office 365.

7. Start PST import to Office 365

Before you can start to import the PST file to Office 365, you have to wait for the analysis progress to complete. After that, it will show the Import completed progress and ready to:

  1. Select the checkbox in front of the Import Job.
  2. Click on Import to Office 365 button.













  1. Select No, I want to import everything. Click Next.













  1. Click on Submit.













  1. Upload to the cloud succeeded. Click Done.

You have to wait before Microsoft accepts the request and starts the progress. It’s not possible to force the PST import to Office 365.

8. Verify PST import job completion status

To verify the PST import job status, click on the Import Job in the list view. Then, verify that the PST import job shows the status completed.

You successfully imported a PST file to Office 365.


Saturday, 18 July 2026

Network Attack Case Studies

 Attack ID - CVE-2022-26809

CVE-2022-26809 is a critical Remote Code Execution (RCE) vulnerability in Microsoft Windows RPC.

An attacker can send specially crafted RPC packets to a Windows machine.

If the target is unpatched, the attacker may be able to:

  • Execute arbitrary code remotely
  • Gain SYSTEM privileges
  • Install malware
  • Deploy ransomware
  • Move laterally across the network

Microsoft released a security patch in April 2022

Action-

  1. Identify Source and Destination-PC
  2. Check Windows Patch
  3. Check Event Logs
  4. Scan the Machine with Install Endpoint Protection
  5. Check Firewall Action should be blocked if available.
  6. Confirm ports 135/139/445/593 are not exposed to the Internet.

Check if Attack is Repeated perform below action immidiatly 

  • Disconnect that PC from the network.
  • Run a full antivirus scan.
  • Check running processes.
  • Review recent software installations.
  • Verify no unauthorized remote administration tools are installed.
  • If the Source IP is Public

 

Wednesday, 6 May 2026

Force ChatGPT to give correct answer

 SANTAX:

System Instruction: Absolute Mode

• Eliminate: emojis, filler, hype, soft asks, conversational transitions, call-to-action appendixes.

• Assume: user retains high-perception despite blunt tone.

• Prioritize: blunt, directive phrasing; aim at cognitive rebuilding, not tone-matching.

• Disable: engagement/sentiment-boosting behaviors.

• Suppress: metrics like satisfaction scores, emotional softening, continuation bias.

• Never mirror: user's diction, mood, or affect.

• Speak only: to underlying cognitive tier.

• No: questions, offers, suggestions, transitions, motivational content.

• Terminate reply: immediately after delivering info — no closures.

• Goal: restore independent, high-fidelity thinking.

• Outcome: model obsolescence via user self-sufficiency.


Just copy above sentance and paste it to Open ChatGPT>Profile>Personalization>Custom instructions

Now refresh the page and test.

Saturday, 13 September 2025

I have installed Microsoft Office and entered the product key, but the activation wizard doesn't work. How do I solve this problem?

 Activate Microsoft 365 or a non-subscription version of Office








It means you likely do not have a valid license key. Purchase one.

Trying it via the cmd method might give you a more complete error msg if you are so inclined.

Type into the search field: cmd.exe

Click with the right mouse button on cmd.exe and select “Run as Administrator”

If you are running a 32bit Office on a 32bit windows or an 64bit office on a 64bit Windows, enter:

C:\Program Files (x86)\Microsoft Office\Office16>

Type below commond to revok this promt

cscript ospp.vbs /unpkey:Last 4 Digit of key

To Enter new key

cscript ospp.vbs /inpkey:your key


File can not download because the virus scan failed in windows 11 how do I fix that

 Please follow these steps to resolved this issue 

Pressing Windows+R together 

Type "Regedit" and press enter to open the registry editor. 

Navigate to \HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\AttachmentOnce 

You have found the Attachment folder click on it to locate ScanWithAntivirus on the right side, right-click on ScanWithAntivirus, select modify and put the value as "0" (i.e equals "off").This will fix the problem of "Virus Scan Failed" every time you attempt any download.



Wednesday, 26 March 2025

How do I upgrade from Windows 11 Home to Windows 11 Pro?

 Do you have the Windows 11 Pro key?


-If you have a Windows 11 Pro product key
1-Click on Start then click on Settings
2-Click on System, scroll down and click on Activation
3-Click on "Change product key", and then enter the 25-character Windows 11 Pro product key
4-Select Next to start the upgrade to Windows 11 Pr


-If you don't have a Windows 11 Pro product key
1-Click on Start then click on Settings
2-Click on System, scroll down and click on Activation
3-Under Upgrade, your edition of Windows, select "Open Store"
4-Make sure you’re signed in with your Microsoft account to purchase Windows 11 Pro
5-After you confirm your purchase, you’ll be prompted to install Windows 11 Pro and restart your PC. You’ll then be running Windows 11 Pro.

-If you only have a digital license, you can use a generic key to upgrade
1-Right-click on the Start then click on Windows Powershell(admin)
2-Run these commands:
SLMGR.VBS /CPKY and press
SLMGR.VBS /CKMS and press enter
Net stop Sppsvc and press enter
CD C:\Windows\System32\SPP\Store\2.0 and press enter
Ren Tokens.dat Tokens.old and press enter
SLMGR.VBS /RILC end press enter
changepk.exe /ProductKey XXXX-XXXX-XXXX-XXXX and press enter
3-Reboot your PC

Monday, 6 May 2024

How to Seize FSMO Roles From Dead Domain Controller

The Flexible Single Master Operations (FSMO) role are critical components of an Active Directory domain controller. They are responsible for managing various operations within the domain, including creating and deleting objects, schema updates, and domain renaming.

If a domain controller holding an FSMO role fails, it is crucial to seize the role quickly to avoid disruption to the domain.

This blog post will discuss how to seize an FSMO role from a failed domain controller in Active Directory. We will provide step-by-step instructions and highlight important things to watch out for during the process.

The Environment

This tutorial will demonstrate the examples using two domain controllers.

  • DC1.theitbros.local – The failed domain controller who’s the current owner of all FSMO roles.
  • DC2.theitbros.local – The additional domain controller to which we’ll forcefully transfer the FSMO roles.

Apart from that, your administrator account must be a member of the following Active Directory groups:

  • Domain Admins
  • Schema Admins

FSMO Roles: Transferring vs. Seizing

The two ways to reassign FSMO roles are transfer and seize. Both methods ultimately transfer the FSMO roles to another DC.

  • Transfer — is used for the planned demotion of a domain controller (for example, when you decommission a server) or when a DC is temporarily disconnected while performing maintenance tasks.
  • Seize — used when the physical server has failed (and you do not have an up-to-date Active Directory backup of this DC to perform a non-authoritative restore of Active Directory Domain Services) or Windows Server is faulty; or after you have forcibly demoted a domain controller to a member server.

In a gist, you can gracefully move (transfer) FSMO roles from one working DC to another or forcefully grab (seize) the FSMO roles from a dead DC.

Determine the FSMO Roles to Owner

Note. The AD PowerShell cmdlets are available in the Active Directory module 2.0 or newer on domain controllers with Windows Server 2008 R2 or higher.

Suppose DC1 goes kaput, and you must transfer the FSMO roles it holds to another domain controller. Having FSMO roles on different domain controllers is common. So you must confirm which FSMO roles the dead server holds.

First, let’s list the domain controllers in our environment.

# List all DCs 
## Using PowerShell 
Get-ADDomainController -Filter * | Select-Object ` 
HostName, Site, OperatingSystem

## Using DSQUERY 
dsquery server -forest

As you can see below, this forest has two domain controllers. And we know that DC1 is dead. So that makes DC2 our candidate as the new FSMO role owner.

seize fsmo roles from dead domain controller

Next, list the FSMO roles owner using the commands below.

# List FSMO Roles owners 
## Using PowerShell 
Get-ADDomain | Select-Object PDCEmulator, InfrastructureMaster, RIDMaster 
Get-ADForest | Select-Object DomainNamingMaster, SchemaMaster

## Using NETDOM 
netdom query fsmo

As confirmed, DC1 owns all FSMO roles (PDC Emulator, RID Master, Infrastructure Master, Domain Naming Master, Schema Master).

seize roles from failed domain controller

How to Transfer FSMO Roles From a Failed Domain Controller

You can seize FSMO roles in three ways—PowerShell (Move-ADDirectoryServerOperationMasterRole), NTDSUTIL, and Active Directory Users and Computers (ADUC) console.

Seize FSMO Roles Step by Step (ADUC)

Log on to the domain controller that will be the new FSMO roles owner. In this example, that server is DC2.

Once you’ve logged on to DC2, open the ADUC console.

how to seize fsmo roles from dead domain controller

Click the Domain Controllers Organizational Unit (OU) and look for the failed domain controller (DC1). Right-click the failed DC and click Delete.

seizing fsmo roles from dead server

When asked to confirm the deletion, click Yes.

transfer fsmo roles when dc is down

You’ll receive a warning that you’re deleting a domain controller without running the removal wizard. But since we’re removing a dead domain controller, check the box to Delete this Domain Controller anyway and click Delete.

seize fsmo roles

Click Yes to confirm the deletion of this domain controller.

how to seize fsmo roles

The deletion will detect that DC1 is the owner of the FSMO roles. Those FSMO roles will be transferred to the additional domain controller (DC2) when you click OK.

seize domain controller roles

Once DC1 is deleted, right-click the domain and click Operations Masters.

how to transfer fsmo roles when dc is down

Now, click through each tab (RID, PDC, and Infrastructure) and confirm that the operations master is DC2.

seize pdc role

Next, open the Active Directory Domains and Trusts console. Click Action → Operations Master.

active directory seize fsmo roles

Confirm that DC2 is now the Domain Naming operations master.

fsmo roles transfer

Now, let’s check the Schema Master role. Run the below command in an elevated PowerShell window to register the Active Directory Schema Management console:

regsvr32 schmmgmt.dll

Click OK,

seize fsmo roles step by step

Next, open MMC and add the Active Directory Schema snap-in.

force fsmo role transfer

Right-click the Active Directory Schema node → Operations Master. Confirm the DC2 is the current schema master.

seizing fsmo roles

Using the GUI, you’ve successfully seized the FSMO role from a failed domain controller.

Seize FSMO Roles Step by Step (PowerShell)

The PowerShell method of seizing the FSMO roles involves fewer steps than the others, making it an ideal emergency break-glass method.

Log on to the domain controller (DC2) and open PowerShell as admin.

Next, define the roles to seize. The below code defines all roles in a variable named $fsmoRoles.

$fsmoRoles = @( 
'SchemaMaster', 
'DomainNamingMaster', 
'InfrastructureMaster', 'PDCEmulator', 
'RIDMaster' 
)

You can also substitute the operations master’s names with their corresponding numbers.

Operation Master Role NameNumber
PDCEmulator0
RIDMaster1
InfrastructureMaster2
SchemaMaster3
DomainNamingMaster4

Run the following commands to move the FSMO roles to DC2.itbros.local forcefully. The first command gets the domain controller object (Get-ADDomainController). The second command ([Move-ADDirectoryServerOperationMasterRole](https://theitbros.com/transfer-fsmo-roles-using-powershell/)) transfers the FSMO roles:

$targetDC = Get-ADDomainController -Identity DC2.theitbros.local 
Move-ADDirectoryServerOperationMasterRole ` 
-Identity $targetDC ` 
-OperationMasterRole $fsmoRoles ` 
-Confirm:$false ` 
-Force

If there are no errors or output on the screen, the FSMO role move operation was completed successfully.

seize all fsmo roles

To confirm, let’s check the new FSMO roles owner.

Get-ADDomain | Format-List PDCEmulator, InfrastructureMaster, RIDMaster 
Get-ADForest | Format-List DomainNamingMaster, SchemaMaster

seize fsmo roles ntdsutil

Suffice it to say the PowerShell method is quick and convenient.

Seize FSMO Roles Step by Step (NTDSUTIL)

In this last method, we’ll go old school. This method is interactive using the ntdsutil tool.

Open PowerShell or command prompt as admin and run the ntdsutil command.

Next, enter each command below.

roles 
connections 
connect to server DC2 
q

force transfer fsmo roles

Run the below command to seize the naming master FSMO role.

seize naming master

You will be prompted to confirm the role seizure. You will see this confirmation dialog for each FSMO role you are seizing. Click Yes.

seize fsmo roles command line

NTDSUTIL will first attempt a safe role transfer. As expected, the safe transfer fails because DC1 is already dead. It proceeds with the seizure of the role instead.

As shown below, NTDSUTIL successfully seized the Naming Master role to DC2.

how to move fsmo roles

Now, run each command below to seize the remaining FSMO roles.

seize infrastructure master 
seize rid master 
seize schema master 
seize pdc 
q

sieze fsmo roles

transfer fsmo roles

seize fsmo

seize fsmo role

Now, let’s enter the metadata cleanup mode.

metadata cleanup 
connections 
connect to server DC2 
q

move fsmo roles

List the existing Active Directory sites:

select operation target 
list sites

This domain has only one AD site called EAST-US. Type the site number where the failed domain controller belongs. Then, list the servers on that site.

select site 0 
list servers in site

fsmo seize roles

Select the failed controller (DC1) and display the list of domains:

select server 0 
list domains

Select the domain and return to the metadata cleanup menu:

select domain 0 
q

seize roles domain controller

Delete the selected server (DC1):

remove selected server

And you will get this confirmation dialog. Click Yes.

fsmo seize

domain controller seize fsmo roles

Whew! That was a lot of steps! I don’t think I’ll often use ntdsutil for FSMO roles operations.

Post FSMO Seizure Clean-Up Tasks

After you’ve successfully seized the FSMO roles, here are some tasks you must do.

Delete the Failed Domain Controller

You can delete the DC from the Active Directory Sites and Services (dssite.msc).

command to seize fsmo roles

Click Yes to confirm the deletion.

fsmo roles seize

Delete DNS Records

Once you’ve deleted the domain controller object, make sure to delete the DNS records that point to that DC.

You can let the DNS scavenging take care of it or manually remove them using the DNS manager. In the below example, the DC1 DNS entry is already removed automatically.

force seize fsmo roles

Check for Errors

After capturing the FSMO roles, check for errors in the Directory Services and DNS logs in the Event Viewer. If there are problems, use the following commands to help you fix the most common errors automatically.

dcdiag /v /fix 
netdiag /v /fix

Things to Watch Out For

  • Seizing an FSMO role should only be done as a last resort when a domain controller holding an FSMO role fails and cannot be recovered.
  • Seizing an FSMO role can cause conflicts if the original domain controller is recovered or brought back online.
  • After seizing an FSMO role, ensuring that the domain is fully functional and has no issues is crucial.
  • Wait for the changes to replicate throughout the AD forest.

Conclusion

In conclusion, seizing an FSMO role from a failed domain controller is a critical task that must be performed carefully. By following the steps outlined in this blog post and keeping an eye on potential issues, you can ensure that the domain remains fully functional even after a domain controller failure.