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
ipconfig /release && ipconfig /renew |
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 | |
net stop "TeamViewer" | |
wmic product where "name = 'Teamviewer 7'" call uninstall /nointeractive | |
wmic product where "name = 'Teamviewer 7 Host'" call uninstall /nointeractive | |
wmic product where "name = 'Teamviewer 7 Host (MSI Wrapper)'" call uninstall /nointeractive | |
reg delete HKLM\SOFTWARE\TeamViewer /f | |
reg delete HKLM\SOFTWARE\WOW6432Node\TeamViewer /f | |
reg delete HKU\.DEFAULT\Software\Wow6432Node\TeamViewer /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
@echo off | |
gpresult /h c:\temp\gpresult.html /f && c:\temp\gpresult.html | |
wait 60 | |
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
ECHO OFF | |
CLS | |
:MAIN | |
CLS | |
color 0e | |
TITLE gpupdate script with options | |
MODE con cols=55 lines=20 | |
ECHO 1 - gpupdate /force /sync /boot | |
ECHO 2 - gpupdate /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 | |
CLS | |
color 0e | |
TITLE udefrag - batch - quick optimize | |
%systemdrive%\temp\udefrag.exe -q -v -m --all-fixed |
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
dism /online /Enable-Feature /FeatureName:Internet-Explorer-Optional-amd64 |
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
dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64 |
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
<!-- | |
This template is for my personal use. It does contain links specific to my company that you will need to change. | |
There are also two image dependancies you will need to host yourself. | |
Templates are modified from Intercom https://www.intercom.com/help/en/articles/244-4-email-templates-to-choose-from | |
Searh for all instances of i.ibb and host the images yourself. only triangle and arrow are necessary. | |
<a href="https://imgbb.com/"><img src="https://i.ibb.co/b1W4VYK/triangle-8747882e9ef8882f9bc057241fd3c049.png" alt="triangle-8747882e9ef8882f9bc057241fd3c049" border="0"></a> | |
<a href="https://imgbb.com/"><img src="https://i.ibb.co/bRtHj0C/arrow-37f6774809df6fd083bfc98e9d562e23ca6ede618e2b5e10c042de88d2f858dd.png" alt="arrow-37f6774809df6fd083bfc98e9d562e23ca6ede618e2b5e10c042de88d2f858dd" border="0"></a> | |
--> | |
<!DOCTYPE html> |
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
:: WARNING!!! This script will remove EVERY installed printer, their ports, and the unused drivers. | |
:: Use with caution. | |
:: You have been warned. | |
Cd \ | |
Cd Windows\System32 |
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
# Defines the '365 days old' (today's date minus 365) | |
$age = (Get-Date).AddDays(-365) | |
# Get all the files in the Downloads folder and subfolders | foreach file | |
Get-ChildItem -Path $env:SystemDrive\Users\*\Downloads -Recurse -Force | foreach{ | |
# if creationtime is 'le' (less or equal) than 365 days | |
if ($_.CreationTime -le $age){ | |
# Write-Output "Older than 365 days - $($_.name)" | |
# remove the item | |
Remove-Item $_.fullname -Force -Verbose |
OlderNewer