Skip to content

Commit

Permalink
hotplug.dll (Rimozione sicura dellhardware) Va nella parte HARDWARE D…
Browse files Browse the repository at this point in the history
…I DSK_SO
  • Loading branch information
VittoriaAlata committed Aug 24, 2024
1 parent 7436773 commit 806609c
Show file tree
Hide file tree
Showing 44 changed files with 202 additions and 107 deletions.
Binary file added .SYSCOM.PS1.swp
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/syscom.metadata.v8.bin
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/syscom.projects.v8.bin
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/syscom.strings.v8.bin
Binary file not shown.
Binary file modified .vs/SYSCOM/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/SYSCOM/v17/.futdcache.v2
Binary file not shown.
Binary file modified .vs/SYSCOM/v17/.suo
Binary file not shown.
84 changes: 58 additions & 26 deletions .vs/SYSCOM/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,33 @@
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\pierl\\Desktop\\SYSCOM\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\so.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:so.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\syscom.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:syscom.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\netapp.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:netapp.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\commands\\dism.ps1||{3B902123-F8A7-4915-9F01-361F908088D0}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:commands\\dism.ps1||{3B902123-F8A7-4915-9F01-361F908088D0}"
},
{
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\commands\\sfc.cmd||{3B902123-F8A7-4915-9F01-361F908088D0}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:commands\\sfc.cmd||{3B902123-F8A7-4915-9F01-361F908088D0}"
},
{
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\dskso.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:dskso.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\dsk.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:dsk.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\netapp.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:netapp.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\so.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:so.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|c:\\users\\pierl\\desktop\\syscom\\dsk.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C6B09098-C4A7-462F-B240-E9C58BC84A90}|SYSCOM.csproj|solutionrelative:dsk.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
Expand All @@ -30,11 +38,11 @@
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 4,
"SelectedChildIndex": 2,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"DocumentIndex": 5,
"Title": "NETAPP.cs",
"DocumentMoniker": "C:\\Users\\pierl\\Desktop\\SYSCOM\\NETAPP.cs",
"RelativeDocumentMoniker": "NETAPP.cs",
Expand All @@ -43,59 +51,83 @@
"ViewState": "AQIAABsAAAAAAAAAAAAAACUAAACEAQAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-04T17:26:02.256Z",
"IsPinned": true,
"EditorCaption": ""
"IsPinned": true
},
{
"$type": "Document",
"DocumentIndex": 2,
"DocumentIndex": 4,
"Title": "DSKSO.cs",
"DocumentMoniker": "C:\\Users\\pierl\\Desktop\\SYSCOM\\DSKSO.cs",
"RelativeDocumentMoniker": "DSKSO.cs",
"ToolTip": "C:\\Users\\pierl\\Desktop\\SYSCOM\\DSKSO.cs",
"RelativeToolTip": "DSKSO.cs",
"ViewState": "AQIAADwAAAAAAAAAAAAQwFUAAAABAAAA",
"ViewState": "AQIAACgAAAAAAAAAAAAuwDwAAAAVAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-06T11:05:43.901Z",
"IsPinned": true
},
{
"$type": "Document",
"DocumentIndex": 4,
"DocumentIndex": 0,
"Title": "SO.cs",
"DocumentMoniker": "C:\\Users\\pierl\\Desktop\\SYSCOM\\SO.cs",
"RelativeDocumentMoniker": "SO.cs",
"ToolTip": "C:\\Users\\pierl\\Desktop\\SYSCOM\\SO.cs",
"RelativeToolTip": "SO.cs",
"ViewState": "AQIAAB0AAAAAAAAAAAAQwC0AAAAAAAAA",
"ViewState": "AQIAADYAAAAAAAAAAAAqwEsAAAANAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-06T13:40:12.349Z",
"IsPinned": true
"IsPinned": true,
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "DISM.PS1",
"DocumentMoniker": "C:\\Users\\pierl\\Desktop\\SYSCOM\\COMMANDS\\DISM.PS1",
"RelativeDocumentMoniker": "COMMANDS\\DISM.PS1",
"ToolTip": "C:\\Users\\pierl\\Desktop\\SYSCOM\\COMMANDS\\DISM.PS1",
"RelativeToolTip": "COMMANDS\\DISM.PS1",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2024-08-23T20:16:03.131Z"
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "DSK.cs",
"DocumentMoniker": "C:\\Users\\pierl\\Desktop\\SYSCOM\\DSK.cs",
"RelativeDocumentMoniker": "DSK.cs",
"ToolTip": "C:\\Users\\pierl\\Desktop\\SYSCOM\\DSK.cs",
"RelativeToolTip": "DSK.cs",
"ViewState": "AQIAAB0AAAAAAAAAAAAAwCMAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-07T08:36:16.876Z"
"Title": "SFC.CMD",
"DocumentMoniker": "C:\\Users\\pierl\\Desktop\\SYSCOM\\COMMANDS\\SFC.CMD",
"RelativeDocumentMoniker": "COMMANDS\\SFC.CMD",
"ToolTip": "C:\\Users\\pierl\\Desktop\\SYSCOM\\COMMANDS\\SFC.CMD",
"RelativeToolTip": "COMMANDS\\SFC.CMD",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Icon": "00000000-0000-0000-0000-000000000000.000000|iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAG7SURBVDhPzZTNSxtBHEBfPGipJ\u002B2iGFBjzJqu4nda0EO99CaCeBOEQlsotCCUakMO6sWrBz8QlZaWInjxXyjtQbNKwCqYUGObRKIosfFSKTazcXsQQWZXJOqhD4aB37x5cxu4TUzTlEc3xhHwD8bBdMkH18ORyLtOrLOr23YH00XAP2BmMplbWQH/gJl34WELuweHfF5eYz91JB9dim3wz8lf9G8Rfib2\u002BH18TGQ7xnJog1T66rBtMByNkzpMc3qaxdegkc0a7Ozuk9w7kFULtsEmzYNhGHhc5VRVOPG6KzEMQb2myqoF22A4GkOIDOGtH2zHdtiIRBFC8DUYklULtsGyUoWyEgUhBF\u002BWVskaBiVKEW2tjbJqwTZYqhTT0dZKg6ZypyCfWq\u002Bbx4/aiSeTvPIPsb4Z5lc6LV\u002BDy4LnVJY76e3pxFtdxeS7j8x8mKeuxsP49Cxz7z/JOlwVvEitWk1djYeXz55Qr91HVd2yArkEI9\u002B3WA2FGJuYIqivENR1WYFcgk/7eul/8RxdX\u002BHt635GR4ZlBXIJKveK8bU0s7gwz8MHPgoL78oKnH1fb\u002BLgyPnHscdMyJP/j39Wh9oGPXeiTgAAAABJRU5ErkJggg==",
"WhenOpened": "2024-08-23T19:57:43.151Z"
},
{
"$type": "Document",
"DocumentIndex": 0,
"DocumentIndex": 1,
"Title": "SYSCOM.cs",
"DocumentMoniker": "C:\\Users\\pierl\\Desktop\\SYSCOM\\SYSCOM.cs",
"RelativeDocumentMoniker": "SYSCOM.cs",
"ToolTip": "C:\\Users\\pierl\\Desktop\\SYSCOM\\SYSCOM.cs",
"RelativeToolTip": "SYSCOM.cs",
"ViewState": "AQIAAK8AAAAAAAAAAAAlwLoAAAAhAAAA",
"ViewState": "AQIAAJcAAAAAAAAAAAAQwKoAAAAiAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-04T19:18:16.074Z",
"WhenOpened": "2024-07-15T21:53:09.758Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 6,
"Title": "DSK.cs",
"DocumentMoniker": "C:\\Users\\pierl\\Desktop\\SYSCOM\\DSK.cs",
"RelativeDocumentMoniker": "DSK.cs",
"ToolTip": "C:\\Users\\pierl\\Desktop\\SYSCOM\\DSK.cs",
"RelativeToolTip": "DSK.cs",
"ViewState": "AQIAABcAAAAAAAAAAAAAwCMAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-07T08:36:16.876Z"
}
]
}
Expand Down
Binary file added .vs/SYSCOM/v17/TestStore/0/000.testlog
Binary file not shown.
Binary file added .vs/SYSCOM/v17/TestStore/0/testlog.manifest
Binary file not shown.
2 changes: 2 additions & 0 deletions COMMANDS/DISM.PS1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dism online cleanup-image restorehealth Loglevel2
Pause
2 changes: 2 additions & 0 deletions COMMANDS/SFC.CMD
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sfc /scannow
Pause
Binary file added Report20240711-0027.diagsession
Binary file not shown.
42 changes: 40 additions & 2 deletions SO.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.Security.Cryptography;
using Terminal.Gui;

Expand Down Expand Up @@ -33,7 +34,6 @@ public static void Dialog()
Height = Dim.Fill(),
CanFocus = true
};
// frame.MouseClick += GOTOCHIUDI;

var ASCIIART = new Label(
" ______ ______ \r\n /\\ ___\\ /\\ __ \\ \r\n \\ \\___ \\ \\ \\ \\/\\ \\ \r\n \\/\\_____\\ \\ \\_____\\ \r\n \\/_____/ \\/_____/ ")
Expand All @@ -44,7 +44,45 @@ public static void Dialog()
Height = Dim.Fill() - 2,
};

frame.Add(ASCIIART); // Aggiungi il pulsante al frame
var SFC = new Button("SFC (Analizza integrità file di sistema)")
{
X = 5,
Y = 8,
};
SFC.Clicked += GOTOSFC;

void GOTOSFC(object sender, EventArgs e)
{
var SFC = new ProcessStartInfo
{
FileName = "powershell",
Arguments = "Start-Process -Verb RunAs powershell -ArgumentList 'sfc /scannow; Pause'",
UseShellExecute = true
};

Process.Start(SFC);
}

var DISM = new Button("DISM (Manutenzione immagini di sistema)")
{
X = 5,
Y = 10,
};
DISM.Clicked += GOTODISM;

void GOTODISM(object sender, EventArgs e)
{
var DISM = new ProcessStartInfo
{
FileName = "powershell",
Arguments = "Start-Process -Verb RunAs powershell -ArgumentList 'dism online cleanup-image restorehealth Loglevel2; Pause'",
UseShellExecute = true
};

Process.Start(DISM);
}

frame.Add(ASCIIART, SFC, DISM); // Aggiungi il pulsante al frame
SO_DIAG.Add(frame); // Aggiungi il frame al dialogo

Application.Run(SO_DIAG);
Expand Down
Loading

0 comments on commit 806609c

Please sign in to comment.