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
@echo off > nul | |
:: Запускать из планировщика задач, как скрытую задачу | |
:: Предварительно скопировать nircmd в папку Windows - можно и в любую другую, если её нет в %PATH% - указать полный путь. | |
:: В планировщике создать задачу, запуск nircmd, параметры exec hide "C:\Program Files (x86)\Avest\AvPCM_nces\upd_crl3.bat" | |
:: рабочая папка c:\Program Files (x86)\Avest\AvPCM_nces\ - в соответствии с разрядностью | |
:: Можно сделать запуск из любой папки, тогда прописывать везде полные пути, в папке должны быть файлы | |
:: wget.exe, nircmd.exe, и прописывать полный путь к AvCmUt4.exe |
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
:: Скрипт проверки работы интернета - проверяем соединение, | |
:: Если есть - обновляем СОС, делаем три попытки в надежде | |
:: на установку соединения, если 3 раза не получилось - выходим. | |
:: Чтобы работало незаметно - можно запустить без отображения из nircmd | |
:: Устанавливаем счетчик | |
set /a count=0 | |
:again | |
if %count%==3 echo "Совсем нет интернета..." && exit |
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
<# | |
.SYNOPSIS | |
Скрипт для восстановления работы Skype for desktop - например, когда не передаются файлы. | |
.DESCRIPTION | |
Для восстановления настроек останавливается Skype, переименовывается папка "%APPDATA%\Microsoft\_Skype for Desktop\", запускается Skype. | |
Если есть ранее переименованная папка - удаляем её без предупреждения. | |
Пользователь должен помнить логин и пароль. | |
.EXAMPLE | |
Чтобы скрыть окно PowerShell - можно запускать командой powershell -WindowStyle Hidden -File \\server\share\fix_skype.ps1 | |
.INPUTS |
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 | |
; Fix font size on Windows 10 clients, apply it on Windows 2012R2 or later terminal server | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations] | |
"IgnoreClientDesktopScaleFactor"=dword:00000001 |
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
@echo off > nul | |
:: Script to fix printers errors on terminal and print servers | |
:: run as administrator on terminal server | |
net stop spooler | |
:: remove old print tasks | |
del %systemroot%\system32\spool\printers\*.shd /F /S /Q | |
del %systemroot%\system32\spool\printers\*.spl /F /S /Q |
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
@echo off > nul | |
echo. | |
echo Скрипт для исправления ошибок обновления Windows 7 при наличии сервера WSUS | |
echo. | |
echo На компьютере должен быть установлен комплект pstools | |
echo. | |
echo Запуск скрипта - обязательно от имени администратора. | |
echo. |
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
@echo off > nul | |
echo. | |
echo Скрипт для исправления ошибок обновления Windows 7-10 | |
echo. | |
echo Запуск скрипта - обязательно от имени администратора. | |
echo. | |
:: Останавливаем службы | |
sc stop bits | |
sc stop wuauserv |
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 | |
; For 125% - dword:00000078 | |
; For 100% - dword:00000060 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI] | |
"LogPixels"=dword:00000078 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\FontDPI] | |
"LogPixels"=dword:00000078 |