Release 0.4.27
This commit is contained in:
@@ -236,5 +236,12 @@
|
||||
"name": "Event Viewer - Check for Bluescreens",
|
||||
"description": "This will check for Bluescreen events on your system",
|
||||
"shell": "powershell"
|
||||
},
|
||||
{
|
||||
"filename": "Rename_Computer.ps1",
|
||||
"submittedBy": "https://github.com/silversword411",
|
||||
"name": "Rename Computer",
|
||||
"description": "Rename computer. First parameter will be new PC name. 2nd parameter if yes will auto-reboot machine",
|
||||
"shell": "powershell"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -15,14 +15,14 @@ EXE_DIR = os.path.join(BASE_DIR, "tacticalrmm/private/exe")
|
||||
AUTH_USER_MODEL = "accounts.User"
|
||||
|
||||
# latest release
|
||||
TRMM_VERSION = "0.4.26"
|
||||
TRMM_VERSION = "0.4.27"
|
||||
|
||||
# bump this version everytime vue code is changed
|
||||
# to alert user they need to manually refresh their browser
|
||||
APP_VER = "0.0.122"
|
||||
|
||||
# https://github.com/wh1te909/rmmagent
|
||||
LATEST_AGENT_VER = "1.4.12"
|
||||
LATEST_AGENT_VER = "1.4.13"
|
||||
|
||||
MESH_VER = "0.7.88"
|
||||
|
||||
|
||||
19
scripts/Rename_Computer.ps1
Normal file
19
scripts/Rename_Computer.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
# Chanage the computer name in Windows
|
||||
# v1.0
|
||||
# First Command Parameter will be new computer name
|
||||
# Second Command Parameter if yes will auto-restart computer
|
||||
|
||||
if ($Args.Count -eq 0) {
|
||||
Write-Output "Computer name arg is required"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$param1=$args[0]
|
||||
$ToRestartTypeYes=$args[1]
|
||||
|
||||
Rename-Computer -newname "$param1"
|
||||
|
||||
# Restart the computer for rename to take effect
|
||||
if ($ToRestartTypeYes -eq 'yes') {
|
||||
Restart-Computer -Force
|
||||
}
|
||||
Reference in New Issue
Block a user