Rebuild Windows Search
Create a folder called folder C:\Support\Scripts\Rebuild_Windows_Search
Create a Batch file called Rebuild_Search.CMD and place in the Copy the following code
@Echo Off
Net Stop WSearch
Net Stop WSearch
del "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.edb"
Net Start WSearch
Net
Remove Labtech
1. Services.msc
Click Start, and select Control Panel.
Select Administrative Tools.
Click Services.
Select ‘LabTech Monitoring Services’ and stop the service.
Select ‘LabTech Monitoring Services CheckUp Util’ and stop the service.
From a command
Reset ESXi Hypervisor Licence
Turn on SSH and log in to the host.
Remove the current license
rm -r /etc/vmware/license.cfg
Copy over the new evaluation license, which is already on the host
cp
Run App with Admin rights - AutoIT
Example:
$strCmd = "C:\Windows\System32\notepad.exe"
$strDomain = "domain.local"
$strUser = "administrator"
$strPass = "Password123"
runaswait ($strUser, $strDomain, $strPass, 0, $strCmd)Source: https://www.autoitscript.com/site/autoit/Download: https://www.autoitscript.com/site/autoit/downloads/
Recover Disconnected Exchange 365 Mailbox
Run this command to see a list of available offline mailboxes
Get-Mailbox -InactiveMailboxOnly | Format-List Name,DistinguishedName,ExchangeGuid,PrimarySmtpAddress
Command to create mailbox using disconnected mailbox
new-mailbox -inactivemailbox <ExchangeGuid> -Alias <Aliasd>
Reindex the WSUS database
This SQL Query does basic maintenance tasks on SUSDB:
Identifies indexes that are fragmented, and defragments them. For certain tables, a fill factor is set to
Robocopy Example The example below shows lines already REM'd out to ensure they do not run should you execute the batch file by accident.Remove the REM command
Rename folders due to Folder Name too Long.
When folders are too long deleting can be difficult.Renaming the folder will fix it, but can take a while on several folders and folder depth.
Create
Reset Windows Update
Start CMD shell with Administrator rights
Run the following:
net stop bits /Y
net stop wuauserv /Y
net stop appidsvc /Y
net stop cryptsvc /Y
Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*” /Q
rmdir %systemroot%\SoftwareDistribution /S