-
Notifications
You must be signed in to change notification settings - Fork 0
/
SYSCOM.PS1
1503 lines (1437 loc) · 71 KB
/
SYSCOM.PS1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
$OutputEncoding = [System.Text.Encoding]::UTF8
$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')
if (-not $isAdmin) {
Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show("Per alcuni comandi è preferibile avere privilegi di amministratore.", "Avviso", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Information)
}
# Definisce una funzione per cambiare il titolo della finestra della console
function Set-ConsoleTitle {
param (
[string]$Title
)
$typeDefinition = @"
using System;
using System.Runtime.InteropServices;
public class Win32 {
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool SetConsoleTitle(string lpConsoleTitle);
}
"@
Add-Type -TypeDefinition $typeDefinition
[Win32]::SetConsoleTitle($Title)
}
# Chiama la funzione con il titolo desiderato
Set-ConsoleTitle -Title "SYSCOM"
function CTRLPause {
do {
$key = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
} while ($key.VirtualKeyCode -eq 17) # 17 è il codice virtuale per CTRL
}
# Ottieni la data corrente
$currentDate = Get-Date
$festa = "┃ &L. Licenza ┃"
# Controlla se il giorno e il mese correnti corrispondono a quelli specificati
if ($currentDate.Day -eq 2 -and $currentDate.Month -eq 6) {
$festa = "┃ Buona festa della Repubblica Italiana ┃"
}
function DSK_SO {
Clear-Host
Write-Host ""
Write-Host ""
Write-Host ""
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\DSK_SO"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. SO (Strumenti per il SISTEMA OPERATIVO) ┃"
Write-Host "┃2. DSK (Strumenti per i Dischi e Volumi) ┃"
Write-Host "┃3. HARDWARE (Strumenti per il l'Hardware) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$MDeSO = Read-Host " "
switch ($MDeSO) {
"0" {MAIN}
"" {MAIN}
"q" {MAIN}
"1" {
SO
}
"2" {
DSK
}
"3" {
HARDWARE
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function SO {
Clear-Host
Write-Host ""
Write-Host ""
Write-Host ""
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\SO"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. SFC (Analizza integrità file di sistema) ┃"
Write-Host "┃2. DISM (Manutenzione immagini di sistema) ┃"
Write-Host "┃3. Windows (Immagini di Windows Ufficiali) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$SO = Read-Host " "
switch ($SO) {
"0" {
DSK_SO
}
"" {
DSK_SO
}
"q" {
DSK_SO
}
"1" {
Clear-Host
sfc /scannow
Pause
Start-Sleep -Seconds 1
SO
}
"2" {
Clear-Host
dism /online /cleanup-image /restorehealth /Loglevel:2
Start-Sleep -Seconds 1
Pause
SO
}
"3" {
WINDOWS11
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function DSK {
Clear-Host
Write-Host ""
Write-Host ""
Write-Host ""
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\DSK"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. CHKDSK (Individua settori e controlla disco) ┃"
Write-Host "┃2. Canc (Strumenti per la cancellazzione file) ┃"
Write-Host "┃3. dfrgui.exe (Deframmenta e ottimizza unità) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$DSK = Read-Host " "
switch ($DSK) {
"0" {
DSK_SO
}
"" {
DSK_SO
}
"q" {
DSK_SO
}
"1"{
CHKDSK
}
"2"{
Canc
}
"3" {
Invoke-Expression "$env:windir\System32\dfrgui.exe"
Start-Sleep -Seconds 1
DSK
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function CHKDSK {
Clear-Host
Write-Host ""
Write-Host ""
Write-Host ""
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\CHKDSK"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. CHKDSK (f) (Controlla disco e visualizza rapporto) ┃"
Write-Host "┃2. CHKDSK (r) (Individua settori danneggiati) ┃"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$CHKDSK = Read-Host " "
switch ($CHKDSK) {
"0" {
DSK
}
"" {
DSK
}
"q" {
DSK
}
"1" {
Clear-Host
chkdsk /f
Pause
Start-Sleep -Seconds 1
CHKDSK
}
"2" {
Clear-Host
chkdsk /r
Pause
Start-Sleep -Seconds 1
CHKDSK
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function Canc {
Clear-Host
Write-Host ""
Write-Host ""
Write-Host ""
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\CANC"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. cleanmgr.exe (Cancella file non necessari dal disco) ┃"
Write-Host "┃2. dTeP (Canc file temporanei e file di prefetch) ┃"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$CANC = Read-Host " "
switch ($CANC) {
"0" {
DSK
}
"" {
DSK
}
"q" {
DSK
}
"1"{
Invoke-Expression "$env:windir\System32\cleanmgr.exe"
Start-Sleep -Seconds 1
Canc
}
"2"{
Clear-Host
Remove-Item -Path "$env:TEMP\*" -Force -Recurse
Remove-Item -Path "$env:WINDIR\temp\*" -Force -Recurse
Canc
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function HARDWARE {
Clear-Host
Write-Host ""
Write-Host ""
Write-Host ""
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\HDWE"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. dxdiag.exe (Strumento di diagnostica Direct X) ┃"
Write-Host "┃2. Report (Strumenti di diagnostica componenti) ┃"
Write-Host "┃3. hotplug.dll (Rimozione sicura dell`hardware) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$HDWE = Read-Host " "
switch ($HDWE) {
"0" {
DSK_SO
}
"" {
DSK_SO
}
"q" {
DSK_SO
}
"1"{
Invoke-Expression "$env:windir\System32\dxdiag.exe"
Start-Sleep -Seconds 1
HARDWARE
}
"2"{
REPORT
}
"3" {
Invoke-Expression "$env:windir\System32\RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll"
Start-Sleep -Seconds 1
SicurezzaProtezione
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function REPORT {
Clear-Host
Write-Host ""
Write-Host ""
Write-Host ""
Write-Host "`a┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\REPORT"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. POWERCFG (e) (Report energia del computer) ┃"
Write-Host "┃2. POWERCFG (b) (Report stato batteria) ┃"
Write-Host "┃3. MdSched.exe (Diagnostica memoria centrale) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$RPRT = Read-Host " "
switch ($RPRT) {
"0" {
HARDWARE
}
"" {
HARDWARE
}
"q" {
HARDWARE
}
"1" {
Clear-Host
powercfg /energy
Pause
Start-Sleep -Seconds 1
REPORT
}
"2" {
Clear-Host
powercfg /batteryreport
Pause
Start-Sleep -Seconds 1
REPORT
}
"3" {
Invoke-Expression "$env:windir\System32\MdSched.exe"
Start-Sleep -Seconds 1
REPORT
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function WINDOWS11 {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\WINDOWS11.ANS"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. ISO (ISO scaricabili di Windows) ┃"
Write-Host "┃2. TPM (Utilità per rimuovere il TPM) ┃"
Write-Host "┃3. Guida (Guida per la compatibilità Windows 11) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$WIN11 = Read-Host " "
switch ($WIN11) {
"0" {
SO
}
"" {
SO
}
"1" {
ISOWIN11
}
"2" {
Start-Process https://github.com/harsha2koo/W11x64.bat/blob/main/W11_x64-TPM.cmd
Start-Sleep -Seconds 1
WINDOWS11
}
"3" {
GUIDAWIN11
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function ISOWIN11 {
Clear-Host
Write-Host ""
Write-Host ""
Write-Host ""
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\ISO"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. ISO Ufficiale (Scarica Windows 11 ufficiale) ┃"
Write-Host "┃2. Windows (Scarica versioni di Windows precedenti) ┃"
Write-Host "┃3. Scarica ISO (ISO dai server della Microsoft) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$ISOWIN11 = Read-Host " "
switch ($ISOWIN11) {
"0" {
WINDOWS11
}
"" {
WINDOWS11
}
"1" {
Start-Process https://www.microsoft.com/it-it/software-download/windows11
Start-Sleep -Seconds 1
ISOWIN11
}
"2" {
Start-Process https://www.microsoft.com/it-it/software-download/
Start-Sleep -Seconds 1
ISOWIN11
}
"3" {
Start-Process https://uupdump.net
Start-Sleep -Seconds 1
ISOWIN11
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function GUIDAWIN11 {
Clear-Host
Write-Host "=============================================="
Write-Host " 1. Scarica il media creation tool dal sito "
Write-Host " della Microsoft mediante l'opzione 1. "
Write-Host " Questo strumento ti permetterà di creare "
Write-Host " un'immagine ISO di Windows 11. "
Write-Host "=============================================="
Write-Host ""
pause
Clear-Host
Write-Host "=============================================="
Write-Host " 2. Scarica l'eseguibile TPM mediante "
Write-Host " l'opzione 2. Questo programma ti servirà "
Write-Host " per modificare le impostazioni TPM "
Write-Host " del tuo sistema. "
Write-Host "=============================================="
Write-Host ""
pause
Clear-Host
Write-Host "=============================================="
Write-Host " 3. Dopo aver scaricato i programmi, crea "
Write-Host " l'immagine ISO di Windows 11 seguendo "
Write-Host " le istruzioni del media creation tool. "
Write-Host "=============================================="
Write-Host ""
pause
Clear-Host
Write-Host "=============================================="
Write-Host " 4. Monta per la prima volta la ISO facendo "
Write-Host " clic destro su di essa e selezionando "
Write-Host " 'Monta'. "
Write-Host "=============================================="
Write-Host ""
pause
Clear-Host
Write-Host "=============================================="
Write-Host " 5. Chiudi l'immagine montata e esegui "
Write-Host " l'eseguibile TPM. Segui le istruzioni "
Write-Host " sullo schermo per eliminare il TPM. "
Write-Host "=============================================="
Write-Host ""
pause
Clear-Host
Write-Host "=============================================="
Write-Host " 6. Dopo l'avviso di corretta eliminazione "
Write-Host " del TPM, rimonta la ISO facendo clic "
Write-Host " destro su di essa e selezionando 'Monta'. "
Write-Host "=============================================="
Write-Host ""
pause
Clear-Host
Write-Host "=============================================="
Write-Host " 7. Apri il file setup.exe dalla ISO montata "
Write-Host " e segui le istruzioni dell'installazione "
Write-Host " guidata per completare l'installazione "
Write-Host " di Windows 11. "
Write-Host "=============================================="
Write-Host ""
pause
WINDOWS11
}
function GestioneReteApplicazioni {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\RETEAPP"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. App (Strumenti per pachetti e programmi) ┃"
Write-Host "┃2. NET (Strumenti per il network e dischi di rete) ┃"
Write-Host "┃3. Copilot (Strumenti Copilot) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$GRA = Read-Host " "
switch ($GRA) {
"0" {MAIN}
"" {MAIN}
"1" {
App
}
"2" {
NET_Menu
}
"3" {
COPILOT
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function App {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\APP"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. WINGET (Strumenti utili per pachetti) ┃"
Write-Host "┃2. DISINSTALLA (Disistalla o modifica programma) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$APP = Read-Host " "
switch ($APP) {
"0" {
GestioneReteApplicazioni
}
"" {
GestioneReteApplicazioni
}
"1" {
WG
}
"2" {
DISINSTALLA
}
# "2" {
# Invoke-Expression "$env:windir\System32\appwiz.cpl"
# Start-Sleep -Seconds 1
# App
# }
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function DISINSTALLA {
}
function WG {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\WINGET"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. INSTALLA (Installa un pachetto) ┃"
Write-Host "┃2. AGGIORNA (Aggiorna i pachetti installati) ┃"
Write-Host "┃3. LISTA ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$WINGET = Read-Host " "
switch ($WINGET) {
"0" {
App
}
"" {
App
}
"1" {
Clear-Host
.\SYSCOM\Program\WINSTALL.PS1
Pause
Start-Sleep -Seconds 1
WG
}
"2" {
Clear-Host
winget upgrade --all --include-unknown
Pause
Start-Sleep -Seconds 1
WG
}
"3" {
WGLIST
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function WGLIST {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\WINGET_LIST"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. Lista (Crea una lista dei pachetti installati) ┃"
Write-Host "┃2. Esporta (Esporta elenco dei pacchetti installati ┃"
Write-Host "┃ da poter reinstallare successivamente) ┃"
Write-Host "┃3. Importa (Installa tutti i pachetti da un file ┃"
Write-Host "┃ esportato in precedenza) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$WGLIST = Read-Host " "
switch ($WGLIST) {
"0" {
WG
}
"" {
WG
}
"1" {
Clear-Host
.\SYSCOM\Program\WGLIST.PS1
Pause
Start-Sleep -Seconds 1
WGLIST
}
"2" {
Clear-Host
.\SYSCOM\Program\WGEXP.PS1
Pause
Start-Sleep -Seconds 1
WGLIST
}
"3" {
Clear-Host
.\SYSCOM\Program\WGIMP.PS1
Pause
Start-Sleep -Seconds 1
WGLIST
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function NET_Menu {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\NET"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. Pulizia (Pulizia del Network) ┃"
Write-Host "┃2. Condivisione Cartelle (Imp. Cartelle Condivise) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$NET = Read-Host " "
switch ($NET) {
"0" {
GestioneReteApplicazioni
}
"" {
GestioneReteApplicazioni
}
"1" {
PULIZIANET
}
"2" {
CARTCONDIVISE
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function PULIZIANET {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\PULIZIA_NET"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCR. COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. NETSH (Pulisce winsock) ┃"
Write-Host "┃2. flushdns (Svuota cache, reimposta registro DNS) ┃"
Write-Host "┃3. net use (Elimina connessioni dischi di rete attive)┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$PULIZIANET = Read-Host " "
switch ($PULIZIANET) {
"0" {
NET_Menu
}
"" {
NET_Menu
}
"1" {
Clear-Host
netsh winsock reset
Pause
Start-Sleep -Seconds 1
PULIZIANET
}
"2" {
Clear-Host
ipconfig /flushdns
Pause
Start-Sleep -Seconds 1
PULIZIANET
}
"3" {
Clear-Host
net use * /delete
Pause
Start-Sleep -Seconds 1
PULIZIANET
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function CARTCONDIVISE {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\CARTCONDIVISE"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. ICiRA (Imp. condivisione in rete avanzate) ┃"
Write-Host "┃2. shrpubw.exe (Creazione guidata cartella condivisa) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$CARTELLECONDIVISE = Read-Host " "
switch ($CARTELLECONDIVISE) {
"1" {
control.exe /name Microsoft.NetworkAndSharingCenter /page Advanced
Start-Sleep -Seconds 1
GestioneReteApplicazioni
}
"2" {
shrpubw.exe
Start-Sleep -Seconds 1
GestioneReteApplicazioni
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function COPILOT {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Get-Content ".\SYSCOM\Banners\COPILOT.ANS"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$CPLT = Read-Host " "
switch ($CPLT) {
"0" {
GestioneReteApplicazioni
}
"" {
GestioneReteApplicazioni
}
"1" {
Start-Process .\SYSCOM\Copilot.url
Start-Sleep -Seconds 1
COPILOT
}
"2" {
Set-Itemproperty -path 'HKCU:\Software\Microsoft\Windows\Shell\Copilot\BingChat' -Name 'IsUserEligible' -value '1'
Start-Sleep -Seconds 1
COPILOT
}
"3" {
Set-Itemproperty -path 'HKCU:\Software\Microsoft\Windows\Shell\Copilot\BingChat' -Name 'IsUserEligible' -value '0'
Start-Sleep -Seconds 1
COPILOT
}
"4" {
Start-Process https://github.com/thebookisclosed/ViVe
Start-Sleep -Seconds 1
COPILOT
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function SicurezzaProtezione {
Clear-Host
Write-Host "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓"
Get-Content ".\SYSCOM\Banners\SECURE"
Write-Host "┃ ┃"
Write-Host "┃ ┃"
Write-Host "┃NUM. COMANDO (DESCRIZIONE COMANDO) ┃"
Write-Host "┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃"
Write-Host "┃1. wscui.cpl (Sicurezza e manutenzione) ┃"
Write-Host "┃2. sigverif.exe (Verifica firma file) ┃"
Write-Host "┃3. MRT.exe (Rimozione malware Microsoft Windows) ┃"
Write-Host "┃4. Backup (Strumentti di Backup ┃"
Write-Host "┃5. Imp. di Criptaggio (Crittografia del dispositivo) ┃"
Write-Host "┃6. Microsoft Defender (Strumenti Microsoft Defender) ┃"
Write-Host "┃7. Punti di Ripristino (Strumenti Punti di Ripristino) ┃"
Write-Host "┃ ┃"
Write-Host "┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫"
Write-Host "┃ Inserisci il numero per l'operazione ┃"
Write-Host "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛"
$SeP = Read-Host " "
switch ($SeP) {
"0" {MAIN}
"" {MAIN}
"1" {
Invoke-Expression "$env:windir\System32\wscui.cpl"
Start-Sleep -Seconds 1
SicurezzaProtezione
}
"2" {
Invoke-Expression "$env:windir\System32\sigverif.exe"
Start-Sleep -Seconds 1
SicurezzaProtezione
}
"3" {
Invoke-Expression "$env:windir\System32\MRT.exe"
Start-Sleep -Seconds 1
SicurezzaProtezione
}
"4" {
Start-Sleep -Seconds 1
BU
SicurezzaProtezione
}
"5" {
control.exe /name Microsoft.DeviceEncryption
Start-Sleep -Seconds 1
SicurezzaProtezione
}
"6" {
Start-Sleep -Seconds 1
MSD
SicurezzaProtezione
}
"7" {
Start-Sleep -Seconds 1
PDR
SicurezzaProtezione
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function Sicurezza {
Clear-Host
Get-Content ""
Write-Host "msconfig.exe (configurazione di sistema)"
$S=Read-Host"Inserisci il numero dell'operazione"
switch ($S) {
"1" {
Invoke-Expression "$env:windir\System32\msconfig.exe"
Start-Sleep -Seconds 1
GestioneReteApplicazioni
}
}
}
function BU {
Clear-Host
Get-Content ".\SYSCOM\Banners\BU"
Write-Host "`n`nNUM. COMANDO (DESCRIZIONE COMANDO)"
Write-Host "------------------------------------------------------------"
Write-Host "┃1. recdisc.exe (Strumento di riparazione del disco) ┃"
Write-Host "0. Esci"
Write-Host ""
$MSD = Read-Host "Inserisci il numero per l'operazione"
switch ($MSD) {
"0" {
SicurezzaProtezione
}
"" {
SicurezzaProtezione
}
"1" {
Invoke-Expression "$env:windir\System32\recdisc.exe"
Start-Sleep -Seconds 1
SicurezzaProtezione
}
Default {
Write-Host "━━━━━━━━━━━━━━━━━━INSERISCI━UN━OPERAZIONE━VALIDA━━━━━━━━━━━━━━━━━" -ForegroundColor Red
}
}
}
function MSD {
Clear-Host
Get-Content ".\SYSCOM\Banners\MSD.ANS"
Write-Host "`n`nNUM. COMANDO (DESCRIZIONE COMANDO)"
Write-Host "------------------------------------------------------------"
Write-Host "1. Scansione MD (c) (Scansione Microsoft Defender, COMPLETA)"
Write-Host "2. Attiva MD (Attiva la protezione massima di Microsoft Defender)"
Write-Host "3. Scansione MD (v) (Scansione Microsoft Defender, VELOCE)"
Write-Host "4. Stato MD (Visualizza lo Stato attuale di Microsoft Defender)"
Write-Host "0. Esci"
Write-Host ""
$MSD = Read-Host "Inserisci il numero per l'operazione"
switch ($MSD) {
"0" {
SicurezzaProtezione
}
"" {
SicurezzaProtezione
}
"1" {
Clear-Host
.\VISO\MDsC.BAT