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
| reagentc /disable | |
| mkdir C:\mount | |
| dism /Mount-Image /ImageFile:"C:\Windows\System32\Recovery\Winre.wim" /Index:1 /MountDir:C:\mount | |
| dism /Image:C:\mount /Add-Driver /Driver:"C:\Program Files\Common Files\VMware\Drivers\pvscsi\Win8\pvscsi.inf" | |
| dism /Unmount-Image /MountDir:C:\mount /Commit | |
| reagentc /enable |
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
| // Win10 ESU Year1 | |
| TSforge.exe /igpk f520e45e-7413-4a34-a497-d2765967d094 | |
| TSforge.exe /zcid f520e45e-7413-4a34-a497-d2765967d094 | |
| // Win10 ESU Year2 | |
| TSforge.exe /igpk 1043add5-23b1-4afb-9a0f-64343c8f3f8d | |
| TSforge.exe /zcid 1043add5-23b1-4afb-9a0f-64343c8f3f8d | |
| // Win10 ESU Year3 | |
| TSforge.exe /igpk 83d49986-add3-41d7-ba33-87c7bfb5c0fb |
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 [vinny.santa-maria@broadcom.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 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 |
NewerOlder