Print script titles to start Python scripts
This commit is contained in:
parent
62b338ac0a
commit
c78172ede0
14 changed files with 33 additions and 19 deletions
|
|
@ -19,6 +19,8 @@ def activate_with_bios():
|
|||
if __name__ == '__main__':
|
||||
try:
|
||||
stay_awake()
|
||||
os.system('cls')
|
||||
print_info('{}: Windows Activation Tool\n'.format(KIT_NAME_FULL))
|
||||
# Bail early if already activated
|
||||
if windows_is_activated():
|
||||
print_info('This system is already activated')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Wizard Kit: Copy user data to the system over the network
|
||||
# Wizard Kit: Backup CBS Logs and prep CBS temp data for deletion
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
@ -16,8 +16,8 @@ if __name__ == '__main__':
|
|||
try:
|
||||
# Prep
|
||||
stay_awake()
|
||||
get_ticket_number()
|
||||
os.system('cls')
|
||||
print_info('{}: CBS Cleanup Tool\n'.format(KIT_NAME_FULL))
|
||||
folder_path = r'{}\Backups'.format(KIT_NAME_SHORT)
|
||||
dest = select_destination(folder_path=folder_path,
|
||||
prompt='Which disk are we using for temp data and backup?')
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ global_vars['LogFile'] = r'{LogDir}\Check Disk.log'.format(**global_vars)
|
|||
if __name__ == '__main__':
|
||||
try:
|
||||
stay_awake()
|
||||
os.system('cls')
|
||||
other_results = {
|
||||
'Error': {
|
||||
'CalledProcessError': 'Unknown Error',
|
||||
|
|
@ -27,9 +28,8 @@ if __name__ == '__main__':
|
|||
{'Name': 'Schedule CHKDSK scan (offline repair)', 'Repair': True}]
|
||||
actions = [{'Name': 'Quit', 'Letter': 'Q'}]
|
||||
selection = menu_select(
|
||||
'Please select action to perform', options, actions)
|
||||
os.system('cls')
|
||||
print_info('Check Disk Tool')
|
||||
'{}: Check Disk Menu\n'.format(KIT_NAME_FULL), options, actions)
|
||||
print_info('{}: Check Disk Menu\n'.format(KIT_NAME_FULL))
|
||||
if selection == 'Q':
|
||||
abort()
|
||||
elif selection.isnumeric():
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ global_vars['LogFile'] = r'{LogDir}\DISM helper tool.log'.format(**global_vars)
|
|||
if __name__ == '__main__':
|
||||
try:
|
||||
stay_awake()
|
||||
os.system('cls')
|
||||
other_results = {
|
||||
'Error': {
|
||||
'CalledProcessError': 'Unknown Error',
|
||||
|
|
@ -27,9 +28,8 @@ if __name__ == '__main__':
|
|||
{'Name': 'Restore Health', 'Repair': True}]
|
||||
actions = [{'Name': 'Quit', 'Letter': 'Q'}]
|
||||
selection = menu_select(
|
||||
'Please select action to perform', options, actions)
|
||||
os.system('cls')
|
||||
print_info('DISM helper tool')
|
||||
'{}: DISM Menu\n'.format(KIT_NAME_FULL), options, actions)
|
||||
print_info('{}: DISM Menu\n'.format(KIT_NAME_FULL))
|
||||
if selection == 'Q':
|
||||
abort()
|
||||
elif selection.isnumeric():
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ if __name__ == '__main__':
|
|||
try:
|
||||
stay_awake()
|
||||
os.system('cls')
|
||||
print_info('{}: SW Bundle Tool\n'.format(KIT_NAME_FULL))
|
||||
other_results = {
|
||||
'Error': {
|
||||
'CalledProcessError': 'Unknown Error',
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ os.system('title {}: SafeMode Tool'.format(KIT_NAME_FULL))
|
|||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
os.system('cls')
|
||||
print_info('{}: SafeMode Tool\n'.format(KIT_NAME_FULL))
|
||||
if ask('Enable booting to SafeMode (with Networking)?'):
|
||||
# Edit BCD to set safeboot as default
|
||||
cmd = ['bcdedit', '/set', '{default}', 'safeboot', 'network']
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ os.system('title {}: SafeMode Tool'.format(KIT_NAME_FULL))
|
|||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
os.system('cls')
|
||||
print_info('{}: SafeMode Tool\n'.format(KIT_NAME_FULL))
|
||||
if ask('Disable booting to SafeMode?'):
|
||||
# Edit BCD to remove safeboot value
|
||||
for boot in ['{current}', '{default}']:
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ global_vars['LogFile'] = r'{LogDir}\SFC Tool.log'.format(**global_vars)
|
|||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
stay_awake()
|
||||
os.system('cls')
|
||||
print_info('{}: SFC Tool\n'.format(KIT_NAME_FULL))
|
||||
other_results = {
|
||||
'Error': {
|
||||
'CalledProcessError': 'Unknown Error',
|
||||
|
|
@ -20,7 +23,6 @@ if __name__ == '__main__':
|
|||
'Warning': {
|
||||
'GenericRepair': 'Repaired',
|
||||
}}
|
||||
stay_awake()
|
||||
try_and_print(message='SFC scan...',
|
||||
function=run_sfc_scan, other_results=other_results)
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,9 @@ global_vars['LogFile'] = r'{LogDir}\System Checklist.log'.format(**global_vars)
|
|||
if __name__ == '__main__':
|
||||
try:
|
||||
stay_awake()
|
||||
ticket_number = get_ticket_number()
|
||||
os.system('cls')
|
||||
print_info('{}: System Checklist Tool\n'.format(KIT_NAME_FULL))
|
||||
ticket_number = get_ticket_number()
|
||||
other_results = {
|
||||
'Error': {
|
||||
'CalledProcessError': 'Unknown Error',
|
||||
|
|
|
|||
|
|
@ -19,8 +19,9 @@ global_vars['LogFile'] = r'{LogDir}\System Diagnostics.log'.format(
|
|||
if __name__ == '__main__':
|
||||
try:
|
||||
stay_awake()
|
||||
ticket_number = get_ticket_number()
|
||||
os.system('cls')
|
||||
print_info('{}: System Diagnostics Tool\n'.format(KIT_NAME_FULL))
|
||||
ticket_number = get_ticket_number()
|
||||
other_results = {
|
||||
'Error': {
|
||||
'CalledProcessError': 'Unknown Error',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Wizard Kit: Search for product keys in the transfer folder via ProduKey & SW hives
|
||||
# Wizard Kit: Search for product keys in the transfer folder
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
@ -8,12 +8,14 @@ os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
|||
sys.path.append(os.getcwd())
|
||||
from functions.product_keys import *
|
||||
init_global_vars()
|
||||
os.system('title {}: ProductKey Tool'.format(KIT_NAME_FULL))
|
||||
os.system('title {}: Transferred Key Finder'.format(KIT_NAME_FULL))
|
||||
global_vars['LogFile'] = r'{LogDir}\Transferred Keys.log'.format(**global_vars)
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
stay_awake()
|
||||
os.system('cls')
|
||||
print_info('{}: Transferred Key Finder\n'.format(KIT_NAME_FULL))
|
||||
try_and_print(message='Searching for keys...',
|
||||
function=list_clientdir_keys, print_return=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -12,13 +12,12 @@ os.system('title {}: Kit Update Tool'.format(KIT_NAME_FULL))
|
|||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
os.system('cls')
|
||||
print_info('{}: Kit Update Tool\n'.format(KIT_NAME_FULL))
|
||||
other_results = {
|
||||
'Error': {
|
||||
'CalledProcessError': 'Unknown Error',
|
||||
}}
|
||||
stay_awake()
|
||||
os.system('cls')
|
||||
print_info('Starting {} Full Update\n'.format(KIT_NAME_FULL))
|
||||
|
||||
## Prep ##
|
||||
update_sdio = ask('Update SDI Origin?')
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ if __name__ == '__main__':
|
|||
try:
|
||||
stay_awake()
|
||||
os.system('cls')
|
||||
print_info('{}: User Checklist\n'.format(KIT_NAME_FULL))
|
||||
other_results = {
|
||||
'Warning': {
|
||||
'NotInstalledError': 'Not installed',
|
||||
|
|
|
|||
|
|
@ -9,15 +9,16 @@ sys.path.append(os.getcwd())
|
|||
from functions.data import *
|
||||
from functions.repairs import *
|
||||
init_global_vars()
|
||||
os.system('title {}: Data 1'.format(KIT_NAME_FULL))
|
||||
global_vars['LogFile'] = r'{LogDir}\Data 1.log'.format(**global_vars)
|
||||
os.system('title {}: User Data Transfer Tool'.format(KIT_NAME_FULL))
|
||||
global_vars['LogFile'] = r'{LogDir}\User Data Transfer.log'.format(**global_vars)
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
# Prep
|
||||
stay_awake()
|
||||
ticket_number = get_ticket_number()
|
||||
os.system('cls')
|
||||
print_info('{}: User Data Transfer Tool\n'.format(KIT_NAME_FULL))
|
||||
ticket_number = get_ticket_number()
|
||||
folder_path = r'{}\Transfer'.format(KIT_NAME_SHORT)
|
||||
dest = select_destination(folder_path=folder_path,
|
||||
prompt='Which disk are we transferring to?')
|
||||
|
|
|
|||
Loading…
Reference in a new issue