This file contains hidden or 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
robocopy.exe source target /l /e /zb /xx /xl /fp /ns /nc /ndl /np /njh /njs /ts |
This file contains hidden or 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: Get-OldADMachines.ps1 | |
Author: James Schlackman | |
Updated by: Zane JPat, 08/19/2024 | |
Last Modified: May 20 2024 | |
1. Finds computer accounts that have been inactive for more than specified time period and optionally disables them | |
2. Finds computer accounts that have been disabled for more than specified time period and optionally deletes them | |
3. Added HTML code for better reportings and sepsarted the outputs | |
#> |
This file contains hidden or 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
<# Based on https://old.reddit.com/r/PowerShell/comments/n686f4/web_scraping_and_building_a_table_better_methods/ | |
Base usage at a MSP to keep track of the latest version in case autodl fails. #> | |
[Net.ServicePointManager]::SecurityProtocol = [Enum]::ToObject([Net.SecurityProtocolType], 3072) | |
$URI = "https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/reference-connect-version-history" | |
$webclient = New-Object System.Net.WebClient | |
$result = $webclient.DownloadString($URI) | |
$versions = @() |
This file contains hidden or 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
#requires -Version 5.0 | |
<# | |
.SYNOPSIS | |
My Veeam Report is a flexible reporting script for Veeam Backup and | |
Replication. | |
.DESCRIPTION | |
My Veeam Report is a flexible reporting script for Veeam Backup and | |
Replication. This report can be customized to report on Backup, Replication, |
This file contains hidden or 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
Traceroute has started… | |
traceroute to www.google.com (172.217.3.196), 64 hops max, 72 byte packets | |
1 209.66.74.165.ipyx-139957-zyo.above.net (209.66.74.165) 10.115 ms 12.685 ms 33.592 ms | |
2 * ae3.cs4.iad93.us.eth.zayo.com (64.125.24.10) 11.624 ms * | |
3 ae15.er5.iad10.us.zip.zayo.com (64.125.25.167) 12.060 ms 10.475 ms 11.428 ms | |
4 64.125.13.190 (64.125.13.190) 9.217 ms 11.376 ms 10.360 ms | |
5 108.170.240.97 (108.170.240.97) 9.291 ms 9.484 ms 11.489 ms | |
6 108.170.240.98 (108.170.240.98) 11.369 ms 17.794 ms 12.610 ms | |
7 216.239.35.162 (216.239.35.162) 13.854 ms 12.548 ms 12.061 ms |
This file contains hidden or 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
#!/usr/bin/env bash | |
############################################################################### | |
# Admin - Global | |
############################################################################### | |
# Ask for the administrator password upfront | |
sudo -v | |
############################################################################### |
This file contains hidden or 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 Create-UpdateVBS { | |
Param ($computername) | |
#Create Here-String of vbscode to create file on remote system | |
$vbsstring = @" | |
ON ERROR RESUME NEXT | |
CONST ForAppending = 8 | |
CONST ForWriting = 2 | |
CONST ForReading = 1 | |
strlocalhost = "." | |
Set oShell = CreateObject("WScript.Shell") |
This file contains hidden or 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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
This file contains hidden or 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
<# | |
.NOTES | |
=========================================================================== | |
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2016 v5.2.119 | |
Created on: 5/3/2016 09:37 | |
Created by: Colin Squier <[email protected]> | |
Filename: Install-SkypeForBusiness2015.ps1 | |
=========================================================================== | |
.DESCRIPTION | |
Automates installation of Skype For Business 2015. |
This file contains hidden or 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
Get-ADComputer -Filter {(OperatingSystem -Like "Windows *Server*")-and (Enabled -eq "True")} -Property * | Select Name,OperatingSystem,OperatingSystemServicePack,IPv4Address | export-csv Servers.csv -notypeinformation |
NewerOlder