Tested on Windows Version 10.0.17755.1
-
Run
cmdas admin -
Install OpenSSH.Client -
dism /online /Add-Capability /CapabilityName:OpenSSH.Client~~~~0.0.1.0
C:\WINDOWS\system32>dism /online /Add-Capability /CapabilityName:OpenSSH.Client~~~~0.0.1.0| <div style=" | |
| width: 150px; | |
| height: 150px; | |
| display: grid; | |
| align-content: center; | |
| justify-content: center; | |
| border: 2px solid dodgerblue;" | |
| @onpointerdown="PointerDown" | |
| @onpointerup="PointerUp"> | |
| @Text |
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\Downloads\HeidiSQL_11.3_64_Portable') > $null | |
| $pathExclusions.Add($userPath + '\.dotnet') > $null |
| # Stop the kiosk service | |
| sudo systemctl stop kiosk | |
| # Remove the kiosk service from startup | |
| sudo systemctl disable kiosk | |
| # Remove the kiosk service | |
| sudo rm -f /etc/systemd/system/kiosk.service | |
| # Reload systemctl daemons |
| #pragma warning disable MA0048 // File name must match type name | |
| #define INTERNAL_NULLABLE_ATTRIBUTES | |
| #if NETSTANDARD2_0 || NETCOREAPP2_0 || NETCOREAPP2_1 || NETCOREAPP2_2 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472 || NET48 | |
| // https://github.com/dotnet/corefx/blob/48363ac826ccf66fbe31a5dcb1dc2aab9a7dd768/src/Common/src/CoreLib/System/Diagnostics/CodeAnalysis/NullableAttributes.cs | |
| // Licensed to the .NET Foundation under one or more agreements. | |
| // The .NET Foundation licenses this file to you under the MIT license. | |
| // See the LICENSE file in the project root for more information. |
| <# | |
| .Synopsis | |
| Packs and deploys a Squirrel.Windows app | |
| .DESCRIPTION | |
| Nuget Pack and Squirrel.Windows Releasify. The parameters taken will then run the --signWithParams flag which signs your executables with the given certificate. | |
| .EXAMPLE | |
| Deploy-SquirrelApp -NuSpec C:\Temp\MyApp.nuspec -OutputDir .\bin\Release\ -ReleaseDir C:\Network\Folder\ -CertificatePath .\Certificate.pfx | |
| #> | |
| function Deploy-SquirrelApp { | |
| [CmdletBinding()] |
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
| $pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null | |
| $pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null |
Parsed from the Roslyn source code using Roslyn.
| Code | Severity | Message |
|---|---|---|
| CS0006 | Error | Metadata file '{0}' could not be found |
| CS0009 | Fatal | Metadata file '{0}' could not be opened -- {1} |
| CS0012 | Error | The type '{0}' is defined in an assembly that is not referenced. You must add a reference to assembly '{1}'. |
| CS0016 | Error | Could not write to output file '{0}' -- '{1}' |
| <# | |
| .Synopsis | |
| Rough PS functions to create new user profiles | |
| .DESCRIPTION | |
| Call the Create-NewProfile function directly to create a new profile | |
| .EXAMPLE | |
| Create-NewProfile -Username 'testUser1' -Password 'testUser1' | |
| .NOTES | |
| Created by: Josh Rickard (@MS_dministrator) and Thom Schumacher (@driberif) |