http://www.top-password.com/knowledge/reset-esxi-root-password.html
Works on ESXi 6.0
If you have access to vCenter..
# Just so it contains one or more VMHost objects.
# To reset all ESXi host passwords use
# $vmhosts = Get-VMHost
Connect-VICenter -Server
$NewCredential = Get-Credential -UserName "root" -Message "Enter an existing ESXi username (not vCenter), and what you want their password to be reset to."
Foreach ($vmhost in $vmhosts) {
$esxcli = get-esxcli -vmhost $vmhost -v2 #Gain access to ESXCLI on the host.
$esxcliargs = $esxcli.system.account.set.CreateArgs() #Get Parameter list (Arguments)
$esxcliargs.id = $NewCredential.UserName #Specify the user to reset
$esxcliargs.password = $NewCredential.GetNetworkCredential().Password #Specify the new password
$esxcliargs.passwordconfirmation = $NewCredential.GetNetworkCredential().Password
Write-Host ("Resetting password for: " + $vmhost) #Debug line so admin can see what's happening.
$esxcli.system.account.set.Invoke($esxcliargs) #Run command, if returns "true" it was successful.
}
Thursday, 20 April 2017
Friday, 7 April 2017
Removing all the crap from Windows 10
A great write up on how to remove all the detritus Microsoft installs onto Windows 10 OOB
http://mikefrobbins.com/2015/08/20/remove-app-packages-from-windows-10-enterprise-edition/
http://mikefrobbins.com/2015/08/20/remove-app-packages-from-windows-10-enterprise-edition/
Wednesday, 5 April 2017
For the device-specific module (DSM) named Microsoft DSM, versions do not match between node
I was asked by a customer to introduce a new Hyper-V 2012 R2 core mode node into an existing cluster.
As always I checked the existing nodes for Windows updates and patched the new node accordingly. The Add node menu item was using in the failover cluster manager and all tests had been selected. Quickly the validation failed with the error below.
Upon closer inspection we can see that the Microsoft DSM version doesn't match! So Windows update was used to check for missing updates, but both nodes showed no updates available.
I used PowerShell to compare the MSDSM.SYS files on both systems, and as we can see below the FilePrivatePart is newer.
I Googled about to find out if there was a hotfix that might have updated the MSDSM.SYS file but no joy.
In the end we narrowed it down to the fact that the March preview update has updated the file. After rolling this out to all cluster nodes the validation passed and the new node was added.
Tuesday, 3 January 2017
Dell Storage Manager Virtual Appliance - The provided manifest file is invalid
When deploying the Dell Storage Manager Virtual Appliance DSM VirtualAppliance-16.2.1.228 into a VMware vSphere 6.x platform, you see the error:
The provided manifest file is invalid: Invalid OVF manifest entry:
A work around to this is to download 7 Zip and extract the OVA to c:\Temp folder. Then download the OVAtool from VMware:
https://www.vmware.com/support/developer/ovf/.
C:\Program Files\VMware\VMware OVF Tool>ovftool.exe "c:\Temp\DSMBuildVM-16.2.1.228.ovf" "c:\Temp\DSMBuildVM-16.2.1.228.ova"
The manifest validates
Opening OVA target: DSM.ova
Writing OVA package: DSM.ova
Transfer Completed
Warning:
- No manifest entry found for: 'DSMBuildVM-16.2.1.228.ovf'.
- File is missing from the manifest: 'DSMBuildVM-16.2.1.228.ovf'.
Completed successfully.
Now when you try to deploy the OVA is should go through.
The provided manifest file is invalid: Invalid OVF manifest entry:
A work around to this is to download 7 Zip and extract the OVA to c:\Temp folder. Then download the OVAtool from VMware:
https://www.vmware.com/support/developer/ovf/.
C:\Program Files\VMware\VMware OVF Tool>ovftool.exe "c:\Temp\DSMBuildVM-16.2.1.228.ovf" "c:\Temp\DSMBuildVM-16.2.1.228.ova"
The manifest validates
Opening OVA target: DSM.ova
Writing OVA package: DSM.ova
Transfer Completed
Warning:
- No manifest entry found for: 'DSMBuildVM-16.2.1.228.ovf'.
- File is missing from the manifest: 'DSMBuildVM-16.2.1.228.ovf'.
Completed successfully.
Now when you try to deploy the OVA is should go through.
Wednesday, 12 October 2016
Dell iDRAC virtual media via remote console won't connect with error Channel Access Denied
Connecting the virtual media in a Dell iDRAC remote console fails with the error seen below. We had the latest firmware and tried the ActiveX and HTML5 consoles, but the problem was still there.
After inspecting the SSL certificate you can see that the date is invalid for some reason, we saw this on a new Dell server!
The solution is to reset the SSL certificate on the iDRAC with these commands:
racadm -r 192.168.0.120 -u root -p calvin sslresetcfg
racadm -r 192.168.0.120 -u root -p calvin racreset soft
After inspecting the SSL certificate you can see that the date is invalid for some reason, we saw this on a new Dell server!
The solution is to reset the SSL certificate on the iDRAC with these commands:
racadm -r 192.168.0.120 -u root -p calvin sslresetcfg
racadm -r 192.168.0.120 -u root -p calvin racreset soft
Don't forget to change the iDRAC IP address, username and password to match your setup.
This process takes about 5-10 minutes to complete.
Labels:
Channel Access Denied,
Dell,
iDRAC,
virtual media
Monday, 10 October 2016
Broadcom QLogic iSCSI and FCoE HBA listed in ESXi storage adapters
When ESXi 6.0 is installed into a server with Broadcom, now QLogic 10GbE network adapters, we see a stack of storage adapters in ESXi.
This can be a drain on resources and increase LUN scan times. It also makes the GUI pane messy.
You can stop these from loading by disabling the following modules in ESXi 6.0 from either SSH or the DCUI
esxcfg-module -d fcoe
esxcfg-module -d bnx2fc
esxcfg-module -d bnx2i
After a reboot you will see that the Storage Adapters list much smaller.
This can be a drain on resources and increase LUN scan times. It also makes the GUI pane messy.
You can stop these from loading by disabling the following modules in ESXi 6.0 from either SSH or the DCUI
esxcfg-module -d fcoe
esxcfg-module -d bnx2fc
esxcfg-module -d bnx2i
After a reboot you will see that the Storage Adapters list much smaller.
Labels:
Broadcom,
ESXi Storage Adapters,
HBA,
QLogic 57810
Tuesday, 27 September 2016
[Resolved] Microsoft Exchange Notifications Broker stopped Exchange 2016
When you open the server manager on Windows 2012 R2 with Exchange 2016 installed you see an error stating that the Microsoft Exchange Notifications Broker has stopped.
This is by design with Exchange 2016 on-prem deployments. This is from the Exchange 2016 release notes.
This is by design with Exchange 2016 on-prem deployments. This is from the Exchange 2016 release notes.
Notifications Broker service stops after 30 seconds When you start your Exchange server, you might notice the Notifications Brokerservice start and then stop after approximately 30 seconds. If you attempt to start the service manually, it will successfully start and then stop, again after approximately 30 seconds. No errors or warnings are included in the Event log.
This behavior is expected in on-premises deployments of Exchange 2016. The Notifications Broker service performs a configuration check on each time the server starts. If there is nothing for the Notifications Broker service to do, it stops automatically until the next time the server is restarted.
As the error is very annoying and can look problematic this service check can be disabled in Server manager by selecting the drop down box next to 'services' find 'Microsoft Exchange Notifications Broker'
Subscribe to:
Posts (Atom)