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 wlan add profile filename="C:\path\to\network.xml" |
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
REM License: GNU General Public License v2.0 | |
REM Author: Miguel | |
REM Website: www.techlogist.net | |
REM Post: https://techlogist.net/scripts-terminal/batch/how-to-set-7zip-as-the-default-application-to-open-certain-compressed-files-type-via-script/ | |
REM Description: This script makes 7Zip the default app for the following extensions: | |
REM .7z, .zip, .rar, .gz, .tgz, .tar | |
REM OS/Language/Region: Windows/EN-US | |
REM Notes: | |
REM 1) Does not require administrator rights to make changes for current logged in user but displays "Access Denied" | |
REM 2) If ran as administrator will change for all users. |
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
foreach ($computer in (Get-ADComputer -Filter 'enabled -eq "True"')){foreach ($group in (Get-ADPrincipalGroupMembership (Get-ADComputer $computer))){ $computer.name+";"+$group.name|Out-File -Append .\Desktop\OUT-VLAN.txt}} |
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
REM License: GNU General Public License v2.0 | |
REM Author: Miguel | |
REM Website: www.techlogist.net | |
REM Post: https://techlogist.net/batch/ | |
REM Description: | |
REM OS/Language/Region: Windows/EN-US | |
REM IMPORTANT : Always place the script at the startup folder for the user | |
REM IMPORTANT : ie: C:\Users\%miguel%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | |
REM IMPORTANT : Replace %miguel% with the correct username | |
REM IMPORTANT : Add the path to each .ffs_batch in the :_run label |
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
REM License: GNU General Public License v2.0 | |
REM Author: Miguel | |
REM Website: www.techlogist.net | |
REM Post: https://techlogist.net/batch/confirm-if-two-folders-are-identical-with-batch/ | |
REM Description: This script will compare if 2 files or folders are identical by calculating their hashes in SHA-256 using 7-Zip | |
REM OS/Language/Region: Windows/EN-US | |
:_start | |
REM Start of script | |
@echo off |
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
REM License: GNU General Public License v2.0 | |
REM Author: Miguel | |
REM Website: www.techlogist.net | |
REM Post: https://techlogist.net/uncategorised-en/wake-on-lan-from-a-list-in-a-text-file/ | |
REM Description: Tries to wake all computers from a list in a TXT file | |
REM ATTENTION: Its recommeded to have a static IP | |
REM OS/Language/Region: Windows/EN-US | |
:_start | |
REM Start of script |
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
REM License: GNU General Public License v2.0 | |
REM Author: Miguel | |
REM Website: www.techlogist.net | |
REM Post: https://techlogist.net/batch/wake-on-lan-multiple-computers-at-once/ | |
REM Description: Wakes up the computers on LAN | |
REM OS/Language/Region: Windows/EN-US | |
REM Links for the application you need: | |
REM https://www.depicus.com/wake-on-lan/wake-on-lan-cmd | |
:_start |
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
$New_Folder_Path="c:\Folderoo2" | |
$Share_Name="Name" | |
$Domain="Domain" | |
$USername="SamAccountname" | |
New-Item $New_Folder_Path –type directory | |
New-SMBShare –Name $Share_Name –Path $New_Folder_Path –FullAccess "$Domain\$USername" |
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
# License: GNU General Public License v2.0 | |
# Author: Miguel | |
# Website: www.techlogist.net | |
# Post: https://techlogist.net/powershell/uploading-files-to-a-ftp-with-powershell/ | |
# Description: Uploading files to a FTP with Powershell | |
# OS/Language/Region: Windows/EN-US | |
# Example of powershell report output to a report in HTML and upload to FTP | |
# Set the output and FTP file folder |
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
# License: GNU General Public License v2.0 | |
# Author: Miguel | |
# Website: www.techlogist.net | |
# Post: https://techlogist.net/powershell/how-to-output-powershell-reports-in-html/ | |
# Description: Example of powershell report output to a report in HTML. Set the ports which will not be checked | |
# OS/Language/Region: Windows/EN-US | |
$NARemotePort="0" | |
$NARemoteAddress="::","127.0.0.1" | |
$Array="" |
NewerOlder