Skip to content

Commit

Permalink
Update itt.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
emadadel4 committed May 27, 2024
1 parent 2fc1ade commit f65b48e
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions itt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4061,9 +4061,7 @@ $sync.database.Tweaks = '[
"type": "command",
"refresh": "false",
"InvokeCommand": [
"
cleanmgr.exe /d C: /VERYLOWDISK /sagerun:1 Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
"
"cleanmgr.exe /d C: /VERYLOWDISK /sagerun:1 Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase"
],
"UndoCommand": [
""
Expand All @@ -4076,11 +4074,7 @@ $sync.database.Tweaks = '[
"type": "command",
"refresh": "false",
"InvokeCommand": [
"
Invoke-RestMethod https://raw.githubusercontent.com/emadadel4/WindowsTweaks/main/restore.bat | Invoke-Expression
"
"Invoke-RestMethod https://raw.githubusercontent.com/emadadel4/WindowsTweaks/main/restore.bat | Invoke-Expression"
],
"UndoCommand": [
""
Expand Down Expand Up @@ -7874,8 +7868,7 @@ function Startup {
Write-Host (WriteAText -color White -message "You ready to Install anything.")
}

#Send-SystemInfo -FirebaseUrl $sync.firebaseUrl -Key $env:COMPUTERNAME

Send-SystemInfo -FirebaseUrl $sync.firebaseUrl -Key $env:COMPUTERNAME


}
Expand Down Expand Up @@ -8000,7 +7993,7 @@ function Invoke-ApplyTweaks

param($tweaks)

function Execute-Command {
function ExecuteCommand {
param (
[string]$Command
)
Expand Down Expand Up @@ -8210,7 +8203,7 @@ Write-Host "
switch ($app.Type) {
"command" {
foreach ($cmd in $app.Command) {
Execute-Command -Command $cmd
ExecuteCommand -Command $cmd
}
}
"modifying" {
Expand Down Expand Up @@ -8681,7 +8674,7 @@ https://t.me/emadadel4
function DownloadAndInstallExe {
param (
[string]$url,
[string]$Args
[string]$exeArgs
)

$destination = "$env:temp/setup.exe"
Expand All @@ -8700,7 +8693,7 @@ https://t.me/emadadel4
}
}

Start-Process -Wait $destination -ArgumentList $Args
Start-Process -Wait $destination -ArgumentList $exeArgs
}

try
Expand Down Expand Up @@ -8748,7 +8741,7 @@ https://t.me/emadadel4

if($app.fileType -eq "exe")
{
DownloadAndInstallExe -url $url $Args $app.exeArgs
DownloadAndInstallExe -url $url $exeArgs $app.exeArgs
}
}
}
Expand Down

0 comments on commit f65b48e

Please sign in to comment.