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
function Install-Cygwin { | |
param ( $CygDir="c:\cygwin", $arch="x86") | |
# Generate random password (forcing a non-alphanumeric at the end because of policies | |
$password = (([char[]]([char]'a'..[char]'z') + 0..9 | sort {get-random})[0..12] -join '') + '.' | |
Write-Verbose "Not-so-secret password: $password" | |
if(!(Test-Path -Path $CygDir -PathType Container)) { | |
Write-Verbose "Creating directory $CygDir" | |
New-Item -Type Directory -Path $CygDir -Force |
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 | |
"C:\Program Files (x86)\Crypto Pro\CSP\cpverify.exe" -rm |
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/sh | |
cd /volume3/Share | |
files=$(find . -name "*.bak") | |
for f in $files; do | |
(cd $(dirname $f) && zip -m $(basename $f.zip) $(basename $f)) | |
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
DROP TABLE v8users | |
GO | |
EXEC sp_rename 'v8users_old', 'v8users' | |
GO | |
UPDATE Params | |
SET FileName = 'users.usr' | |
WHERE FileName = 'users.usr_old' | |
GO |
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
EXEC sp_rename 'v8users', 'v8users_old' | |
GO | |
UPDATE Params | |
SET FileName = 'users.usr_old' | |
WHERE FileName = 'users.usr' | |
GO |
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> | |
<system.webServer> | |
<handlers> | |
<add name="1C Web-service Extension" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Program Files\1cv8\8.3.13.1865\bin\wsisapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="bitness64" /> | |
</handlers> | |
</system.webServer> | |
</configuration> | |
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
psexec.exe \\<computer name> netsh firewall set service RemoteDesktop enable |
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
psexec.exe \\<computer name> reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f |
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
wmic /node:<computer name> process call create 'cmd.exe /c reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f' |
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
wmic /node:<computer name> process call create "cmd.exe /c netsh firewall set service RemoteDesktop enable" |
NewerOlder