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
Write-host "Disable Certificate checks" | |
Add-Type @" | |
using System; | |
using System.Net; | |
using System.Net.Security; | |
using System.Security.Cryptography.X509Certificates; | |
public class ServerCertificateValidationCallback | |
{ | |
public static void Ignore() | |
{ |
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
def list_contains_fast(largelist,startwithstr): | |
listsize=len(largelist) | |
#print "list_contains_fast"+str(listsize) | |
if listsize <= 500: | |
for listentry in largelist: | |
if startwithstr.startswith(listentry): | |
return True | |
return False |
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
Param ([string]$hostname=(Read-Host "Enter Hostname")) | |
[int]$lasthours=(Read-Host "How many hours of eventlog? default 8") | |
$addhours = 8; | |
if ($lasthours) { | |
$addhours = $lasthours | |
} | |
if ($hostname) { |
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
#!name = ADV_LDAP_PROBE | |
######################################################################################## | |
#### > user for linux tclsh !/usr/bin/tclsh8.4 | |
# changes to cisco's original probe | |
# * username and password with ldap simple bind (dynamically generated packets) | |
# * unable to connect exception handling | |
# * debug message for invalidCredentials | |
#------------------------------------------- | |
# debug procedure | |
# set the EXIT_MSG environment variable to help debug |
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
netsh advfirewall reset | |
netsh advfirewall set allprofiles logging droppedconnections enable | |
netsh advfirewall set allprofiles logging maxfilesize 4096 | |
netsh advfirewall set allprofiles logging filename %systemroot%\system32\LogFiles\Firewall\pfirewall.log | |
netsh advfirewall set allprofiles firewallpolicy allowinbound,allowoutbound | |
netsh advfirewall set allprofiles state on |
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
taskkill /F /T /IM firefox.exe | |
taskkill /F /T /IM application.xyz | |
taskkill /F /T /IM application2.xyz | |
set backuplib="z:\backup\" | |
set SAVESTAMP=%DATE:/=-%@%TIME::=-% | |
"7z.exe" a -r %backuplib%appdata_%SAVESTAMP%.7z %appdata% |
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
$AppList = "Microsoft.BingFinance", | |
"Microsoft.3DBuilder", | |
"Microsoft.Appconnector", | |
"Microsoft.BingFoodAndDrink", | |
"Microsoft.Getstarted", |