This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<Configuration version="1.0"> | |
<Feature Name="NewMailbox" Cmdlets="New-Mailbox"> | |
<ApiCall Name="OnComplete"> | |
If ($succeeded) | |
{ | |
Start-Sleep -s 20 | |
$DC = [string]($readOnlyIConfigurable.originatingserver) | |
$User = Get-User -Identity $provisioningHandler.UserSpecifiedParameters["Alias"] | |
$Alias = Get-Mailbox -Identity $user.DistinguishedName |
This file contains 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
#!/bin/bash | |
for i in {0..23} | |
do | |
sg_format --format --fmtpinfo=3 --pfu=0 /dev/sg$i & | |
done |
This file contains 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_CLASSES_ROOT\vmrc] | |
@="URL:VMware VMRC Protocol" | |
"URL Protocol"="" | |
"UseOriginalUrlEncoding"=dword:00000001 | |
[HKEY_CLASSES_ROOT\vmrc\DefaultIcon] | |
@="\"C:\\Program Files (x86)\\VMware\\VMware Remote Console\\vmrc.exe\",0" |
This file contains 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
#!/bin/bash | |
#------------------------------ | |
# Script to manage vCenter SSL certificates. | |
# | |
# Author: Vincent Santa Maria [vsantamaria@vmware.com] | |
#------------------------------ | |
#------------------------------ | |
# for debugging purposes only, uncomment the following line: | |
# export PS4='+[${SECONDS}s][${BASH_SOURCE}:${LINENO}]: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'; set -x; |
This file contains 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
# Recommended exclusions for Windows antivirus programs on Exchange servers | |
# https://docs.microsoft.com/en-us/exchange/antispam-and-antimalware/windows-antivirus-software?view=exchserver-2019 | |
Import-Module Defender | |
# Folder exclusions | |
Add-MpPreference -ExclusionPath '%SystemRoot%\Cluster' | |
Add-MpPreference -ExclusionPath '%SystemDrive%\DAGFileShareWitnesses\*' | |
Add-MpPreference -ExclusionPath '%ExchangeInstallPath%ClientAccess\OAB' | |
Add-MpPreference -ExclusionPath '%ExchangeInstallPath%FIP-FS' |
This file contains 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 | |
; Recommended exclusions for Windows antivirus programs on Exchange servers: | |
; https://docs.microsoft.com/en-us/exchange/antispam-and-antimalware/windows-antivirus-software?view=exchserver-2019 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Exclusions\Extensions] | |
"config"=dword:00000000 | |
"chk"=dword:00000000 | |
"edb"=dword:00000000 | |
"jfm"=dword:00000000 |
This file contains 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
Turn ALL settings to false in Options > Preferences > Advanced: | |
bt.enable_pulse | |
distributed_share.enable | |
gui.show_notorrents_node | |
offers.left_rail_offer_enabled | |
gui.show_plus_upsell | |
offers.content_offer_autoexec | |
offers.sponsored_torrent_offer_enabled | |
offers.featured_content_notifications_enabled |
This file contains 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
# Создаёт резервную копию конфигурации ESXi, подробности тут: http://kb.vmware.com/kb/2042141 | |
Import-Module VMware.VimAutomation.Core | |
# Игнорируем самоподписные сертификаты ESXi и VMCA | |
# Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Scope Session -Confirm:$false | |
Connect-VIServer vcenter.mydomain.tld | |
# Создаём папку с бекапом | |
$ConfigFolder = "C:\Temp\VMware\ConfigBackup\" + (Get-Date -Format "dd.MM.yyyy") |
This file contains 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
rd /s /q Display.Optimus | |
rd /s /q Display.NView | |
rd /s /q Display.Update | |
rd /s /q GFExperience | |
rd /s /q GFExperience.NvStreamSrv | |
rd /s /q GfExperienceService | |
rd /s /q LEDVisualizer | |
rd /s /q Miracast.VirtualAudio | |
rd /s /q MS.NET | |
rd /s /q MSVCRT |
This file contains 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
if ($env:ExchangeInstallPath) { | |
echo "DO NOT run on Exchange Server" | |
} | |
else { | |
wevtutil el | Foreach-Object {wevtutil cl "$_"} | |
} |