Delete commit history (containing proprietary code)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
22
scripts/Windows10/01.Disabled services.ps1
Normal file
22
scripts/Windows10/01.Disabled services.ps1
Normal file
@ -0,0 +1,22 @@
|
||||
# Retrieve all respective services (by ID)
|
||||
$GetServiceSplat = @{
|
||||
Name = @(
|
||||
'wuauserv'
|
||||
'W3SVC',
|
||||
'XboxGipSvc',
|
||||
'XblGameSave'
|
||||
)
|
||||
ErrorAction = 'SilentlyContinue'
|
||||
}
|
||||
$Services = Get-Service @GetServiceSplat
|
||||
|
||||
# Stop and disable all respective services
|
||||
ForEach ($Service in $Services) {
|
||||
$SetServiceSplat = @{
|
||||
Name = $Service.Name
|
||||
Status = 'Stopped'
|
||||
StartupType = 'Disabled'
|
||||
ErrorAction = 'SilentlyContinue'
|
||||
}
|
||||
Set-Service @SetServiceSplat
|
||||
}
|
3
scripts/Windows10/02.Disable IPv6.ps1
Normal file
3
scripts/Windows10/02.Disable IPv6.ps1
Normal file
@ -0,0 +1,3 @@
|
||||
$nic = get-netadapter
|
||||
|
||||
Disable-NetAdapterBinding -InterfaceAlias $nic.name -ComponentID ms_tcpip6
|
15
scripts/Windows10/03.Power settings timeout.ps1
Normal file
15
scripts/Windows10/03.Power settings timeout.ps1
Normal file
@ -0,0 +1,15 @@
|
||||
# Disable monitor timeout (plugged in/battery)
|
||||
#& powercfg /change monitor-timeout-ac 0
|
||||
#& powercfg /change monitor-timeout-dc 0
|
||||
|
||||
# Disable disk timeout (plugged in/battery)
|
||||
#& powercfg /change disk-timeout-ac 0
|
||||
#& powercfg /change disk-timeout-dc 0
|
||||
|
||||
# Disable standby timeout (plugged in/battery)
|
||||
& powercfg /change standby-timeout-ac 0
|
||||
& powercfg /change standby-timeout-dc 0
|
||||
|
||||
# Disable hibernate timeout (plugged in/battery)
|
||||
& powercfg /change hibernate-timeout-ac 0
|
||||
& powercfg /change hibernate-timeout-dc 0
|
Reference in New Issue
Block a user