This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo OFF | |
| reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT | |
| if %OS%==64BIT ( | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\Internet" /t REG_DWORD /v ForceShellExecute /d 1 /f | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\9.0\Common\Internet" /t REG_DWORD /v ForceShellExecute /d 1 /f | |
| ) | |
| if %OS%==32BIT ( | |
| reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\Internet" /t REG_DWORD /v ForceShellExecute /d 1 /f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CloudContent] | |
| "ConfigureWindowsSpotlight"=dword:00000002 | |
| "IncludeEnterpriseSpotlight"=dword:00000000 | |
| "DisableThirdPartySuggestions"=dword:00000001 | |
| "DisableTailoredExperiencesWithDiagnosticData"=dword:00000001 | |
| "DisableWindowsSpotlightFeatures"=dword:00000001 | |
| "DisableWindowsSpotlightWindowsWelcomeExperience"=dword:00000001 | |
| "DisableWindowsSpotlightOnActionCenter"=dword:00000001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get the server name | |
| $hostName = hostname | |
| # Define the email address to send notifications to | |
| $toAddress = "[email protected]" | |
| # Send the notification | |
| Send-MailMessage -To $toAddress -From "[email protected]" -SmtpServer smtp.contoso.com -Subject "$hostName - Server Reboot" -Body "The server $hostName has rebooted." |