Some other rough notes appendixed to the last post.....
Here is the text of that blue powershell window shown above in the last image in the last post.
Code:
Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Lernen Sie das neue plattformübergreifende PowerShell kennen – https://aka.ms/pscore6
PS C:\Windows\system32> Set-ExecutionPolicy Unrestricted
Ausführungsrichtlinie ändern
Die Ausführungsrichtlinie trägt zum Schutz vor nicht vertrauenswürdigen Skripts bei. Wenn Sie die Ausführungsrichtlinie
ändern, sind Sie möglicherweise den im Hilfethema "about_Execution_Policies" unter
"https:/go.microsoft.com/fwlink/?LinkID=135170" beschriebenen Sicherheitsrisiken ausgesetzt. Möchten Sie die
Ausführungsrichtlinie ändern?
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe (Standard ist "N"): j
PS C:\Windows\system32> cd 'G:\Temp Opt\GitHub\win10script-master\My ps1 file Folder'
PS G:\Temp Opt\GitHub\win10script-master\My ps1 file Folder> dir
Verzeichnis: G:\Temp Opt\GitHub\win10script-master\My ps1 file Folder
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 17.01.2022 22:35 374784 ctt-toolbox.exe
-a---- 11.01.2022 11:27 15137 Notes for running ps1 files.txt
-a---- 11.01.2022 10:34 2089 ooshutup10.cfg
-a---- 02.11.2021 11:09 1740144 OOSU10.exe
-a---- 17.01.2022 16:10 378880 win10debloat6Dec-31Dec.exe
-a---- 10.01.2022 13:46 130702 win10debloat6Dec-31Dec.ps1
PS G:\Temp Opt\GitHub\win10script-master\My ps1 file Folder> .\win10debloat6Dec-31Dec.ps1
Checking winget...
Winget Already Installed
So to get the GUI up and running from a ps1 text file, these were the 4 lines I actually typed in:
Set-ExecutionPolicy Unrestricted
cd 'G:\Temp Opt\GitHub\win10script-master\My ps1 file Folder'
dir
.\win10debloat6Dec-31Dec.ps1
( the dir was optional, I did not need to do that. I just did that as it was helpful to see what I had at the place I was doing stuff. It helped me check for example that the file win10debloat6Dec-31Dec.ps1 was there – if it had not been there then the final line would not have worked to set off the script and bring up the GUI )
Bookmarks