Actions
Name |
Path |
Arguments |
Working Directory |
Primary |
Play |
olwin.exe |
|
|
True |
Name Change Script
This script requires admin access to function properly
$NewName = $args[0]
if ($NewName.Length -gt 20) {
$NewName = $NewName.Substring(0, 20)
}
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company\Outlaws"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company\Outlaws\Users"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company\Outlaws\Users\Default User"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company\Outlaws\Users\Default User\Multiplayer"
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company\Outlaws\Users\Default User\Multiplayer" -Name "Network Name" -Value $NewName -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company\Outlaws\Users\Default User\Multiplayer" -Name "Default Game" -Value "Vintage" -Force