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
- name: Get redfish info | |
hosts: localhost | |
gather_facts: no | |
vars: | |
baseuri: "10.10.10.10" | |
username: "<user>" | |
password: "<password>" | |
host_ips: | |
- "10.10.10.11" | |
- "10.10.10.12" |
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
$VK = Invoke-WebRequest -Method Head -Uri https://vkteams-www.hb.bizmrg.com/win/x32/vkteamssetup.exe | |
$lastmod = $VK.Headers.'Last-Modified' | |
$lastdate = Get-Content -Path .\lastmodified.txt | |
$chatid = "@mychatid" | |
if ($lastmod -like $lastdate) { | |
$oldver = (Get-Item ".\vkteamssetup.exe").VersionInfo.FileVersion | |
$text = "Нет новых версий после $oldver." | |
echo $text | |
#.\Telegram.ps1 -chat_id $chatid -text $text -markdown -nopreview |
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
<?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 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
#!/bin/bash | |
for i in {0..23} | |
do | |
sg_format --format --fmtpinfo=3 --pfu=0 /dev/sg$i & | |
done |
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_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 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
#!/bin/bash | |
#------------------------------ | |
# Script to manage vCenter SSL certificates. | |
# | |
# Author: Vincent Santa Maria [[email protected]] | |
#------------------------------ | |
#------------------------------ | |
# for debugging purposes only, uncomment the following line: | |
# export PS4='+[${SECONDS}s][${BASH_SOURCE}:${LINENO}]: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'; set -x; |
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
# 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 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 | |
; 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 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
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 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
# Создаёт резервную копию конфигурации 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") |
NewerOlder