Accessing Memory Diagnostics results

Start Menu Type "Event Viewer" and press the Enter key The Event Viewer will open. In the left pane of the window, disclose Windows Logs and select System Widen the window to show the contents of the Middle pane Choose menu item Action -> Filter Current Log. Set Filter "Event sources:" to "MemoryDiagnostics-Results" and press the Enter key to apply it and/or simply click the OK button to close the Filter Current Log window. ...
Read More

Issue with replication on domain controller

While installing some software that links into AD it mentioned check domain topology is healthy, I opens site and services and forced replication, however it gave the RPC server is unavailable The cause was a dns issue on the primary dc, it was set to my routers ip, I also noticed for some reason if I pinged the FQDN of the other dc it gave an external ip, which was strange, I updated dns to loopback and the other dc and sync was able to complete...
Read More

Enabling the new OneDrive Sync Client for Office 365 SharePoint

Enabling the new OneDrive Sync Client for Office 365 SharePoint: While syncing my library's to another computer I found it was opening Onedrive for business instead of Onedrive app. I had this on my main pc aswell, however I logged in to it on another account and I could setup the sync. Today I have found that a setting needs to be changed in the tenancy. Login to the admin portal > under admin centers select Sharepoint > Settings > Sync client for sharepoint change to start the new client...
Read More

Task Schedule Save location

Easy way to copy task sequence from computer to another go to %WINDIR%\System32\Tasks Copy the task you want from Computer A to a usb stick or over the network (you cannot paste the task directly into the tasks location as they are reference in the registry [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache] ) On the other computer open task scheduler and click on import and go to the location the task is stored  ...
Read More

Uninstall Office from a PC

Right-click the Start button, and choose Control Panel. Programs and Features, then right-click your Microsoft Office product, and choose Uninstall. Or if there are multiple versions of office install for instance if it is a new computer and it has language packs for Office use the uninstall tool https://aka.ms/diag_officeuninstall   Source: https://support.office.com/en-gb/article/Uninstall-Office-from-a-PC-9dd49b83-264a-477a-8fcc-2fdf5dbf61d8?ui=en-US&rs=en-GB&ad=GB...
Read More

Run Livedrive as a service

Log into the server or desktop with the account that you want to run the service as and setup LiveDrive as normally. In the config , set it so that it does not run at startup (On advanced tab) and exit the application. Download srvany.exe from the Microsoft Windows 2003 Resource Kit (http://www.microsoft.com/en-au/download/details.aspx?id=17657) After installing the Resource Kit (default in C:\Program Files (x86)\Windows Resource Kits\Tools), copy srvany.exe into the folder where LiveDrive is installed. Run CMD as admin, before entering the below edit to use the correct login details and if you want to change the name of the service sc create LiveDriveBackU displayName= "LiveDrive BackupUser Service" start= auto obj= "<domain>\<username>" password= "<password>" binPath= "C:\Program Files (x86)\Livedrive\srvany.exe" It will then give a message [SC] CreateService SUCCESS Open Regedit and go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LiveDriveBackU " LiveDriveBackU is the name of the service that was created Create a key under this service by right clicking on the service and doing new > key and call it Parameters within Parameters create...
Read More

Get Hyper-V VM IOPS statistics

First, you need to see if VM resource metering is enabled run PowerShell as admin on a hyper v host (or using remote powershell) Get-VM | Format-List Name,ResourceMeteringEnabled   To Enable Metering Enable-VMResourceMetering -VMName NameOfVM To Disable Metering Disable-VMResourceMetering -VMName NameOfVM If you want to enable this for all vm's on a host replace NameOfVM with *   Basic overview Use the below command (values only 0 if VM is off) Get-VM | Measure-VM This shows the columns: VMName, Avg CPU, Avg Ram, Max Ram, Min Ram, Total Disk, Network Inbound, Net Outbound Focus on IOPS Measure-VM -VMName NameOfVM | select VMName, @{Label='TotalIO';Expression = {$_.AggregatedDiskDataRead + $_.AggregatedDiskDataWritten}}, @{Label='%Read';Expression={"{0:P2}" -f ($_.AggregatedDiskDataRead/($_.AggregatedDiskDataRead + $_.AggregatedDiskDataWritten))}}, @{Label='%Write';Expression={"{0:P2}" -f ($_.AggregatedDiskDataWritten/($_.AggregatedDiskDataRead + $_.AggregatedDiskDataWritten))}}, @{Label='TotalIOPS';Expression = {"{0:N2}" -f (($_.AggregatedDiskDataRead + $_.AggregatedDiskDataWritten)/$_.MeteringDuration.Seconds)}} | ft    ...
Read More

Delete Failed DC from AD

Caution: Using the Ntdsutil utility incorrectly may result in partial or complete loss of Active Directory functionality.   At the command line, type "Ntdsutil" and press ENTER. type "metadata cleanup" and press Enter.  type "connections" and press Enter. type "connect to server <servername>", where <servername> is the domain controller (any functional domain controller in the same domain) Press Enter. Type "quit" and press Enter Type "select operation target" and press Enter Type "list domains" and press Enter (lists all domains in the forest with a number associated with each) Type "select domain <number>", where <number> is the number corresponding to the domain. Press Enter. Type "list sites" and press Enter. Type "select site <number>", where <number> refers to the number of the site, Press Enter. Type "list servers in site" and press Enter. (list all servers in that site with a corresponding number) Type "select server <number>" and press Enter, <number> refers to the domain controller to be removed. Type "quit" and press Enter (Metadata...
Read More