mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-04 15:00:09 +00:00
* Docs * Update docs.yaml * Delete docs/LICENCE * Delete docs/README.md * Update module path in go.mod
57 lines
1.2 KiB
Markdown
57 lines
1.2 KiB
Markdown
# Set Up Autologin
|
|
|
|
Last Updated: 2024-08-07
|
|
|
|
|
|
> [!NOTE]
|
|
The Development Documentation is auto generated for every compilation of Winutil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.**
|
|
|
|
|
|
<!-- BEGIN CUSTOM CONTENT -->
|
|
|
|
<!-- END CUSTOM CONTENT -->
|
|
|
|
<details>
|
|
<summary>Preview Code</summary>
|
|
|
|
```json
|
|
{
|
|
"Content": "Set Up Autologin",
|
|
"category": "Fixes",
|
|
"Order": "a040_",
|
|
"panel": "1",
|
|
"Type": "Button",
|
|
"ButtonWidth": "300",
|
|
"link": "https://christitustech.github.io/Winutil/dev/features/Fixes/Autologin"
|
|
}
|
|
```
|
|
|
|
</details>
|
|
|
|
## Function: Invoke-WPFPanelAutologin
|
|
|
|
```powershell
|
|
function Invoke-WPFPanelAutologin {
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
Enables autologin using Sysinternals Autologon.exe
|
|
|
|
#>
|
|
|
|
# Official Microsoft recommendation: https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
|
|
Invoke-WebRequest -Uri "https://live.sysinternals.com/Autologon.exe" -OutFile "$env:temp\autologin.exe"
|
|
cmd /c "$env:temp\autologin.exe" /accepteula
|
|
}
|
|
|
|
```
|
|
|
|
|
|
<!-- BEGIN SECOND CUSTOM CONTENT -->
|
|
|
|
<!-- END SECOND CUSTOM CONTENT -->
|
|
|
|
|
|
[View the JSON file](https://github.com/ChrisTitusTech/Winutil/tree/main/config/feature.json)
|
|
|