diff --git a/Individual Scripts/spotlightimageextractor.cmd b/Individual Scripts/CMD Scripts/spotlightimageextractor.cmd similarity index 100% rename from Individual Scripts/spotlightimageextractor.cmd rename to Individual Scripts/CMD Scripts/spotlightimageextractor.cmd diff --git a/Individual Scripts/block-ads.ps1 b/Individual Scripts/Powershell Scripts/block-ads.ps1 similarity index 62% rename from Individual Scripts/block-ads.ps1 rename to Individual Scripts/Powershell Scripts/block-ads.ps1 index fd2ee174..45b9186e 100644 --- a/Individual Scripts/block-ads.ps1 +++ b/Individual Scripts/Powershell Scripts/block-ads.ps1 @@ -1,3 +1,3 @@ -$adlist= Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Brandonbr1/ad-list-hosts/main/host' -$adfile = "$env:windir\System32\drivers\etc\hosts" +$adlist= Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Brandonbr1/ad-list-hosts/main/host' # Repo: https://github.com/Brandonbr1/ad-list-hosts/ +$adfile = "$env:windir\System32\drivers\etc\hosts" $adlist | Add-Content -PassThru $adfile \ No newline at end of file diff --git a/Individual Scripts/block-eos.ps1 b/Individual Scripts/Powershell Scripts/block-eos.ps1 similarity index 100% rename from Individual Scripts/block-eos.ps1 rename to Individual Scripts/Powershell Scripts/block-eos.ps1 diff --git a/Individual Scripts/Powershell Scripts/robocopy.ps1 b/Individual Scripts/Powershell Scripts/robocopy.ps1 new file mode 100644 index 00000000..f3931bf6 --- /dev/null +++ b/Individual Scripts/Powershell Scripts/robocopy.ps1 @@ -0,0 +1,13 @@ +#Gets CPU Logical Processor Count +$CPUs = (wmic cpu get NumberOfLogicalProcessors | Select-String -NotMatch NumberOfLogicalProcessors) +$num = 0 +foreach($line in $CPUs){ + if($num -eq 1){ + $CPUs = $line + } + $num++ +} + +$S = Read-Host -Prompt 'Input Source Directory' +$D = Read-Host -Prompt 'Input Destination Directory' +robocopy $S $D /e /w:5 /r:2 /COPY:DATSOU /DCOPY:DAT /MT:$CPUs \ No newline at end of file diff --git a/security-updates-only.reg b/Individual Scripts/Registry Tweaks/security-updates-only.reg similarity index 99% rename from security-updates-only.reg rename to Individual Scripts/Registry Tweaks/security-updates-only.reg index 67589cb6..03aefe5a 100644 Binary files a/security-updates-only.reg and b/Individual Scripts/Registry Tweaks/security-updates-only.reg differ diff --git a/Individual Scripts/robocopy.ps1 b/Individual Scripts/robocopy.ps1 deleted file mode 100644 index 3b863a68..00000000 --- a/Individual Scripts/robocopy.ps1 +++ /dev/null @@ -1,5 +0,0 @@ - - -$S = Read-Host -Prompt 'Input Source Directory' -$D = Read-Host -Prompt 'Input Destination Directory' -robocopy $S $D /e /w:5 /r:2 /COPY:DATSOU /DCOPY:DAT /MT \ No newline at end of file