ERR2: 7621 Failed to move source object. Verify that the caller’s account is not marked sensitive and therefore cannot be delegated. hr=0x8009030e No credentials are available in the security package.

When you are migrating objects from child domain to parent domain using ADMT v 3.2, you may get the following error, ERR2: 7621 Failed to move source object. Verify that the caller’s account is not marked sensitive and therefore cannot be delegated. hr=0x8009030e No credentials are available in the security package. Solution Check if the ... Read more

How to Elevate Windows Batch Scripts to Run it with Admin Rights at Startup

1. Download the PowerToys and extract the contents of an EXE file in your desired folder. 2. Create a batch script with the following command, "C:\Program Files\Elevation\elevate.cmd" "C:\My batch files\<batch file name say batch.bat>" batch.bat contains all the commands you would like to run with administrative privileges. 3. Copy batch.bat to the following startup folder, ... Read more

Script to Reset Windows Network Adapters

If you want to reset network adapters on Windows Server, execute the following script on PowerShell (run PowerShell with admin privileges) You have to run the script locally on a server machine. while($(ping 8.8.8.8) -like "*Reply*"){ "Server replied" } "Server unreachable" Restart-NetAdapter Ethernet0 Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject "server down" -SmtpServer "smtp.yourdomain.com" Reference https://4sysops.com/forums/topic/script-to-reset-network-adapters/

The following error was generated when “$error.Clear(); install-adam -Port $RoleAdamLdapPort -SslPort $RoleAdamSslPort ” was run: “Microsoft.Exchange.Management.Edge.SetupTasks.AdamSetAclsProcessFailureException: Active Directory Lightweight Directory Service (AD LDS) process dsacls.exe failed with error code 58 when setting the access control list (ACL) on OU=MSExchangeGateway.    at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)

While installing Edge Transport Server role on Windows Server 2016, if you get the following error: Error: The following error was generated when “$error.Clear(); install-adam -Port $RoleAdamLdapPort -SslPort $RoleAdamSslPort ” was run: “Microsoft.Exchange.Management.Edge.SetupTasks.AdamSetAclsProcessFailureException: Active Directory Lightweight Directory Service (AD LDS) process dsacls.exe failed with error code 58 when setting the access control list (ACL) on ... Read more

How to Create NIC Teaming With PowerShell

To create NIC teaming with PowerShell, follow this step-by-step tutorial: Step 1. Open PowerShell with elevated privileges Step 2. Execute the following command, new-NetLBFOTeam [TEAMNAME] “[NIC1]”, “[NIC2]” [TEAMNAME] the name of team of network adapters. [NIC1] the name of first NIC adapter. [NIC2] the name of second NIC adapter. Example: If you have two network ... Read more

How To Rename NIC Adapters with PowerShell

If you want to rename NIC adapters with PowerShell, follow this tutorial: Step 1. Open PowerShell with admin privileges Step 2. Execute the following command, Rename-NetAdapter -Name "<Old NIC Adapter Name>" -NewName "<New Adapter Name>" Example If you want to rename an old NIC Ethernet to a new name ManagementAdapter, the command should look like, Rename-NetAdapter ... Read more