initial commit

This commit is contained in:
Yuriy 2024-07-16 01:25:46 -04:00
commit 139062a947
53 changed files with 8731 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Windows-Toolbox.sublime-workspace

BIN
Assets/Preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

77
CompileAndGitPush.ahk Normal file
View File

@ -0,0 +1,77 @@
; ENVIRONMENT
;------------------------------------------------
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
;DetectHiddenWindows, On
#SingleInstance, Force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;SetKeyDelay, 500
CoordMode, ToolTip, Screen
CoordMode, Mouse, Screen
;#NoTrayIcon
; Notes/Extra Info/#Includes
;------------------------------------------------
#Include C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\RadialMenu\My codes\My Global Variables.ahk
Menu, Tray, Icon, %A_ICODir%\git.ico
; VARIABLES
;------------------------------------------------
InputBox, CommitMessage, Commit Message, Input Commit Message ; , Title, Prompt, HIDE, Width, Height, X, Y, Font, Timeout, Default]
if(ErrorLevel)
ExitApp
IniRead, GUIVersion,%A_ScriptDir%\Installs\Misc\Toolbox-Settings.ini, General,Version, %A_Space% ; , Key [, Default]
GUIVersion += 1
IniWrite, %GUIVersion%, %A_ScriptDir%\Installs\Misc\Toolbox-Settings.ini, General,Version
; MAIN SCRIPT
;------------------------------------------------
runwait, "C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in "%A_ScriptDir%\Windows-Toolbox.ahk" /out "%A_ScriptDir%\Windows-Toolbox.exe" /icon "%A_ScriptDir%\Installs\Icons\Windows.ico"
; msgbox
sleep, 1000
; runwait, "C:\Users\ity\Syncthing\Scripts\AutoHotKey\Tools\CommandLineTools\CreateSynchronicity\CreateSynchronicity.exe" /quiet /run "ITToolboxToSMB"
CmdLine = git add .
status := RunCMD(CmdLine, WorkingDir:=A_ScriptDir)
; Msgbox % "status: " status
CmdLine = git commit -m "%CommitMessage%"
status := RunCMD(CmdLine, WorkingDir:=A_ScriptDir)
; Msgbox % "status: " status
CmdLine = git push
status := RunCMD(CmdLine, WorkingDir:=A_ScriptDir)
Oldnotify(status)
; Msgbox % "status: " status
CenterTooltipOnScreen("Waiting 5 seconds before Pulling New changes on SMB Server")
; Tooltip,
sleep, 5000
command = powershell %A_ScriptDir%\Installs\PowerShell\GitPullWMTToolboxOnSMBThroughOlivetin.ps1
try Status := RunCMD(command)
Oldnotify(status)
sleep, 5000
ExitApp
; Functions
;------------------------------------------------

View File

@ -0,0 +1,55 @@
; PowerShell
; https://www.autohotkey.com/boards/viewtopic.php?p=341237#p341237
; msgbox % RunCMD("ipconfig")
RunCMD(CmdLine, WorkingDir:="", Codepage:="CP0", Fn:="RunCMD_Output") { ; RunCMD v0.94
Local ; RunCMD v0.94 by SKAN on D34E/D37C @ autohotkey.com/boards/viewtopic.php?t=74647
Global A_Args ; Based on StdOutToVar.ahk by Sean @ autohotkey.com/board/topic/15455-stdouttovar
Fn := IsFunc(Fn) ? Func(Fn) : 0
, DllCall("CreatePipe", "PtrP",hPipeR:=0, "PtrP",hPipeW:=0, "Ptr",0, "Int",0)
, DllCall("SetHandleInformation", "Ptr",hPipeW, "Int",1, "Int",1)
, DllCall("SetNamedPipeHandleState","Ptr",hPipeR, "UIntP",PIPE_NOWAIT:=1, "Ptr",0, "Ptr",0)
, P8 := (A_PtrSize=8)
, VarSetCapacity(SI, P8 ? 104 : 68, 0) ; STARTUPINFO structure
, NumPut(P8 ? 104 : 68, SI) ; size of STARTUPINFO
, NumPut(STARTF_USESTDHANDLES:=0x100, SI, P8 ? 60 : 44,"UInt") ; dwFlags
, NumPut(hPipeW, SI, P8 ? 88 : 60) ; hStdOutput
, NumPut(hPipeW, SI, P8 ? 96 : 64) ; hStdError
, VarSetCapacity(PI, P8 ? 24 : 16) ; PROCESS_INFORMATION structure
If not DllCall("CreateProcess", "Ptr",0, "Str",CmdLine, "Ptr",0, "Int",0, "Int",True
,"Int",0x08000000 | DllCall("GetPriorityClass", "Ptr",-1, "UInt"), "Int",0
,"Ptr",WorkingDir ? &WorkingDir : 0, "Ptr",&SI, "Ptr",&PI)
Return Format("{1:}", "", ErrorLevel := -1
,DllCall("CloseHandle", "Ptr",hPipeW), DllCall("CloseHandle", "Ptr",hPipeR))
DllCall("CloseHandle", "Ptr",hPipeW)
, A_Args.RunCMD := { "PID": NumGet(PI, P8? 16 : 8, "UInt") }
, File := FileOpen(hPipeR, "h", Codepage)
, LineNum := 1, sOutput := ""
While (A_Args.RunCMD.PID + DllCall("Sleep", "Int",0))
and DllCall("PeekNamedPipe", "Ptr",hPipeR, "Ptr",0, "Int",0, "Ptr",0, "Ptr",0, "Ptr",0)
While A_Args.RunCMD.PID and (Line := File.ReadLine())
sOutput .= Fn ? Fn.Call(Line, LineNum++) : Line
A_Args.RunCMD.PID := 0
, hProcess := NumGet(PI, 0)
, hThread := NumGet(PI, A_PtrSize)
, DllCall("GetExitCodeProcess", "Ptr",hProcess, "PtrP",ExitCode:=0)
, DllCall("CloseHandle", "Ptr",hProcess)
, DllCall("CloseHandle", "Ptr",hThread)
, DllCall("CloseHandle", "Ptr",hPipeR)
, ErrorLevel := ExitCode
Return sOutput
}

Binary file not shown.

BIN
Installs/BGInfo/Bginfo.exe Normal file

Binary file not shown.

View File

@ -0,0 +1,5 @@
@echo off
cd
CALL C:\BGInfo\bginfo.exe C:\BGInfo\BGInfo_Template.bgi /timer:0 /nolicprompt

View File

@ -0,0 +1,5 @@
@echo off
cd
CALL bginfo.exe BGInfo_Template.bgi /timer:0 /nolicprompt

Binary file not shown.

View File

@ -0,0 +1,13 @@
@echo off
set "folderPath=\\SMB\depts\Users\%username%"
set "folderPathprivate=\\SMB\depts\Users\%username%\Private"
if not exist "%folderPath%" (
md "%folderPath%"
md "%folderPathprivate%"
rem echo Folder created successfully!
) else (
echo Folder already exists!
)
exit

View File

@ -0,0 +1,16 @@
echo "https://www.stefangordon.com/join-azure-batch-machines-active-directory/"
echo "Searching For Domain Status"
for /f "tokens=2" %%i in ('systeminfo ^| find "Domain"') do (set "DOMAIN=%%i")
if "%DOMAIN%" == "WORKGROUP" (
echo "Joining Domain"
netdom join /d:DOMAINNAME %COMPUTERNAME% /ud:USERNAME /pd:PASSWORD
echo "Rebooting"
shutdown.exe /r /t 00
) else (
echo "Already in Domain"
)
echo "https://michlstechblog.info/blog/windows-join-a-workgroup-or-domain-from-command-line/"

View File

View File

@ -0,0 +1,737 @@
; Please make sure Everything is not running before modifying this file.
[Everything]
window_x=156
window_y=88
window_wide=794
window_high=664
maximized=0
minimized=0
fullscreen=0
ontop=0
bring_into_view=1
alpha=255
match_whole_word=0
match_path=0
match_case=0
match_diacritics=0
match_regex=0
view=0
thumbnail_size=64
thumbnail_fill=0
min_thumbnail_size=32
max_thumbnail_size=256
medium_thumbnail_size=64
large_thumbnail_size=128
extra_large_thumbnail_size=256
thumbnail_load_size=0
thumbnail_overlay_icon=1
shell_max_path=0
allow_multiple_windows=0
allow_multiple_instances=0
run_in_background=1
show_in_taskbar=1
show_tray_icon=1
minimize_to_tray=0
toggle_window_from_tray_icon=0
alternate_row_color=0
show_mouseover=0
check_for_updates_on_startup=0
beta_updates=0
show_highlighted_search_terms=1
text_size=0
hide_empty_search_results=0
clear_selection_on_search=1
show_focus_on_search=0
new_window_key=0
show_window_key=0
toggle_window_key=0
language=0
show_selected_item_in_statusbar=1
statusbar_selected_item_format=
show_size_in_statusbar=0
statusbar_size_format=0
open_folder_command2=
open_file_command2=
open_path_command2=
explore_command2=
explore_path_command2=
window_title_format=
taskbar_notification_title_format=
instance_name=
translucent_selection_rectangle_alpha=70
min_zoom=-6
max_zoom=27
context_menu_type=0
context_menu_shell_extensions=1
auto_include_fixed_volumes=1
auto_include_removable_volumes=0
auto_remove_offline_ntfs_volumes=1
auto_remove_moved_ntfs_volumes=1
auto_include_fixed_refs_volumes=0
auto_include_removable_refs_volumes=0
auto_remove_offline_refs_volumes=1
auto_remove_moved_refs_volumes=1
find_mount_points_on_removable_volumes=0
scan_volume_drive_letters=1
last_export_type=0
max_threads=0
reuse_threads=1
find_subfolders_and_files_max_threads=0
single_parent_context_menu=0
auto_size_1=512
auto_size_2=640
auto_size_3=768
auto_size_aspect_ratio_x=9
auto_size_aspect_ratio_y=7
auto_size_width_only=0
auto_size_path_x=1
auto_size_path_y=2
sticky_vscroll_bottom=1
last_options_page=1
draw_focus_rect=1
date_format=
time_format=
listview_item_high=0
single_click_open=0
underline_icon_titles=0
icons_only=0
icon_shell_extensions=1
auto_scroll_repeat_delay=250
auto_scroll_repeat_rate=50
open_many_files_warning_threshold=16
set_foreground_window_attach_thread_input=0
debug=0
debug_log=0
verbose=0
lvm=1
ipc=1
home_match_case=0
home_match_whole_word=0
home_match_path=0
home_match_diacritics=0
home_regex=0
home_search=1
home_filter=0
home_sort=0
home_view=0
home_index=1
allow_multiple_windows_from_tray=0
single_click_tray=1
close_on_execute=0
double_click_path=0
update_display_after_scroll=0
update_display_after_mask=1
auto_scroll_view=0
double_quote_copy_as_path=0
snap=0
snaplen=10
rename_select_filepart_only=0
rename_move_caret_to_selection_end=0
rename_nav=0
search_edit_move_caret_to_selection_end=0
search_edit_drag_accept_files=0
select_search_on_mouse_click=1
focus_search_on_activate=0
reset_vscroll_on_search=1
wrap_focus=0
load_icon_priority=0
load_thumbnail_priority=0
load_fileinfo_priority=0
always_request_all_fileinfo=0
header_high=0
hide_on_close=0
max_hidden_windows=0
winmm=0
menu_escape_amp=1
menu_folders=0
menu_folder_separator=
menu_items_per_column=0
new_inherit=1
full_row_select=0
tray_show_command_line=
dpi=96
ctrl_mouse_wheel_action=1
lvm_scroll=1
allow_open=1
allow_context_menu=1
allow_delete=1
allow_rename=1
allow_cut=1
allow_copy=1
allow_paste=1
allow_drag_drop=1
allow_window_message_filter_dragdrop=0
auto_column_widths=0
hotkey_explorer_path_search=0
hotkey_user_notification_state=0
get_key_name_text=1
paste_new_line_op=0
esc_cancel_action=1
fast_ascii_search=1
match_path_when_search_contains_path_separator=1
allow_literal_operators=0
allow_round_bracket_parenthesis=0
expand_environment_variables=0
search_as_you_type=1
always_update_query_on_search_parameter_change=0
convert_forward_slash_to_backslash=0
match_whole_filename_when_using_wildcards=1
operator_precedence=0
replace_exact_trailing_star_dot_star_with_star=1
allow_exclamation_point_not=1
search_command_prefix=
auto_complete_search_command=1
double_buffer=1
search=
show_number_of_results_with_selection=0
date_descending_first=0
size_descending_first=0
size_format=2
alpha_select=0
tooltips=1
listview_tooltips=1
show_detailed_listview_tooltips=1
rtl_listview_edit=0
force_path_ltr_order=1
force_path_left_align=1
date_time_order=0
date_time_align=1
size_align=3
invert_layout=0
update_layout_on_input_language_change=0
control_shift_action=3
change_search_rtl_reading_action=3
invert_layout_action=3
bookmark_remember_case=1
bookmark_remember_wholeword=1
bookmark_remember_path=1
bookmark_remember_diacritic=1
bookmark_remember_regex=1
bookmark_remember_sort=1
bookmark_remember_view=1
bookmark_remember_filter=1
bookmark_remember_index=1
bookmark_remember_search=1
bookmark_organize_x=0
bookmark_organize_y=0
bookmark_organize_wide=0
bookmark_organize_high=0
exclude_list_enabled=1
exclude_hidden_files_and_folders=0
exclude_system_files_and_folders=0
include_only_files=
exclude_files=
db_location=
db_multi_user_filename=0
db_compress=0
index_size=1
fast_size_sort=1
index_date_created=0
fast_date_created_sort=0
index_date_modified=1
fast_date_modified_sort=1
index_date_accessed=0
fast_date_accessed_sort=0
index_attributes=0
fast_attributes_sort=0
index_folder_size=0
fast_path_sort=1
fast_extension_sort=0
extended_information_cache_monitor=1
db_update_thread_priority=-15
index_recent_changes=1
refs_file_id_extd_directory_info_buffer_size=0
folder_update_thread_mode_background=0
folder_update_rescan_asap=1
monitor_thread_mode_background=1
monitor_retry_delay=30000
monitor_update_delay=1000
monitor_pause=0
usn_record_filter=0xffffffff
cancel_delay=0x000003e8
allow_ntfs_open_file_by_id=1
always_update_folder_recent_change=0
editor_x=0
editor_y=0
editor_wide=0
editor_high=0
editor_maximized=0
file_list_relative_paths=0
rename_x=0
rename_y=0
rename_wide=0
rename_high=0
rename_match_case=0
rename_regex=0
advanced_copy_to_x=0
advanced_copy_to_y=0
advanced_copy_to_wide=0
advanced_copy_to_high=0
advanced_copy_to_match_case=0
advanced_copy_to_regex=0
advanced_move_to_x=0
advanced_move_to_y=0
advanced_move_to_wide=0
advanced_move_to_high=0
advanced_move_to_match_case=0
advanced_move_to_regex=0
advanced_search_x=0
advanced_search_y=0
advanced_search_wide=0
advanced_search_high=0
advanced_search_page_y_offset=0
advanced_search_focus_id=0
advanced_search_warnings=1
max_recv_size=8388608
display_full_path_name=0
size_tiny=10240
size_small=102400
size_medium=1048576
size_large=16777216
size_huge=134217728
themed_toolbar=1
show_copy_name=2
show_copy_path=2
show_copy_full_name=2
show_open_path=2
show_explore=2
show_explore_path=2
copy_path_folder_append_backslash=0
custom_verb01=
custom_verb02=
custom_verb03=
custom_verb04=
custom_verb05=
custom_verb06=
custom_verb07=
custom_verb08=
custom_verb09=
custom_verb10=
custom_verb11=
custom_verb12=
filters_visible=0
filters_wide=128
filters_right_align=1
filters_tab_stop=0
filter=
filter_everything_name=
filter_organize_x=0
filter_organize_y=0
filter_organize_wide=0
filter_organize_high=0
preview_visible=0
preview_x=640
preview_tab_stop=0
preview_mag_filter=0
preview_min_filter=0
preview_fill=0
show_preview_handlers_in_preview_pane=0
preview_load_size=0
preview_context=0x00000000
preview_release_handler_on_clear=0
sort=
sort_ascending=1
always_keep_sort=0
index=0
index_file_list=
index_etp_server=
index_link_type=1
status_bar_visible=1
select_search_on_focus_mode=1
select_search_on_set_mode=2
search_history_enabled=0
run_history_enabled=1
search_history_days_to_keep=90
run_history_days_to_keep=90
search_history_keep_forever=1
run_history_keep_forever=1
search_history_always_suggest=0
search_history_always_suggest_extend_toolbar=0
search_history_visible_count_max=12
search_history_always_suggest_visible_count_max=1
search_history_show_all_max=256
search_history_suggestion_max=256
search_history_show_all_sort=2
search_history_suggestion_sort=1
search_history_show_above=0
search_history_sort=2
search_history_sort_ascending=0
search_history_x=0
search_history_y=0
search_history_wide=0
search_history_high=0
search_history_column_search_wide=208
search_history_column_search_order=0
search_history_column_count_wide=128
search_history_column_count_order=1
search_history_column_date_wide=128
search_history_column_date_order=2
etp_server_enabled=0
etp_server_bindings=
etp_server_port=21
etp_server_username=
etp_server_password=
etp_server_welcome_message=
etp_server_log_file_name=
etp_server_logging_enabled=0
etp_server_log_max_size=4194304
etp_server_log_delta_size=524288
etp_server_allow_file_download=1
ftp_allow_port=1
ftp_check_data_connection_ip=1
http_server_enabled=0
http_server_bindings=
http_title_format=
http_server_port=80
http_server_username=
http_server_password=
http_server_home=
http_server_default_page=
http_server_log_file_name=
http_server_logging_enabled=0
http_server_log_max_size=4194304
http_server_log_delta_size=524288
http_server_allow_file_download=1
http_server_items_per_page=32
http_server_show_drive_labels=0
http_server_strings=
http_server_header=
service_pipe_name=
name_column_pos=0
name_column_width=256
path_column_visible=1
path_column_pos=1
path_column_width=256
size_column_visible=1
size_column_pos=2
size_column_width=96
extension_column_visible=0
extension_column_pos=3
extension_column_width=96
type_column_visible=0
type_column_pos=4
type_column_width=96
last_write_time_column_visible=1
last_write_time_column_pos=5
last_write_time_column_width=153
creation_time_column_visible=0
creation_time_column_pos=6
creation_time_column_width=153
date_accessed_column_visible=0
date_accessed_column_pos=7
date_accessed_column_width=153
attribute_column_visible=0
attribute_column_pos=8
attribute_column_width=70
date_recently_changed_column_visible=0
date_recently_changed_column_pos=9
date_recently_changed_column_width=153
run_count_column_visible=0
run_count_column_pos=10
run_count_column_width=96
date_run_column_visible=0
date_run_column_pos=11
date_run_column_width=153
file_list_filename_column_visible=0
file_list_filename_column_pos=12
file_list_filename_column_width=96
translucent_selection_rectangle_background_color=
translucent_selection_rectangle_border_color=
thumbnail_mouseover_border_color=
preview_background_color=
ntfs_volume_guids="\\\\?\\Volume{7d1ade04-4228-423c-8220-9a8bad9d2764}"
ntfs_volume_paths="C:"
ntfs_volume_roots=""
ntfs_volume_includes=1
ntfs_volume_load_recent_changes=0
ntfs_volume_include_onlys=""
ntfs_volume_monitors=1
refs_volume_guids=
refs_volume_paths=
refs_volume_roots=
refs_volume_includes=
refs_volume_load_recent_changes=
refs_volume_include_onlys=
refs_volume_monitors=
filelists=
filelist_monitor_changes=
folders="W:\\"
folder_monitor_changes=1
folder_buffer_size_list=65536
folder_rescan_if_full_list=0
folder_update_types=2
folder_update_days=0
folder_update_ats=3
folder_update_intervals=6
folder_update_interval_types=1
exclude_folders=
connect_history_hosts=
connect_history_ports=
connect_history_usernames=
connect_history_link_types=
etp_client_rewrite_patterns=
etp_client_rewrite_substitutions=
file_new_search_window_keys=334
file_open_file_list_keys=335
file_close_file_list_keys=
file_close_keys=343,27
file_export_keys=339
file_copy_full_name_to_clipboard_keys=9539
file_copy_path_to_clipboard_keys=
file_set_run_count_keys=
file_create_shortcut_keys=
file_delete_keys=8238
file_delete_permanently_keys=9262
file_edit_keys=
file_open_keys=8205
file_open_selection_and_close_everything_keys=
file_explore_path_keys=
file_open_new_keys=
file_open_path_keys=8461
file_open_with_keys=
file_open_with_default_verb_keys=
file_play_keys=
file_preview_keys=
file_print_keys=
file_print_to_keys=
file_properties_keys=8717
file_read_extended_information_keys=8517
file_rename_keys=8305
file_run_as_keys=
file_exit_keys=337
file_copy_name_to_clipboard_keys=
file_open_selection_and_do_not_close_everything_keys=
file_open_most_run_keys=
file_open_last_run_keys=
file_custom_verb_1_keys=
file_custom_verb_2_keys=
file_custom_verb_3_keys=
file_custom_verb_4_keys=
file_custom_verb_5_keys=
file_custom_verb_6_keys=
file_custom_verb_7_keys=
file_custom_verb_8_keys=
file_custom_verb_9_keys=
file_custom_verb_10_keys=
file_custom_verb_11_keys=
file_custom_verb_12_keys=
indexes_folders_rescan_all_now_keys=
indexes_force_rebuild_keys=
edit_cut_keys=8536
edit_copy_keys=8515,8493
edit_paste_keys=8534,9261
edit_select_all_keys=8513
edit_invert_selection_keys=
edit_copy_to_folder_keys=
edit_move_to_folder_keys=
edit_advanced_advanced_copy_to_folder_keys=
edit_advanced_advanced_move_to_folder_keys=
view_filters_keys=
view_preview_keys=592
view_status_bar_keys=
view_details_keys=1334
view_medium_thumbnails_keys=1331
view_large_thumbnails_keys=1330
view_extra_large_thumbnails_keys=1329
view_increase_thumbnail_size_keys=1467
view_decrease_thumbnail_size_keys=1469
view_window_size_small_keys=561
view_window_size_medium_keys=562
view_window_size_large_keys=563
view_window_size_auto_fit_keys=564
view_zoom_zoom_in_keys=443
view_zoom_zoom_out_keys=445
view_zoom_reset_keys=304,352
view_go_to_back_keys=549,166
view_go_to_forward_keys=551,167
view_go_to_home_keys=548
view_go_to_show_all_history_keys=1352,328
view_sort_by_name_keys=305
view_sort_by_path_keys=306
view_sort_by_size_keys=307
view_sort_by_extension_keys=308
view_sort_by_type_keys=309
view_sort_by_date_modified_keys=310
view_sort_by_date_created_keys=311
view_sort_by_attributes_keys=312
view_sort_by_file_list_filename_keys=
view_sort_by_run_count_keys=
view_sort_by_date_run_keys=
view_sort_by_date_recently_changed_keys=313
view_sort_by_date_accessed_keys=
view_sort_by_ascending_keys=
view_sort_by_descending_keys=
view_refresh_keys=116
view_fullscreen_keys=122
view_toggle_ltrrtl_direction_keys=
view_on_top_never_keys=
view_on_top_always_keys=
view_on_top_while_searching_keys=
search_match_case_keys=329
search_match_whole_word_keys=322
search_match_path_keys=341
search_match_diacritics_keys=333
search_enable_regex_keys=338
search_advanced_search_keys=
search_add_to_filters_keys=
search_organize_filters_keys=1350
bookmarks_add_to_bookmarks_keys=324
bookmarks_organize_bookmarks_keys=1346
tools_options_keys=336
tools_console_keys=448
tools_file_list_editor_keys=
tools_connect_to_etp_server_keys=
tools_disconnect_from_etp_server_keys=
help_everything_help_keys=112
help_search_syntax_keys=
help_regex_syntax_keys=
help_command_line_options_keys=
help_everything_website_keys=
help_check_for_updates_keys=
help_about_everything_keys=368
help_donate_keys=
search_edit_focus_search_edit_keys=326,114,580
search_edit_delete_previous_word_keys=4360
search_edit_auto_complete_search_keys=4384
search_edit_show_search_history_keys=
search_edit_show_all_search_history_keys=4646,4648
result_list_item_up_keys=8230,4134
result_list_item_down_keys=8232,4136
result_list_page_up_keys=8225,4129
result_list_page_down_keys=8226,4130
result_list_start_of_list_keys=8228
result_list_end_of_list_keys=8227
result_list_item_up_extend_keys=9254,5158
result_list_item_down_extend_keys=9256,5160
result_list_page_up_extend_keys=9249,5153
result_list_page_down_extend_keys=9250,5154
result_list_start_of_list_extend_keys=9252
result_list_end_of_list_extend_keys=9251
result_list_focus_up_keys=8486,4390
result_list_focus_down_keys=8488,4392
result_list_focus_page_up_keys=8481,4385
result_list_focus_page_down_keys=8482,4386
result_list_focus_start_of_list_keys=8484
result_list_focus_end_of_list_keys=8483
result_list_focus_up_extend_keys=9510,5414
result_list_focus_down_extend_keys=9512,5416
result_list_focus_page_up_extend_keys=9505,5409
result_list_focus_page_down_extend_keys=9506,5410
result_list_focus_start_of_list_extend_keys=9508
result_list_focus_end_of_list_extend_keys=9507
result_list_focus_result_list_keys=
result_list_focus_highest_run_count_result_keys=
result_list_focus_last_run_result_keys=
result_list_toggle_path_column_keys=
result_list_toggle_size_column_keys=
result_list_toggle_extension_column_keys=
result_list_toggle_type_column_keys=
result_list_toggle_date_modified_column_keys=
result_list_toggle_date_created_column_keys=
result_list_toggle_attributes_column_keys=
result_list_toggle_file_list_filename_column_keys=
result_list_toggle_run_count_column_keys=
result_list_toggle_date_recently_changed_column_keys=
result_list_toggle_date_accessed_column_keys=
result_list_toggle_date_run_column_keys=
result_list_size_all_columns_to_fit_keys=8555
result_list_size_result_list_to_fit_keys=
result_list_context_menu_keys=9337
result_list_scroll_left_or_thumbnail_left_keys=8229
result_list_scroll_right_or_thumbnail_right_keys=8231
result_list_scroll_page_left_or_thumbnail_focus_left_keys=8485
result_list_scroll_page_right_or_thumbnail_focus_right_keys=8487
result_list_left_extend_keys=9253
result_list_right_extend_keys=9255
result_list_focus_left_extend_keys=9509
result_list_focus_right_extend_keys=9511
result_list_select_focus_keys=8224
result_list_toggle_focus_selection_keys=8480
result_list_copy_as_csv_keys=
preview_focus_preview_keys=
result_list_font=
result_list_font_size=
search_edit_font=
search_edit_font_size=
status_bar_font=
status_bar_font_size=
header_font=
header_font_size=
normal_background_color=
normal_foreground_color=
normal_bold=
highlighted_background_color=
highlighted_foreground_color=
highlighted_bold=
current_sort_background_color=
current_sort_foreground_color=
current_sort_bold=
current_sort_highlighted_background_color=
current_sort_highlighted_foreground_color=
current_sort_highlighted_bold=
selected_background_color=
selected_foreground_color=
selected_bold=
selected_highlighted_background_color=
selected_highlighted_foreground_color=
selected_highlighted_bold=
selected_inactive_background_color=
selected_inactive_foreground_color=
selected_inactive_bold=
selected_inactive_highlighted_background_color=
selected_inactive_highlighted_foreground_color=
selected_inactive_highlighted_bold=
drop_target_background_color=
drop_target_foreground_color=
drop_target_bold=
drop_target_highlighted_background_color=
drop_target_highlighted_foreground_color=
drop_target_highlighted_bold=
mouseover_background_color=
mouseover_foreground_color=
mouseover_bold=
mouseover_highlighted_background_color=
mouseover_highlighted_foreground_color=
mouseover_highlighted_bold=
mouseover_current_sort_background_color=
mouseover_current_sort_foreground_color=
mouseover_current_sort_bold=
mouseover_current_sort_highlighted_background_color=
mouseover_current_sort_highlighted_foreground_color=
mouseover_current_sort_highlighted_bold=
alternate_row_background_color=
alternate_row_foreground_color=
alternate_row_bold=
alternate_row_highlighted_background_color=
alternate_row_highlighted_foreground_color=
alternate_row_highlighted_bold=
current_sort_alternate_row_background_color=
current_sort_alternate_row_foreground_color=
current_sort_alternate_row_bold=
current_sort_alternate_row_highlighted_background_color=
current_sort_alternate_row_highlighted_foreground_color=
current_sort_alternate_row_highlighted_bold=
hot_background_color=
hot_foreground_color=
hot_bold=
hot_highlighted_background_color=
hot_highlighted_foreground_color=
hot_highlighted_bold=
selected_hot_background_color=
selected_hot_foreground_color=
selected_hot_bold=
selected_hot_highlighted_background_color=
selected_hot_highlighted_foreground_color=
selected_hot_highlighted_bold=
selected_inactive_hot_background_color=
selected_inactive_hot_foreground_color=
selected_inactive_hot_bold=
selected_inactive_hot_highlighted_background_color=
selected_inactive_hot_highlighted_foreground_color=
selected_inactive_hot_highlighted_bold=
thumbnail_mouseover_background_color=
thumbnail_mouseover_foreground_color=
thumbnail_mouseover_bold=
thumbnail_mouseover_highlighted_background_color=
thumbnail_mouseover_highlighted_foreground_color=
thumbnail_mouseover_highlighted_bold=

BIN
Installs/Icons/Windows.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

BIN
Installs/Icons/ccleaner.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

55
Installs/Lib/RunCMD.ahk Normal file
View File

@ -0,0 +1,55 @@
; PowerShell
; https://www.autohotkey.com/boards/viewtopic.php?p=341237#p341237
; msgbox % RunCMD("ipconfig")
RunCMD(CmdLine, WorkingDir:="", Codepage:="CP0", Fn:="RunCMD_Output") { ; RunCMD v0.94
Local ; RunCMD v0.94 by SKAN on D34E/D37C @ autohotkey.com/boards/viewtopic.php?t=74647
Global A_Args ; Based on StdOutToVar.ahk by Sean @ autohotkey.com/board/topic/15455-stdouttovar
Fn := IsFunc(Fn) ? Func(Fn) : 0
, DllCall("CreatePipe", "PtrP",hPipeR:=0, "PtrP",hPipeW:=0, "Ptr",0, "Int",0)
, DllCall("SetHandleInformation", "Ptr",hPipeW, "Int",1, "Int",1)
, DllCall("SetNamedPipeHandleState","Ptr",hPipeR, "UIntP",PIPE_NOWAIT:=1, "Ptr",0, "Ptr",0)
, P8 := (A_PtrSize=8)
, VarSetCapacity(SI, P8 ? 104 : 68, 0) ; STARTUPINFO structure
, NumPut(P8 ? 104 : 68, SI) ; size of STARTUPINFO
, NumPut(STARTF_USESTDHANDLES:=0x100, SI, P8 ? 60 : 44,"UInt") ; dwFlags
, NumPut(hPipeW, SI, P8 ? 88 : 60) ; hStdOutput
, NumPut(hPipeW, SI, P8 ? 96 : 64) ; hStdError
, VarSetCapacity(PI, P8 ? 24 : 16) ; PROCESS_INFORMATION structure
If not DllCall("CreateProcess", "Ptr",0, "Str",CmdLine, "Ptr",0, "Int",0, "Int",True
,"Int",0x08000000 | DllCall("GetPriorityClass", "Ptr",-1, "UInt"), "Int",0
,"Ptr",WorkingDir ? &WorkingDir : 0, "Ptr",&SI, "Ptr",&PI)
Return Format("{1:}", "", ErrorLevel := -1
,DllCall("CloseHandle", "Ptr",hPipeW), DllCall("CloseHandle", "Ptr",hPipeR))
DllCall("CloseHandle", "Ptr",hPipeW)
, A_Args.RunCMD := { "PID": NumGet(PI, P8? 16 : 8, "UInt") }
, File := FileOpen(hPipeR, "h", Codepage)
, LineNum := 1, sOutput := ""
While (A_Args.RunCMD.PID + DllCall("Sleep", "Int",0))
and DllCall("PeekNamedPipe", "Ptr",hPipeR, "Ptr",0, "Int",0, "Ptr",0, "Ptr",0, "Ptr",0)
While A_Args.RunCMD.PID and (Line := File.ReadLine())
sOutput .= Fn ? Fn.Call(Line, LineNum++) : Line
A_Args.RunCMD.PID := 0
, hProcess := NumGet(PI, 0)
, hThread := NumGet(PI, A_PtrSize)
, DllCall("GetExitCodeProcess", "Ptr",hProcess, "PtrP",ExitCode:=0)
, DllCall("CloseHandle", "Ptr",hProcess)
, DllCall("CloseHandle", "Ptr",hThread)
, DllCall("CloseHandle", "Ptr",hPipeR)
, ErrorLevel := ExitCode
Return sOutput
}

View File

@ -0,0 +1,18 @@
@echo off
SET CHECKFILE="C:\Program Files\Mesh Agent\MeshAgent.exe"
SET INSTALLERPATH="\\smb\Toolbox\Installs\MeshCentral"
SET INSTALLER32="meshagent32-Agent.exe"
SET INSTALLER64="meshagent64-Agent.exe"
SET INSTALLERARGS="-fullinstall"
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
IF EXIST %CHECKFILE% (
echo Already installed. Quitting.
) ELSE (
echo Installing...
if %OS%==32BIT %INSTALLERPATH%\%INSTALLER32% %INSTALLERARGS%
if %OS%==64BIT %INSTALLERPATH%\%INSTALLER64% %INSTALLERARGS%
)

View File

@ -0,0 +1,18 @@
@echo off
SET CHECKFILE="C:\Program Files\Mesh Agent\MeshAgent.exe"
SET INSTALLERPATH="\\smb\Toolbox\Installs\MeshCentral"
SET INSTALLER32="meshagent32-Agent.exe"
SET INSTALLER64="meshagent64-Agent.exe"
SET INSTALLERARGS="-fullinstall"
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
IF EXIST %CHECKFILE% (
echo Already installed. Quitting.
) ELSE (
echo Installing...
if %OS%==32BIT %INSTALLERPATH%\%INSTALLER32% %INSTALLERARGS%
if %OS%==64BIT %INSTALLERPATH%\%INSTALLER64% %INSTALLERARGS%
)

View File

@ -0,0 +1,2 @@
[General]
Version=212

BIN
Installs/OOSU10/OOSU10.exe Normal file

Binary file not shown.

View File

@ -0,0 +1,205 @@
############################################################################
# This file was created with O&O ShutUp10++ V1.9.1431
# and can be imported onto another computer.
#
# Download the application at https://www.oo-software.com/shutup10
# You can then import the file from within the program.
#
# Alternatively you can import it automatically over a command line.
# Simply use the following parameter:
# OOSU10.exe <path to file>
#
# Selecting the Option /quiet ends the app right after the import and the
# user does not get any feedback about the import.
#
# We are always happy to answer any questions you may have!
# © 2015-2022 O&O Software GmbH, Berlin. All rights reserved.
# https://www.oo-software.com/
############################################################################
P001 +
P002 +
P003 +
P004 -
P005 +
P006 +
P008 +
P026 +
P027 +
P028 +
P064 +
P065 +
P066 +
P067 +
P070 +
P069 +
P009 -
P010 -
P015 +
P068 -
P016 -
A001 +
A002 +
A003 +
A004 -
A006 -
A005 +
P007 +
P036 +
P025 +
P033 +
P023 +
P056 +
P057 -
P012 -
P034 -
P013 -
P035 -
P062 -
P063 -
P081 -
P047 -
P019 -
P048 -
P049 -
P020 -
P037 -
P011 -
P038 -
P050 -
P051 -
P018 -
P039 -
P021 -
P040 -
P022 -
P041 -
P014 -
P042 -
P052 -
P053 -
P054 -
P055 -
P029 -
P043 -
P030 -
P044 -
P031 -
P045 -
P032 -
P046 -
P058 -
P059 -
P060 -
P061 -
P024 -
S001 -
S002 -
S003 +
S008 -
E101 +
E115 -
E118 +
E107 -
E111 +
E112 +
E109 -
E121 +
E103 +
E123 +
E124 +
E119 -
E120 -
E122 -
E106 -
E001 +
E002 +
E003 +
E008 +
E007 +
E010 +
E011 +
E012 +
E009 -
E004 -
E005 -
E013 -
E014 -
E006 -
F002 +
F014 +
F015 +
F016 +
F001 +
F003 +
F004 +
F005 +
F007 +
F008 +
F009 +
F006 -
F010 -
F011 -
F012 -
F013 -
Y001 +
Y002 +
Y003 +
Y004 +
Y005 +
Y006 +
Y007 +
C012 +
C002 +
C013 +
C007 +
C008 +
C009 +
C010 +
C011 +
C014 +
L001 +
L003 +
L004 -
L005 -
U001 +
U004 +
U005 +
U006 +
U007 +
W001 +
W011 +
W004 -
W005 -
W010 +
W009 -
P017 +
W006 -
W008 -
M006 +
M011 -
M010 +
O003 -
O001 -
S012 -
S013 -
S014 -
K001 +
K002 +
K005 +
M022 +
M001 +
M004 +
M005 +
M003 +
M012 -
M013 -
M014 -
M015 +
M016 +
M017 +
M018 +
M019 +
M020 +
M023 +
N001 -

View File

@ -0,0 +1,11 @@
<Configuration>
<Add OfficeClientEdition="64">
<Product ID="O365BusinessRetail">
<Language ID="en-us" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Grove" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="skypeforbusiness" />
</Product>
</Add>
</Configuration>

View File

@ -0,0 +1,165 @@
# Cleans up default start menu and taskbar (some settings require Windows Pro)
function Install-PSModule {
param(
[Parameter(Position = 0, Mandatory = $true)]
[String[]]$Modules
)
Write-Output "`nChecking for necessary PowerShell modules..."
try {
# Set PowerShell to TLS 1.2 (https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/)
if ([Net.ServicePointManager]::SecurityProtocol -notcontains 'Tls12' -and [Net.ServicePointManager]::SecurityProtocol -notcontains 'Tls13') {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
}
# Install NuGet package provider
if (!(Get-PackageProvider -ListAvailable -Name 'NuGet' -ErrorAction Ignore)) {
Write-Output 'Installing NuGet package provider...'
Install-PackageProvider -Name 'NuGet' -MinimumVersion 2.8.5.201 -Force
}
# Set PSGallery to trusted repository
Register-PSRepository -Default -InstallationPolicy 'Trusted' -ErrorAction Ignore
if (!(Get-PSRepository -Name 'PSGallery' -ErrorAction Ignore).InstallationPolicy -eq 'Trusted') {
Set-PSRepository -Name 'PSGallery' -InstallationPolicy 'Trusted'
}
# Install & import modules
ForEach ($Module in $Modules) {
if (!(Get-Module -ListAvailable -Name $Module -ErrorAction Ignore)) {
Write-Output "`nInstalling $Module module..."
Install-Module -Name $Module -Force
Import-Module $Module
}
}
Write-Output 'Modules installed successfully.'
}
catch {
Write-Warning 'Unable to install modules.'
Write-Warning $_
exit 1
}
}
function Set-LayoutXML {
param (
[Parameter (Mandatory = $true)]
[String]$XMLFile
)
$Path = Split-Path -Path $XMLFile -Parent
if (!(Test-Path -PathType Container $Path)) {
New-Item -ItemType Directory -Path $Path | Out-Null
}
$XML = [XML]@'
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6">
<start:Group Name="">
<start:Tile Size="2x2" Column="2" Row="2" AppUserModelID="Microsoft.ScreenSketch_8wekyb3d8bbwe!App" />
<start:Tile Size="2x2" Column="0" Row="2" AppUserModelID="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" />
<start:Tile Size="2x2" Column="2" Row="0" AppUserModelID="Microsoft.WindowsStore_8wekyb3d8bbwe!App" />
<start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App" />
<start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" />
<start:Tile Size="2x2" Column="4" Row="2" AppUserModelID="MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe!App" />
</start:Group>
<start:Group Name="Office">
<start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Excel.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\PowerPoint.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Word.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="2" DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Teams.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="0" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Outlook.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="2" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" />
</start:Group>
</defaultlayout:StartLayout>
</StartLayoutCollection>
</DefaultLayoutOverride>
</LayoutModificationTemplate>
'@
$XML.Save("$XMLFile")
}
# Variables
$Modules = @('PolicyFileEditor')
$ComputerPolicyFile = ($env:SystemRoot + '\System32\GroupPolicy\Machine\registry.pol')
$UserPolicyFile = ($env:SystemRoot + '\System32\GroupPolicy\User\registry.pol')
$WinVer = Get-WmiObject win32_operatingsystem
Set-Location -Path $env:SystemRoot
# Define policies
$ComputerPolicies = @(
[PSCustomObject]@{Key = 'Software\Microsoft\Windows\CurrentVersion\Communications'; ValueName = 'ConfigureChatAutoInstall'; Data = '0'; Type = 'Dword' } # Disable Teams (personal) auto install (W11)
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\Windows Chat'; ValueName = 'ChatIcon'; Data = '2'; Type = 'Dword' } # Hide Chat icon by default (W11)
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\Windows Search'; ValueName = 'AllowCortana'; Data = '0'; Type = 'Dword' } # Disable Cortana
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\Windows Feeds'; ValueName = 'EnableFeeds'; Data = '0'; Type = 'Dword' } # Disable news/interests on taskbar
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\Windows Search'; ValueName = 'DisableWebSearch'; Data = '1'; Type = 'Dword' } # Disable web search in Start
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\Windows Search'; ValueName = 'AllowCloudSearch'; Data = '0'; Type = 'Dword' } # Disable web search in Start
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\CloudContent'; ValueName = 'DisableCloudOptimizedContent'; Data = '1'; Type = 'Dword' } # Disable cloud consumer content
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\CloudContent'; ValueName = 'DisableConsumerAccountStateContent'; Data = '1'; Type = 'Dword' } # Disable cloud consumer content
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\CloudContent'; ValueName = 'DisableWindowsConsumerFeatures'; Data = '1'; Type = 'Dword' } # Disable Consumer Experiences
)
$UserPolicies = @(
[PSCustomObject]@{Key = 'Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'; ValueName = 'TaskbarMn'; Data = '0'; Type = 'Dword' } # Disable Chat Icon
[PSCustomObject]@{Key = 'Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'; ValueName = 'HideSCAMeetNow'; Data = '1'; Type = 'Dword' } # Disable Meet Now icon (W10)
[PSCustomObject]@{Key = 'Software\Microsoft\Windows\CurrentVersion\Search'; ValueName = 'SearchboxTaskbarMode'; Data = '0'; Type = 'Dword' } # Set Search in taskbar, 1 = icon only, 0 = OFF
[PSCustomObject]@{Key = 'Software\Policies\Microsoft\Windows\CloudContent'; ValueName = 'DisableWindowsSpotlightFeatures'; Data = '1'; Type = 'Dword' } # Disable Windows Spotlight
)
# Set group policies
Install-PSModule $Modules
try {
Write-Output 'Setting group policies...'
$ComputerPolicies | Set-PolicyFileEntry -Path $ComputerPolicyFile -ErrorAction Stop
$UserPolicies | Set-PolicyFileEntry -Path $UserPolicyFile -ErrorAction Stop
gpupdate /force /wait:0 | Out-Null
Write-Output 'Group policies set.'
}
catch {
Write-Warning 'Unable to apply group policies.'
Write-Output $_
}
# Cleanup start menu & taskbar
try {
if ($WinVer.Caption -like '*Windows 11*') {
# Reset existing start menu layouts
$Layout = 'AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState'
Get-ChildItem 'C:\Users' | ForEach-Object { Remove-Item "C:\Users\$($_.Name)\$Layout" -Recurse -Force -ErrorAction Ignore }
# Remove chat & widget icons (current user)
$Path = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
$Settings = @(
[PSCustomObject]@{ Name = 'TaskbarMn'; Value = 0; PropertyType = 'DWORD'; } # Disable Chat Icon
[PSCustomObject]@{ Name = 'TaskbarDa'; Value = 0; PropertyType = 'DWORD'; } # Disable Widget Icon
)
if (!(Test-Path $Path)) { New-Item -Path $Path -Force | Out-Null }
$Settings | New-ItemProperty -Path $Path -Force | Out-Null
}
elseif ($WinVer.Caption -like '*Windows 10*') {
$LayoutModification = 'C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml'
Set-LayoutXML -XMLFile $LayoutModification
New-PSDrive -PSProvider 'Registry' -Name 'HKU' -Root 'HKEY_USERS' | Out-Null
$SubKeys = Get-ChildItem -Path 'HKU:' | Where-Object { $_.PSChildName -match '^S-\d-(?:\d+-){1,14}\d+$' } | Select-Object -ExpandProperty PSChildName
foreach ($SubKey in $SubKeys) {
$Path = "HKU:\$SubKey\SOFTWARE\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount"
if (Test-Path -Path $Path) { Remove-Item -Path $Path -Force -Recurse }
}
Remove-PSDrive -Name 'HKU'
}
# Restart Explorer
if ($env:USERNAME -ne 'defaultuser0') { Stop-Process -Name explorer -Force }
}
catch {
Write-Warning 'Unable to complete start menu & taskbar cleanup tasks.'
Write-Output $_
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
Invoke-RestMethod -Method "Post" -Uri "https://controls.wmpco.biz/api/StartAction" -Body '{"actionName": "Git Pull WMT Toolbox Git Repo on SMB"}'

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
$Argument=$args[0]
Write-Host "Passed Arguments: $Argument"
Rename-Computer -NewName "$Argument" -DomainCredential ity

View File

@ -0,0 +1,34 @@
# Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
# $IP=$args[0]
# Write-Host "Passed Arguments: $Argument"
# $IP = Read-Host -Prompt 'Input IP Address 206.210.XX.XX'
$IP=$args[0]
Write-Host "Passed Arguments: $Argument"
# $IP = "206.210." + $Address
$MaskBits = 20
$Gateway = "206.210.40.1"
$Dns1 = "206.210.36.54"
$Dns2 = "206.210.41.1"
$IPType = "IPv4"
# Retrieve the network adapter that you want to configure
$adapter = Get-NetAdapter | ? {$_.Status -eq "up"}
# Remove any existing IP, gateway from our ipv4 adapter
If (($adapter | Get-NetIPConfiguration).IPv4Address.IPAddress) {
$adapter | Remove-NetIPAddress -AddressFamily $IPType -Confirm:$false
}
If (($adapter | Get-NetIPConfiguration).Ipv4DefaultGateway) {
$adapter | Remove-NetRoute -AddressFamily $IPType -Confirm:$false
}
# Configure the IP address and default gateway
$adapter | New-NetIPAddress `
-AddressFamily $IPType `
-IPAddress $IP `
-PrefixLength $MaskBits `
-DefaultGateway $Gateway
# Configure the DNS client server IP addresses
$adapter | Set-DnsClientServerAddress -ServerAddresses $DNS1, $DNS2

View File

@ -0,0 +1,8 @@
# Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n=allowGlobalConfirmation
# choco feature enable -n useFipsCompliantChecksums
choco upgrade all
choco install pswindowsupdate
# Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d -Confirm:$false
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll
Get-WuInstall -AcceptAll -IgnoreReboot

View File

@ -0,0 +1 @@
choco upgrade all -y

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
@echo off
shutdown /r /f /t 0

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

View File

@ -0,0 +1,47 @@
; ENVIRONMENT
;------------------------------------------------
#Requires AutoHotkey v1.0
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
;DetectHiddenWindows, On
#SingleInstance, Force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;SetKeyDelay, 500
CoordMode, ToolTip, Screen
CoordMode, Mouse, Screen
;#NoTrayIcon
; Notes/Extra Info/#Includes
;------------------------------------------------
; #Include C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\RadialMenu\My codes\My Global Variables.ahk
;Menu, Tray, Icon, %A_ICODir%\ICONAME
; VARIABLES
;------------------------------------------------
; MAIN SCRIPT
;------------------------------------------------
run %comspec% /k shutdown /r /f /t 0
; Functions
;------------------------------------------------
; Misc
;------------------------------------------------
; Escape::ExitApp

Binary file not shown.

View File

@ -0,0 +1,50 @@
; ENVIRONMENT
;------------------------------------------------
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
;DetectHiddenWindows, On
#SingleInstance, Force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;SetKeyDelay, 500
CoordMode, ToolTip, Screen
CoordMode, Mouse, Screen
;#NoTrayIcon
; Notes/Extra Info/#Includes
;------------------------------------------------
; #Include C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\RadialMenu\My codes\My Global Variables.ahk
;Menu, Tray, Icon, %A_ICODir%\ICONAME
; VARIABLES
;------------------------------------------------
FileCreateDir, C:\Users\%A_Username%\Documents\ShareX
FileCopyDir, %A_ScriptDir%\ShareX, C:\Users\%A_Username%\Documents\ShareX, 1
sleep, 1000
FileCopy, %A_ScriptDir%\ShareX\*, C:\Users\%A_Username%\Documents\ShareX\*, 1
msgbox
; MAIN SCRIPT
;------------------------------------------------
; Functions
;------------------------------------------------
; Misc
;------------------------------------------------
; Escape::ExitApp

BIN
Installs/ShareX/ShareX.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -0,0 +1,841 @@
{
"DefaultTaskSettings": {
"Description": "",
"Job": "None",
"UseDefaultAfterCaptureJob": true,
"AfterCaptureJob": "CopyImageToClipboard, SaveImageToFile",
"UseDefaultAfterUploadJob": true,
"AfterUploadJob": "CopyURLToClipboard",
"UseDefaultDestinations": true,
"ImageDestination": "Imgur",
"ImageFileDestination": "Dropbox",
"TextDestination": "Pastebin",
"TextFileDestination": "Dropbox",
"FileDestination": "Dropbox",
"URLShortenerDestination": "BITLY",
"URLSharingServiceDestination": "Twitter",
"OverrideFTP": false,
"FTPIndex": 0,
"OverrideCustomUploader": false,
"CustomUploaderIndex": 0,
"OverrideScreenshotsFolder": false,
"ScreenshotsFolder": "",
"UseDefaultGeneralSettings": true,
"GeneralSettings": {
"PlaySoundAfterCapture": false,
"PlaySoundAfterUpload": false,
"ShowToastNotificationAfterTaskCompleted": true,
"ToastWindowDuration": 3.0,
"ToastWindowFadeDuration": 1.0,
"ToastWindowPlacement": "BottomRight",
"ToastWindowSize": "400, 300",
"ToastWindowLeftClickAction": "OpenUrl",
"ToastWindowRightClickAction": "CloseNotification",
"ToastWindowMiddleClickAction": "AnnotateImage",
"ToastWindowAutoHide": true,
"UseCustomCaptureSound": false,
"CustomCaptureSoundPath": "",
"UseCustomTaskCompletedSound": false,
"CustomTaskCompletedSoundPath": "",
"UseCustomErrorSound": false,
"CustomErrorSoundPath": "",
"DisableNotifications": false,
"DisableNotificationsOnFullscreen": false,
"PopUpNotification": "ToastNotification"
},
"UseDefaultImageSettings": true,
"ImageSettings": {
"ImageFormat": "PNG",
"ImagePNGBitDepth": "Default",
"ImageJPEGQuality": 90,
"ImageGIFQuality": "Default",
"ImageAutoUseJPEG": true,
"ImageAutoUseJPEGSize": 2048,
"ImageAutoJPEGQuality": false,
"FileExistAction": "Ask",
"ImageEffectPresets": [
{
"Name": "",
"Effects": [
{
"$type": "ShareX.ImageEffectsLib.Canvas, ShareX.ImageEffectsLib",
"Margin": "0, 0, 0, 30",
"MarginMode": "AbsoluteSize",
"Color": "Transparent",
"Enabled": true
},
{
"$type": "ShareX.ImageEffectsLib.DrawText, ShareX.ImageEffectsLib",
"Text": "Text watermark",
"Placement": "BottomRight",
"Offset": "0, 0",
"AutoHide": false,
"TextFont": "Arial, 11.25pt",
"TextRenderingMode": "SystemDefault",
"TextColor": "235, 235, 235",
"DrawTextShadow": true,
"TextShadowColor": "Black",
"TextShadowOffset": "-1, -1",
"CornerRadius": 4,
"Padding": "5, 5, 5, 5",
"DrawBorder": true,
"BorderColor": "Black",
"BorderSize": 1,
"DrawBackground": true,
"BackgroundColor": "42, 47, 56",
"UseGradient": true,
"Gradient": {
"Type": "Vertical",
"Colors": [
{
"Color": "68, 120, 194",
"Location": 0.0
},
{
"Color": "13, 58, 122",
"Location": 50.0
},
{
"Color": "6, 36, 78",
"Location": 50.0
},
{
"Color": "23, 89, 174",
"Location": 100.0
}
]
},
"Enabled": true
}
]
}
],
"SelectedImageEffectPreset": 0,
"ShowImageEffectsWindowAfterCapture": false,
"ImageEffectOnlyRegionCapture": false,
"ThumbnailWidth": 200,
"ThumbnailHeight": 0,
"ThumbnailName": "-thumbnail",
"ThumbnailCheckSize": false
},
"UseDefaultCaptureSettings": true,
"CaptureSettings": {
"ShowCursor": true,
"ScreenshotDelay": 0.0,
"CaptureTransparent": false,
"CaptureShadow": true,
"CaptureShadowOffset": 100,
"CaptureClientArea": false,
"CaptureAutoHideTaskbar": false,
"CaptureCustomRegion": "0, 0, 0, 0",
"SurfaceOptions": {
"QuickCrop": true,
"MinimumSize": 5,
"RegionCaptureActionRightClick": "RemoveShapeCancelCapture",
"RegionCaptureActionMiddleClick": "SwapToolType",
"RegionCaptureActionX1Click": "CaptureFullscreen",
"RegionCaptureActionX2Click": "CaptureActiveMonitor",
"DetectWindows": true,
"DetectControls": true,
"UseDimming": true,
"UseCustomInfoText": false,
"CustomInfoText": "X: $x, Y: $y$nR: $r, G: $g, B: $b$nHex: $hex",
"SnapSizes": [
{
"Width": 426,
"Height": 240
},
{
"Width": 640,
"Height": 360
},
{
"Width": 854,
"Height": 480
},
{
"Width": 1280,
"Height": 720
},
{
"Width": 1920,
"Height": 1080
}
],
"ShowInfo": true,
"ShowMagnifier": true,
"UseSquareMagnifier": false,
"MagnifierPixelCount": 15,
"MagnifierPixelSize": 10,
"ShowCrosshair": false,
"UseLightResizeNodes": false,
"EnableAnimations": true,
"IsFixedSize": false,
"FixedSize": "250, 250",
"ShowFPS": false,
"FPSLimit": 100,
"MenuIconSize": 0,
"MenuLocked": false,
"RememberMenuState": false,
"MenuCollapsed": false,
"MenuPosition": "0, 0",
"InputDelay": 500,
"SwitchToDrawingToolAfterSelection": false,
"SwitchToSelectionToolAfterDrawing": false,
"ActiveMonitorMode": false,
"AnnotationOptions": {
"ImageInterpolationMode": "NearestNeighbor",
"StickerPacks": [
{
"FolderPath": "Stickers\\BlobEmoji",
"Name": "Blob Emoji"
}
],
"SelectedStickerPack": 0,
"RegionCornerRadius": 0,
"BorderColor": "242, 60, 60",
"BorderSize": 4,
"BorderStyle": "Solid",
"FillColor": "0, 0, 0, 0",
"DrawingCornerRadius": 3,
"Shadow": true,
"ShadowColor": "125, 0, 0, 0",
"ShadowOffset": "0, 1",
"LineCenterPointCount": 1,
"ArrowHeadDirection": "End",
"TextOutlineOptions": {
"Font": "Arial",
"Size": 25,
"Color": "White",
"Bold": true,
"Italic": false,
"Underline": false,
"AlignmentHorizontal": "Center",
"AlignmentVertical": "Center",
"Gradient": false,
"Color2": "240, 240, 240",
"GradientMode": "Vertical",
"EnterKeyNewLine": false
},
"TextOutlineBorderColor": "242, 60, 60",
"TextOutlineBorderSize": 5,
"TextOptions": {
"Font": "Arial",
"Size": 18,
"Color": "White",
"Bold": false,
"Italic": false,
"Underline": false,
"AlignmentHorizontal": "Center",
"AlignmentVertical": "Center",
"Gradient": false,
"Color2": "240, 240, 240",
"GradientMode": "Vertical",
"EnterKeyNewLine": false
},
"TextBorderColor": "White",
"TextBorderSize": 0,
"TextFillColor": "242, 60, 60",
"LastImageFilePath": null,
"StepBorderColor": "White",
"StepBorderSize": 0,
"StepFillColor": "242, 60, 60",
"StepFontSize": 18,
"StepType": "Numbers",
"MagnifyStrength": 200,
"StickerSize": 64,
"LastStickerPath": null,
"BlurRadius": 35,
"PixelateSize": 15,
"HighlightColor": "Yellow"
},
"LastRegionTool": "RegionRectangle",
"LastAnnotationTool": "DrawingRectangle",
"LastEditorTool": "DrawingRectangle",
"ImageEditorStartMode": "AutoSize",
"ImageEditorWindowState": {
"Location": "0, 0",
"Size": "0, 0",
"IsMaximized": false
},
"ZoomToFitOnOpen": false,
"EditorAutoCopyImage": false,
"AutoCloseEditorOnTask": false,
"ShowEditorPanTip": true,
"ImageEditorResizeInterpolationMode": "Bicubic",
"EditorNewImageSize": "800, 600",
"EditorNewImageTransparent": false,
"EditorNewImageBackgroundColor": "White",
"EditorCanvasColor": "Transparent",
"ImageEffectPresets": [],
"SelectedImageEffectPreset": 0,
"ColorPickerOptions": {
"RecentColorsSelected": true
},
"ScreenColorPickerInfoText": ""
},
"FFmpegOptions": {
"OverrideCLIPath": false,
"CLIPath": "%MyDocuments%\\ShareX\\Tools\\ffmpeg.exe",
"VideoSource": "GDI grab",
"AudioSource": "None",
"VideoCodec": "libx264",
"AudioCodec": "libvoaacenc",
"UserArgs": "",
"UseCustomCommands": false,
"CustomCommands": "",
"x264_Preset": "ultrafast",
"x264_CRF": 28,
"x264_Use_Bitrate": false,
"x264_Bitrate": 3000,
"VPx_Bitrate": 3000,
"XviD_QScale": 10,
"NVENC_Preset": "llhp",
"NVENC_Bitrate": 3000,
"GIFStatsMode": "full",
"GIFDither": "sierra2_4a",
"GIFBayerScale": 2,
"AMF_Usage": "transcoding",
"AMF_Quality": "speed",
"QSV_Preset": "fast",
"QSV_Bitrate": 3000,
"AAC_Bitrate": 128,
"Opus_Bitrate": 128,
"Vorbis_QScale": 3,
"MP3_QScale": 4
},
"ScreenRecordFPS": 30,
"GIFFPS": 15,
"ScreenRecordShowCursor": true,
"ScreenRecordAutoStart": true,
"ScreenRecordStartDelay": 0.0,
"ScreenRecordFixedDuration": false,
"ScreenRecordDuration": 3.0,
"ScreenRecordTwoPassEncoding": false,
"ScreenRecordAskConfirmationOnAbort": false,
"ScreenRecordTransparentRegion": false,
"ScrollingCaptureOptions": {
"TrimLeftEdge": 0,
"TrimTopEdge": 0,
"TrimRightEdge": 0,
"TrimBottomEdge": 0,
"CombineAdjustmentVertical": 0,
"CombineAdjustmentLastVertical": 0,
"IgnoreLast": 0,
"ScrollMethod": "Automatic",
"StartDelay": 500,
"ScrollDelay": 500,
"MaximumScrollCount": 20,
"StartSelectionAutomatically": true,
"StartCaptureAutomatically": false,
"ScrollTopMethodBeforeCapture": "All",
"AutoDetectScrollEnd": true,
"RemoveDuplicates": true,
"AfterCaptureAutomaticallyCombine": true,
"AutoUpload": false
},
"OCROptions": {
"Language": "en",
"ScaleFactor": 2.0,
"SingleLine": false,
"Silent": false,
"AutoCopy": false,
"ServiceLinks": [
{
"Name": "Google Translate",
"URL": "https://translate.google.com/?sl=auto&tl=en&text={0}&op=translate"
},
{
"Name": "Google Search",
"URL": "https://www.google.com/search?q={0}"
},
{
"Name": "Google Images",
"URL": "https://www.google.com/search?q={0}&tbm=isch"
},
{
"Name": "Bing",
"URL": "https://www.bing.com/search?q={0}"
},
{
"Name": "DuckDuckGo",
"URL": "https://duckduckgo.com/?q={0}"
},
{
"Name": "DeepL",
"URL": "https://www.deepl.com/translator#auto/en/{0}"
}
],
"SelectedServiceLink": 0
}
},
"UseDefaultUploadSettings": true,
"UploadSettings": {
"UseCustomTimeZone": false,
"CustomTimeZone": {
"Id": "UTC",
"DisplayName": "UTC",
"StandardName": "UTC",
"DaylightName": "UTC",
"BaseUtcOffset": "00:00:00",
"AdjustmentRules": null,
"SupportsDaylightSavingTime": false
},
"NameFormatPattern": "%y%mo%d_%h%mi%s_%pn",
"NameFormatPatternActiveWindow": "%y%mo%d_%h%mi%s_%pn",
"FileUploadUseNamePattern": false,
"FileUploadReplaceProblematicCharacters": false,
"URLRegexReplace": false,
"URLRegexReplacePattern": "^https?://(.+)$",
"URLRegexReplaceReplacement": "https://$1",
"ClipboardUploadURLContents": false,
"ClipboardUploadShortenURL": false,
"ClipboardUploadShareURL": false,
"ClipboardUploadAutoIndexFolder": false,
"UploaderFilters": []
},
"UseDefaultActions": true,
"ExternalPrograms": [],
"UseDefaultToolsSettings": true,
"ToolsSettings": {
"ScreenColorPickerFormat": "$hex",
"ScreenColorPickerFormatCtrl": "$r255, $g255, $b255",
"ScreenColorPickerInfoText": "RGB: $r255, $g255, $b255$nHex: $hex$nX: $x Y: $y",
"IndexerSettings": {
"Output": "Html",
"SkipHiddenFolders": true,
"SkipHiddenFiles": true,
"MaxDepthLevel": 0,
"ShowSizeInfo": true,
"AddFooter": true,
"IndentationText": "|___",
"AddEmptyLineAfterFolders": false,
"UseCustomCSSFile": false,
"DisplayPath": false,
"DisplayPathLimited": false,
"CustomCSSFilePath": "",
"UseAttribute": true,
"CreateParseableJson": true
},
"ImageCombinerOptions": {
"Orientation": "Vertical",
"Alignment": "LeftOrTop",
"Space": 0,
"AutoFillBackground": false
},
"VideoConverterOptions": {
"InputFilePath": null,
"OutputFolderPath": null,
"OutputFileName": null,
"VideoCodec": "x264",
"VideoQuality": 23,
"UseCustomArguments": false,
"CustomArguments": "",
"AutoOpenFolder": true
},
"VideoThumbnailOptions": {
"DefaultOutputDirectory": null,
"LastVideoPath": null,
"OutputLocation": "DefaultFolder",
"CustomOutputDirectory": "",
"ImageFormat": "PNG",
"ThumbnailCount": 9,
"FilenameSuffix": "_Thumbnail",
"RandomFrame": false,
"UploadThumbnails": true,
"KeepScreenshots": false,
"OpenDirectory": false,
"MaxThumbnailWidth": 512,
"CombineScreenshots": true,
"Padding": 10,
"Spacing": 10,
"ColumnCount": 3,
"AddVideoInfo": true,
"AddTimestamp": true,
"DrawShadow": true,
"DrawBorder": true
},
"BorderlessWindowSettings": {
"RememberWindowTitle": true,
"WindowTitle": null,
"AutoCloseWindow": false,
"ExcludeTaskbarArea": false
}
},
"UseDefaultAdvancedSettings": true,
"AdvancedSettings": {
"CapturePath": null,
"ProcessImagesDuringFileUpload": false,
"ProcessImagesDuringClipboardUpload": false,
"UseAfterCaptureTasksDuringFileUpload": true,
"TextTaskSaveAsFile": true,
"AutoClearClipboard": false,
"RegionCaptureDisableAnnotation": false,
"ImageExtensions": [
"jpg",
"jpeg",
"png",
"gif",
"bmp",
"ico",
"tif",
"tiff"
],
"TextExtensions": [
"txt",
"log",
"nfo",
"c",
"cpp",
"cc",
"cxx",
"h",
"hpp",
"hxx",
"cs",
"vb",
"html",
"htm",
"xhtml",
"xht",
"xml",
"css",
"js",
"php",
"bat",
"java",
"lua",
"py",
"pl",
"cfg",
"ini",
"dart",
"go",
"gohtml"
],
"EarlyCopyURL": false,
"TextFileExtension": "txt",
"TextFormat": "text",
"TextCustom": "",
"TextCustomEncodeInput": true,
"ResultForceHTTPS": false,
"ClipboardContentFormat": "$result",
"BalloonTipContentFormat": "$result",
"OpenURLFormat": "$result",
"AutoShortenURLLength": 0,
"AutoCloseAfterUploadForm": false,
"NamePatternMaxLength": 100,
"NamePatternMaxTitleLength": 50
},
"WatchFolderEnabled": false,
"WatchFolderList": []
},
"FirstTimeRunDate": "2022-12-15T18:08:18.9609642Z",
"FileUploadDefaultDirectory": "",
"NameParserAutoIncrementNumber": 0,
"QuickTaskPresets": [
{
"Name": "Save, Upload, Copy URL",
"AfterCaptureTasks": "SaveImageToFile, UploadImageToHost",
"AfterUploadTasks": "CopyURLToClipboard"
},
{
"Name": "Save, Copy image",
"AfterCaptureTasks": "CopyImageToClipboard, SaveImageToFile",
"AfterUploadTasks": "None"
},
{
"Name": "Save, Copy image file",
"AfterCaptureTasks": "SaveImageToFile, CopyFileToClipboard",
"AfterUploadTasks": "None"
},
{
"Name": "Annotate, Save, Upload, Copy URL",
"AfterCaptureTasks": "AnnotateImage, SaveImageToFile, UploadImageToHost",
"AfterUploadTasks": "CopyURLToClipboard"
},
{
"Name": null,
"AfterCaptureTasks": "None",
"AfterUploadTasks": "None"
},
{
"Name": "Upload, Copy URL",
"AfterCaptureTasks": "UploadImageToHost",
"AfterUploadTasks": "CopyURLToClipboard"
},
{
"Name": "Save",
"AfterCaptureTasks": "SaveImageToFile",
"AfterUploadTasks": "None"
},
{
"Name": "Copy image",
"AfterCaptureTasks": "CopyImageToClipboard",
"AfterUploadTasks": "None"
},
{
"Name": "Annotate",
"AfterCaptureTasks": "AnnotateImage",
"AfterUploadTasks": "None"
}
],
"FirstTimeMinimizeToTray": false,
"TaskListViewColumnWidths": [],
"PreviewSplitterDistance": 335,
"Language": "Automatic",
"ShowTray": true,
"SilentRun": false,
"TrayIconProgressEnabled": true,
"TaskbarProgressEnabled": true,
"UseWhiteShareXIcon": false,
"RememberMainFormPosition": false,
"MainFormPosition": "0, 0",
"RememberMainFormSize": false,
"MainFormSize": "0, 0",
"TrayLeftClickAction": "RectangleRegion",
"TrayLeftDoubleClickAction": "OpenMainWindow",
"TrayMiddleClickAction": "ClipboardUploadWithContentViewer",
"CheckPreReleaseUpdates": false,
"UseDarkTheme": true,
"UseCustomTheme": true,
"Themes": [
{
"Name": "Dark",
"BackgroundColor": "42, 47, 56",
"LightBackgroundColor": "52, 57, 65",
"DarkBackgroundColor": "28, 32, 38",
"TextColor": "235, 235, 235",
"BorderColor": "28, 32, 38",
"CheckerColor": "60, 60, 60",
"CheckerColor2": "50, 50, 50",
"CheckerSize": 15,
"LinkColor": "166, 212, 255",
"MenuHighlightColor": "30, 34, 40",
"MenuHighlightBorderColor": "116, 129, 152",
"MenuBorderColor": "22, 26, 31",
"MenuCheckBackgroundColor": "56, 64, 75",
"MenuFont": "Segoe UI, 9.75pt",
"ContextMenuFont": "Segoe UI, 9.75pt",
"ContextMenuOpacity": 100,
"SeparatorLightColor": "56, 64, 75",
"SeparatorDarkColor": "22, 26, 31"
},
{
"Name": "Light",
"BackgroundColor": "242, 242, 242",
"LightBackgroundColor": "247, 247, 247",
"DarkBackgroundColor": "235, 235, 235",
"TextColor": "69, 69, 69",
"BorderColor": "201, 201, 201",
"CheckerColor": "247, 247, 247",
"CheckerColor2": "235, 235, 235",
"CheckerSize": 15,
"LinkColor": "166, 212, 255",
"MenuHighlightColor": "247, 247, 247",
"MenuHighlightBorderColor": "96, 143, 226",
"MenuBorderColor": "201, 201, 201",
"MenuCheckBackgroundColor": "225, 233, 244",
"MenuFont": "Segoe UI, 9.75pt",
"ContextMenuFont": "Segoe UI, 9.75pt",
"ContextMenuOpacity": 100,
"SeparatorLightColor": "253, 253, 253",
"SeparatorDarkColor": "189, 189, 189"
},
{
"Name": "Nord Dark",
"BackgroundColor": "46, 52, 64",
"LightBackgroundColor": "59, 66, 82",
"DarkBackgroundColor": "38, 44, 57",
"TextColor": "229, 233, 240",
"BorderColor": "30, 38, 54",
"CheckerColor": "46, 52, 64",
"CheckerColor2": "36, 42, 54",
"CheckerSize": 15,
"LinkColor": "136, 192, 208",
"MenuHighlightColor": "36, 42, 54",
"MenuHighlightBorderColor": "24, 30, 42",
"MenuBorderColor": "24, 30, 42",
"MenuCheckBackgroundColor": "59, 66, 82",
"MenuFont": "Segoe UI, 9.75pt",
"ContextMenuFont": "Segoe UI, 9.75pt",
"ContextMenuOpacity": 100,
"SeparatorLightColor": "59, 66, 82",
"SeparatorDarkColor": "30, 38, 54"
},
{
"Name": "Nord Light",
"BackgroundColor": "229, 233, 240",
"LightBackgroundColor": "236, 239, 244",
"DarkBackgroundColor": "216, 222, 233",
"TextColor": "59, 66, 82",
"BorderColor": "207, 216, 233",
"CheckerColor": "229, 233, 240",
"CheckerColor2": "216, 222, 233",
"CheckerSize": 15,
"LinkColor": "106, 162, 178",
"MenuHighlightColor": "236, 239, 244",
"MenuHighlightBorderColor": "207, 216, 233",
"MenuBorderColor": "216, 222, 233",
"MenuCheckBackgroundColor": "229, 233, 240",
"MenuFont": "Segoe UI, 9.75pt",
"ContextMenuFont": "Segoe UI, 9.75pt",
"ContextMenuOpacity": 100,
"SeparatorLightColor": "236, 239, 244",
"SeparatorDarkColor": "207, 216, 233"
},
{
"Name": "Dracula",
"BackgroundColor": "40, 42, 54",
"LightBackgroundColor": "68, 71, 90",
"DarkBackgroundColor": "36, 38, 48",
"TextColor": "248, 248, 242",
"BorderColor": "33, 35, 43",
"CheckerColor": "40, 42, 54",
"CheckerColor2": "36, 38, 48",
"CheckerSize": 15,
"LinkColor": "98, 114, 164",
"MenuHighlightColor": "36, 38, 48",
"MenuHighlightBorderColor": "255, 121, 198",
"MenuBorderColor": "33, 35, 43",
"MenuCheckBackgroundColor": "45, 47, 61",
"MenuFont": "Segoe UI, 9.75pt",
"ContextMenuFont": "Segoe UI, 9.75pt",
"ContextMenuOpacity": 100,
"SeparatorLightColor": "45, 47, 61",
"SeparatorDarkColor": "33, 35, 43"
}
],
"SelectedTheme": 0,
"UseCustomScreenshotsPath": true,
"CustomScreenshotsPath": "%UserProfile%\\Pictures\\Screenshots",
"SaveImageSubFolderPattern": "",
"SaveImageSubFolderPatternWindow": "",
"ShowMenu": true,
"TaskViewMode": "ThumbnailView",
"ShowThumbnailTitle": true,
"ThumbnailTitleLocation": "Top",
"ThumbnailSize": "200, 150",
"ThumbnailClickAction": "Default",
"ShowColumns": true,
"ImagePreview": "Automatic",
"ImagePreviewLocation": "Side",
"AutoCleanupBackupFiles": false,
"AutoCleanupLogFiles": false,
"CleanupKeepFileCount": 10,
"ProxySettings": {
"ProxyMethod": "Manual",
"Host": null,
"Port": 0,
"Username": null,
"Password": null
},
"UploadLimit": 5,
"BufferSizePower": 5,
"ClipboardContentFormats": [],
"MaxUploadFailRetry": 1,
"UseSecondaryUploaders": false,
"SecondaryImageUploaders": [],
"SecondaryTextUploaders": [],
"SecondaryFileUploaders": [],
"HistorySaveTasks": true,
"HistoryCheckURL": false,
"RecentTasks": null,
"RecentTasksSave": true,
"RecentTasksMaxCount": 10,
"RecentTasksShowInMainWindow": true,
"RecentTasksShowInTrayMenu": true,
"RecentTasksTrayMenuMostRecentFirst": false,
"HistorySettings": {
"RememberWindowState": true,
"WindowState": {
"Location": "0, 0",
"Size": "0, 0",
"IsMaximized": false
},
"SplitterDistance": 550,
"RememberSearchText": false,
"SearchText": ""
},
"ImageHistorySettings": {
"RememberWindowState": true,
"WindowState": {
"Location": "0, 0",
"Size": "0, 0",
"IsMaximized": false
},
"ThumbnailSize": "150, 150",
"MaxItemCount": 250,
"FilterMissingFiles": false,
"RememberSearchText": false,
"SearchText": ""
},
"DontShowPrintSettingsDialog": false,
"PrintSettings": {
"Margin": 5,
"AutoRotateImage": true,
"AutoScaleImage": true,
"AllowEnlargeImage": false,
"CenterImage": false,
"TextFont": {
"FontFamily": "Arial",
"Size": 10.0,
"Style": "Regular",
"GraphicsUnit": "Point"
},
"ShowPrintDialog": true,
"DefaultPrinterOverride": ""
},
"AutoCaptureRegion": "0, 0, 0, 0",
"AutoCaptureRepeatTime": 60.0,
"AutoCaptureMinimizeToTray": true,
"AutoCaptureWaitUpload": true,
"ScreenRecordRegion": "0, 0, 0, 0",
"ActionsToolbarList": [
"RectangleRegion",
"PrintScreen",
"ScreenRecorder",
"None",
"FileUpload",
"ClipboardUploadWithContentViewer"
],
"ActionsToolbarRunAtStartup": false,
"ActionsToolbarPosition": "0, 0",
"ActionsToolbarLockPosition": false,
"ActionsToolbarStayTopMost": true,
"RecentColors": [],
"AutoCheckUpdate": false,
"BinaryUnits": false,
"ShowMostRecentTaskFirst": false,
"WorkflowsOnlyShowEdited": false,
"TrayAutoExpandCaptureMenu": true,
"ShowMainWindowTip": true,
"BrowserPath": "",
"SaveSettingsAfterTaskCompleted": false,
"AutoSelectLastCompletedTask": false,
"DevMode": false,
"DisableHotkeys": false,
"DisableHotkeysOnFullscreen": false,
"HotkeyRepeatLimit": 500,
"ShowClipboardContentViewer": true,
"DefaultClipboardCopyImageFillBackground": true,
"UseAlternativeClipboardCopyImage": false,
"UseAlternativeClipboardGetImage": false,
"RotateImageByExifOrientationData": true,
"PNGStripColorSpaceInformation": false,
"DisableUpload": true,
"AcceptInvalidSSLCertificates": false,
"URLEncodeIgnoreEmoji": true,
"ShowUploadWarning": false,
"ShowMultiUploadWarning": true,
"ShowLargeFileSizeWarning": 100,
"CustomUploadersConfigPath": null,
"CustomHotkeysConfigPath": null,
"CustomScreenshotsPath2": null,
"DropSize": 150,
"DropOffset": 5,
"DropAlignment": "BottomRight",
"DropOpacity": 100,
"DropHoverOpacity": 255,
"ApplicationVersion": "14.1.0"
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

View File

@ -0,0 +1,281 @@
{
"DropboxURLType": "Default",
"ImgurAccountType": "Anonymous",
"ImgurDirectLink": true,
"ImgurThumbnailType": "Medium_Thumbnail",
"ImgurUseGIFV": true,
"ImgurOAuth2Info": null,
"ImgurUploadSelectedAlbum": false,
"ImgurSelectedAlbum": null,
"ImgurAlbumList": null,
"ImageShackSettings": {
"Username": null,
"Password": null,
"IsPublic": false,
"Auth_token": null,
"ThumbnailWidth": 256,
"ThumbnailHeight": 0
},
"FlickrOAuthInfo": null,
"FlickrSettings": {
"DirectLink": true,
"Title": null,
"Description": null,
"Tags": null,
"IsPublic": null,
"IsFriend": null,
"IsFamily": null,
"SafetyLevel": null,
"ContentType": null,
"Hidden": null
},
"PhotobucketOAuthInfo": null,
"PhotobucketAccountInfo": null,
"GooglePhotosOAuth2Info": null,
"GooglePhotosUserInfo": null,
"GooglePhotosAlbumID": "",
"GooglePhotosIsPublic": false,
"CheveretoUploader": {
"UploadURL": null,
"APIKey": null
},
"CheveretoDirectURL": true,
"VgymeUserKey": "",
"PastebinSettings": {
"Username": null,
"Password": null,
"Exposure": "Unlisted",
"Expiration": "N",
"Title": null,
"TextFormat": "text",
"UserKey": null,
"RawURL": false
},
"Paste_eeUserKey": "",
"Paste_eeEncryptPaste": false,
"GistOAuth2Info": null,
"GistPublishPublic": false,
"GistRawURL": false,
"GistCustomURL": "",
"UpasteUserKey": "",
"UpasteIsPublic": false,
"HastebinCustomDomain": "https://hastebin.com",
"HastebinSyntaxHighlighting": "hs",
"HastebinUseFileExtension": true,
"OneTimeSecretAPIUsername": "",
"OneTimeSecretAPIKey": "",
"PastieIsPublic": false,
"DropboxOAuth2Info": null,
"DropboxUploadPath": "ShareX/%y/%mo",
"DropboxAutoCreateShareableLink": true,
"DropboxUseDirectLink": false,
"FTPAccountList": [],
"FTPSelectedImage": 0,
"FTPSelectedText": 0,
"FTPSelectedFile": 0,
"OneDriveV2OAuth2Info": null,
"OneDriveV2SelectedFolder": {
"id": "",
"name": "Root folder",
"webUrl": null
},
"OneDriveAutoCreateShareableLink": true,
"GfycatOAuth2Info": null,
"GfycatAccountType": "Anonymous",
"GfycatIsPublic": false,
"GfycatKeepAudio": true,
"GfycatTitle": "ShareX",
"GoogleDriveOAuth2Info": null,
"GoogleDriveIsPublic": true,
"GoogleDriveDirectLink": false,
"GoogleDriveUseFolder": false,
"GoogleDriveFolderID": "",
"GoogleDriveSelectedDrive": {
"id": "",
"name": "My drive"
},
"PuushAPIKey": "",
"SendSpaceAccountType": "Anonymous",
"SendSpaceUsername": "",
"SendSpacePassword": "",
"BoxOAuth2Info": null,
"BoxSelectedFolder": {
"type": "folder",
"id": "0",
"sequence_id": null,
"etag": null,
"name": "Root folder",
"shared_link": null,
"parent": null
},
"BoxShare": true,
"BoxShareAccessLevel": "Open",
"LocalhostrEmail": "",
"LocalhostrPassword": "",
"LocalhostrDirectURL": true,
"LocalhostAccountList": [],
"LocalhostSelectedImages": 0,
"LocalhostSelectedText": 0,
"LocalhostSelectedFiles": 0,
"EmailSmtpServer": "smtp.gmail.com",
"EmailSmtpPort": 587,
"EmailFrom": "...@gmail.com",
"EmailPassword": "",
"EmailRememberLastTo": true,
"EmailLastTo": "",
"EmailDefaultSubject": "Sending email from ShareX",
"EmailDefaultBody": "Screenshot is attached.",
"EmailAutomaticSend": false,
"EmailAutomaticSendTo": "",
"JiraHost": "http://",
"JiraIssuePrefix": "PROJECT-",
"JiraOAuthInfo": null,
"MegaAuthInfos": null,
"MegaParentNodeId": null,
"AmazonS3Settings": {
"AccessKeyID": null,
"SecretAccessKey": null,
"Endpoint": null,
"Region": null,
"UsePathStyle": false,
"Bucket": null,
"ObjectPrefix": "ShareX/%y/%mo",
"UseCustomCNAME": false,
"CustomDomain": null,
"StorageClass": "STANDARD",
"SetPublicACL": true,
"SignedPayload": false,
"RemoveExtensionImage": false,
"RemoveExtensionVideo": false,
"RemoveExtensionText": false
},
"OwnCloudHost": "",
"OwnCloudUsername": "",
"OwnCloudPassword": "",
"OwnCloudPath": "/",
"OwnCloudExpiryTime": 7,
"OwnCloudCreateShare": true,
"OwnCloudDirectLink": false,
"OwnCloud81Compatibility": true,
"OwnCloudUsePreviewLinks": false,
"OwnCloudAppendFileNameToURL": false,
"OwnCloudAutoExpire": false,
"MediaFireUsername": "",
"MediaFirePassword": "",
"MediaFirePath": "",
"MediaFireUseLongLink": false,
"PushbulletSettings": {
"UserAPIKey": "",
"DeviceList": [],
"SelectedDevice": 0
},
"LambdaSettings": {
"UserAPIKey": "",
"UploadURL": "https://lbda.net/"
},
"LithiioSettings": {
"UserAPIKey": ""
},
"TeknikOAuth2Info": null,
"TeknikUploadAPIUrl": "https://api.teknik.io/v1/Upload",
"TeknikPasteAPIUrl": "https://api.teknik.io/v1/Paste",
"TeknikUrlShortenerAPIUrl": "https://api.teknik.io/v1/Shorten",
"TeknikAuthUrl": "https://auth.teknik.io",
"TeknikExpirationUnit": "Never",
"TeknikExpirationLength": 1,
"TeknikEncryption": false,
"TeknikGenerateDeletionKey": false,
"PomfUploader": {
"UploadURL": null,
"ResultURL": null
},
"SulAPIKey": "",
"SeafileAPIURL": "",
"SeafileAuthToken": "",
"SeafileRepoID": "",
"SeafilePath": "/",
"SeafileIsLibraryEncrypted": false,
"SeafileEncryptedLibraryPassword": "",
"SeafileCreateShareableURL": true,
"SeafileCreateShareableURLRaw": false,
"SeafileIgnoreInvalidCert": false,
"SeafileShareDaysToExpire": 0,
"SeafileSharePassword": "",
"SeafileAccInfoEmail": "",
"SeafileAccInfoUsage": "",
"StreamableUsername": "",
"StreamablePassword": "",
"StreamableUseDirectURL": false,
"AzureStorageAccountName": "",
"AzureStorageAccountAccessKey": "",
"AzureStorageContainer": "",
"AzureStorageEnvironment": "blob.core.windows.net",
"AzureStorageCustomDomain": "",
"AzureStorageUploadPath": "",
"B2ApplicationKeyId": "",
"B2ApplicationKey": "",
"B2BucketName": "",
"B2UploadPath": "ShareX/%y/%mo",
"B2UseCustomUrl": false,
"B2CustomUrl": "https://example.com",
"PlikSettings": {
"URL": "",
"APIKey": "",
"IsSecured": false,
"Login": "",
"Password": "",
"Removable": false,
"OneShot": false,
"TTLUnit": 2,
"TTL": 30.0,
"HasComment": false,
"Comment": ""
},
"YouTubeOAuth2Info": null,
"YouTubePrivacyType": "Public",
"YouTubeUseShortenedLink": false,
"YouTubeShowDialog": false,
"GoogleCloudStorageOAuth2Info": null,
"GoogleCloudStorageBucket": "",
"GoogleCloudStorageDomain": "",
"GoogleCloudStorageObjectPrefix": "ShareX/%y/%mo",
"GoogleCloudStorageRemoveExtensionImage": false,
"GoogleCloudStorageRemoveExtensionVideo": false,
"GoogleCloudStorageRemoveExtensionText": false,
"GoogleCloudStorageSetPublicACL": true,
"BitlyOAuth2Info": null,
"BitlyDomain": "",
"YourlsAPIURL": "http://yoursite.com/yourls-api.php",
"YourlsSignature": "",
"YourlsUsername": "",
"YourlsPassword": "",
"AdFlyAPIUID": "",
"AdFlyAPIKEY": "",
"PolrAPIHostname": "",
"PolrAPIKey": "",
"PolrIsSecret": false,
"PolrUseAPIv1": false,
"FirebaseWebAPIKey": "",
"FirebaseDynamicLinkDomain": "",
"FirebaseIsShort": false,
"KuttSettings": {
"Host": "https://kutt.it",
"APIKey": null,
"Password": null,
"Reuse": false,
"Domain": null
},
"ZeroWidthShortenerURL": "https://api.zws.im",
"ZeroWidthShortenerToken": "",
"TwitterOAuthInfoList": [],
"TwitterSelectedAccount": 0,
"TwitterSkipMessageBox": false,
"TwitterDefaultMessage": "",
"CustomUploadersList": [],
"CustomImageUploaderSelected": 0,
"CustomTextUploaderSelected": 0,
"CustomFileUploaderSelected": 0,
"CustomURLShortenerSelected": 0,
"CustomURLSharingServiceSelected": 0,
"ApplicationVersion": "14.1.0"
}

Binary file not shown.

View File

@ -0,0 +1,25 @@
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6">
<start:Group Name="">
<start:Tile Size="2x2" Column="2" Row="2" AppUserModelID="Microsoft.ScreenSketch_8wekyb3d8bbwe!App" />
<start:Tile Size="2x2" Column="0" Row="2" AppUserModelID="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" />
<start:Tile Size="2x2" Column="2" Row="0" AppUserModelID="Microsoft.WindowsStore_8wekyb3d8bbwe!App" />
<start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App" />
<start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" />
<start:Tile Size="2x2" Column="4" Row="2" AppUserModelID="MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe!App" />
</start:Group>
<start:Group Name="Office">
<start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Excel.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\PowerPoint.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Word.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="2" DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Teams.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="0" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Outlook.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="2" Row="2" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" />
</start:Group>
</defaultlayout:StartLayout>
</StartLayoutCollection>
</DefaultLayoutOverride>
</LayoutModificationTemplate>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<CustomTaskbarLayoutCollection PinListPlacement="Replace">
</defaultlayout:TaskbarLayout>
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<taskbar:DesktopApp DesktopApplicationID="Microsoft.Windows.Explorer"/>
<taskbar:DesktopApp DesktopApplicationID="Microsoft.Office.WINWORD.EXE.15" />
<taskbar:UWA AppUserModelID="Microsoft.WindowsTerminal_8wekyb3d8bbwe!App" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\Command Prompt.lnk" />
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>

Binary file not shown.

View File

@ -0,0 +1,30 @@
<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
<name>BusinessWifiName</name>
<SSIDConfig>
<SSID>
<hex>5768697465204D6F757461696E205061706572202D20427573696E657373</hex>
<name>BusinessWifiName</name>
</SSID>
</SSIDConfig>
<connectionType>ESS</connectionType>
<connectionMode>auto</connectionMode>
<MSM>
<security>
<authEncryption>
<authentication>WPA2PSK</authentication>
<encryption>AES</encryption>
<useOneX>false</useOneX>
</authEncryption>
<sharedKey>
<keyType>passPhrase</keyType>
<protected>true</protected>
<keyMaterial>01000000D08C9DDF0115D1118C7A00C04FC297EB010000004911F8BD854C0243BEB7A70E94B1286C000000000200000000001066000000010000200000005E716A171E6C46E237247BE4A1D4E9DC75EDF68818FAEABA138776A4632045BA000000000E800000000200002000000073214D94FC690C6F6FCEB2DD34BD00F5CDC6C631EF4BDD8FA33569DD31D20000000746828C2B455125F9017B1E0EF3CB0AB613E22FACCA5EFEFE77E3DBFA96A945140000000EC1C1D5B929E237B041AFCC1875D32E84581207E450AF1E5D3BE39F90CC747F680AD08899F43B7D324C24750DB47443054B1666E3A972B4C9600B0DA239BAF7A</keyMaterial>
</sharedKey>
</security>
</MSM>
<MacRandomization xmlns="http://www.microsoft.com/networking/WLAN/profile/v3">
<enableRandomization>false</enableRandomization>
<randomizationSeed>4069499145</randomizationSeed>
</MacRandomization>
</WLANProfile>

27
README.md Normal file
View File

@ -0,0 +1,27 @@
Quickly setup Programs/Settings on a fresh Windows installation using Autohotkey + Powershell.
Execute from the SMB server using PowerShell:
````
Start-Process -FilePath "Windows-Toolbox.exe"
````
OR download it locally and execute it using PowerShell:
````
cd C:\Users\${env:USERNAME}\Downloads ; wget -O "Windows Toolbox.exe" https://git.zinchuk.xyz/yuriy/Windows-Toolbox/raw/branch/main/Windows%20Toolbox.exe ; Start-Process 'Windows Toolbox.exe'
````
<p align="center">
<img width="1000" src="https://git.wmpco.biz/yuriy/Windows-Toolbox/raw/branch/main/Assets/Screenshots/Windows-Toolbox.png">
</p>
## Features
- Install Software through Chocolatey
- Dell Command Update, PDF-Xchange, NoMachine, Everything, ShareX, etc.
- Install Software Packages
- Parcview, Office 365, DWGSee
- Set Windows Settings
- Join Domain
- Configure Wifi
- Change Hostname
- Add and Configure VPN
- Install Network Printers Drivers

BIN
Update Windows.lnk Normal file

Binary file not shown.

733
Windows-Toolbox.ahk Normal file
View File

@ -0,0 +1,733 @@
; ENVIRONMENT
;------------------------------------------------
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
;DetectHiddenWindows, On
#SingleInstance, Force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;SetKeyDelay, 500
CoordMode, ToolTip, Screen
CoordMode, Mouse, Screen
;#NoTrayIcon
;Menu, Tray, Icon, ..\Icons\ICONNAMEHERE
; #Include, %A_ScriptDir%\Installs\Autohotkey\RunCMD.ahk
; Notes/Extra Info/#Includes
;------------------------------------------------
StartScriptAsAdmin()
; Set working directory depending on if \\smb is available
; if()
; Msgbox % "A_ScriptName: " A_ScriptName
if(InStr(A_ScriptName, ".ahk")){
SetWorkingDir, %A_ScriptDir%
}
else, {
if(FileExist("\\smb\Toolbox\"))
SetWorkingDir,\\smb\Toolbox\
else,
SetWorkingDir, %A_ScriptDir%
}
; Msgbox % "WorkingDir: " WorkingDir
PSToolbox_FN = PowershellToolbox.ps1
PowerShell_Toolbox_FP = %A_WorkingDir%\Installs\PowerShell\%PSToolbox_FN%
; Upgrade_Chocolatey_FN = Upgrade_Chocolatey.ps1
Upgrade_Chocolatey_FP = %A_WorkingDir%\Installs\PowerShell\Upgrade_Chocolatey.ps1
StaticIP_FN = SetStaticIPAddress.ps1
StaticIP_Destination_FP = %A_WorkingDir%\Installs\PowerShell\%StaticIP_FN%
; RenamePC_FN = RenamePC.ps1
; RenamePC_Destination_FP = %A_WorkingDir%\Installs\PowerShell\%RenamePC_FN%
Argument = %1%
if(Argument = "UpdateWindows"){
Gosub, UpdateWindowsNow
ExitApp
}
; IniRead, %A_ScriptDir%
IniRead, GUIVersion,%A_ScriptDir%\Installs\Misc\Toolbox-Settings.ini, General,Version, %A_Space% ; , Key [, Default]
GUI_Title = Windows Toolbox - v%GUIVersion%
if(FileExist("C:\Windows-Setup.log"))
FileRead, LogText, C:\Windows-Setup.log
else,
LogText = Reminders: `nSet BIOS Primary AC Profile if this is a laptop
; if(!FileExist("Installs"))
; FileCreateDir, %A_WorkingDir%\Installs
; FileInstall, FreshInstallSetup.ps1, %PowerShell_Toolbox_FP%, 1
; FileInstall, SetStaticIPAddress.ps1, %StaticIP_Destination_FP%, 1
; FileInstall, RenamePC.ps1, %RenamePC_Destination_FP%, 1
/*
; add script to boot if ity user and not IT desktop
if(A_Username = "ity" and InStr(A_ScriptFullPath, ".exe")){
if(A_ComputerName != "MGMT-3060" and A_ComputerName != "MGMT-7030"){
FileCreateShortcut, %A_ScriptFullPath%, C:\Users\ity\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\%A_ScriptName%.lnk ; [, WorkingDir, Args, Description, IconFile, ShortcutKey, IconNumber
}
}
*/
; VARIABLES
;------------------------------------------------
; Get logged in user's username for ShareX profile copy
strComputer := "."
strNamespace := "\root\cimv2"
objWMI := ComObjGet("winmgmts:\\" strComputer strNamespace)
colCS := objWMI.ExecQuery("SELECT * FROM Win32_ComputerSystem")
For objSession in colCS
{
; MsgBox, % "User: " objSession.UserName
LoggedInUsername := objSession.UserName
if(InStr(LoggedInUsername, "\")){
LoggedInUsername := StrSplit(LoggedInUsername, "\")[2]
}
}
; Msgbox % "LoggedInUsername: " LoggedInUsername
; read settings from last runs
SettingsFileFP = C:\ProgramData\Windows-Toolbox-Settings.ini
IniRead, LastWindowsUpdate, %SettingsFileFP%, Toolbox, WindowsUpdate, %A_Space%
(LastWindowsUpdate = "Done")?(WindowsUpdateCheckStatus := 0):(WindowsUpdateCheckStatus := 1)
; https://www.autohotkey.com/boards/viewtopic.php?t=70884
; https://ss64.com/nt/syntax-settings.html
; Open up Windows Update and check for updates
; Run ms-settings:windowsupdate-action
; -------------------------------GUI Variables-------------------------------
Margin := 10
VerticalMargin := 20
gui, Margin, %Margin%, 2
ColumnOneXPos := 10
vertical_line_height = 500
ColumnOneHeaderWidth := 200
ColumnTwoHeaderWidth := 200
ColumnThreeHeaderWidth := 315
ColumnFourHeaderWidth := 315
; ColumnOneHeaderWidth
ColumnOneVerticalLineXPos := ColumnOneHeaderWidth + ColumnOneXPos + 10
ColumnTwoXPos := ColumnOneVerticalLineXPos + Margin
Column_Two_Vertical_line_x_Pos := ColumnTwoXPos + ColumnTwoHeaderWidth + Margin
Column_Three_Vertical_line_x_Pos := ColumnTwoXPos + ColumnTwoHeaderWidth + Margin
ColumnThreeXPos := Column_Three_Vertical_line_x_Pos + Margin
Column_Four_Vertical_line_x_Pos := ColumnThreeXPos + ColumnThreeHeaderWidth + Margin
ColumnFourXPos := Column_Four_Vertical_line_x_Pos + Margin
ColumnTwoSubCheckboxesXPos := ColumnTwoXPos + 20
; MAIN SCRIPT
;------------------------------------------------
; GUI
; Default checkbox checks are set by the "CheckForNewMachineInstall" sub
;------------------------------------------------
Gui, Font, s17
Gui, Font, Bold
Gui, Add, Button, x%ColumnOneXPos% y0 w%ColumnOneHeaderWidth% h25, Chocolatey
gui, font, s10
Gui, Add, Button, x%ColumnOneXPos% w%ColumnOneHeaderWidth% h20 gUpgradeChocolatey, Upgrade Choco Packages
Gui, Font, s17
Gui, Font, Normal
Gui, Add, Checkbox, x%margin% yp+30 vChocolatey gUpdateGUI,Chocolatey
Gui, Add, Checkbox, x30 yp+30 vChocoAutoUpgrade gUpdateGUI, Auto Upgrade
; Gui, Add, Checkbox, vChocoAutoUpgrade gUpdateGUI checked, Auto Upgrade
; Gui, Add, Checkbox, x30 yp+30 vChocoUpgrade gUpdateGUI, Upgrade
Gui, Add, Checkbox, x%margin% y+5 vDellCU gUpdateGUI,Dell CU
Gui, Add, Checkbox, x10 y+5 vpdfxchange gUpdateGUI,PDF X-Change
; Gui, Add, Text,x20, Install Office 365
; Gui, Add, Checkbox, x120 yp+0 vOffice365_64 gUpdateGUI checked, 64bit
Gui, Add, Checkbox, x10 gUpdateGUI vShareX,ShareX
; gui, font, s10
; Gui, Add, Checkbox, x+%Margin% yp+5 vCustomShareXUser gUpdateGUI, Other User
; gui, font, s14
; Gui, Add, Checkbox, x30 yp+30 vShareXCurrentUser gUpdateGUI checked, Current User
; Gui, Add, Checkbox, x30 yp+30 vShareXCustomUserCheck gUpdateGUI,
; Gui, Add, Edit, vLoggedInUsername gupdateGUI checked x30 yp+30 xp+30 w150 h28, %LoggedInUsername%
gui, font, s17
Gui, Add, Checkbox, x10 gUpdateGUI vVoidtoolsEverything , Everything
Gui, Add, Checkbox, x30 yp+30 vVoidtoolsEverythingConfig gUpdateGUI, Config
gui, font, s10
Gui, Font, Bold
Gui, Add, Button, x%ColumnOneXPos% w%ColumnOneHeaderWidth% y+20 h20, Optional Choco Packages
Gui, Font, Normal
gui, font, s17
Gui, Add, Checkbox, x10 gUpdateGUI vGoogleChrome,Google Chrome
Gui, Add, Checkbox, x10 gUpdateGUI vBitwarden,Bitwarden
Gui, Add, Checkbox, x10 vadobereader gUpdateGUI,Adobe Reader
Gui, Add, Checkbox, x10 gUpdateGUI vDrawIO,draw.io
Gui, Add, Checkbox, x10 vchocoZabbixAgent gUpdateGUI ,Zabbix Agent
Gui, Add, Checkbox, x10 gUpdateGUI vWireguard,Wireguard
gui, add, text, x%ColumnOneVerticalLineXPos% y0 h%vertical_line_height% 0x11 ;Vertical Line > Etched Gray
; COLUMN TWO
Gui, Font, s15
Gui, Font, Bold
Gui, Add, Button, x%ColumnTwoXPos% y0 w%ColumnTwoHeaderWidth% h25, MSI/EXE Installs
Gui, Font, Normal
Gui, Font, s17
Gui, Add, Checkbox, x%ColumnTwoXPos% yp+30 gUpdateGUI vOffice365_64 ,Office
Gui, Add, Checkbox, x+10 yp+0 gUpdateGUI vOffice365_32 gUpdateGUI, 32-bit
Gui, Add, Checkbox, x%ColumnTwoXPos% y+%margin% vMeshCentral gUpdateGUI , Mesh Central
Gui, Add, Checkbox, x%ColumnTwoXPos% vPrinterDrivers y+%margin% gUpdateGUI , Printer Drivers
gui, font, s10
Gui, Font, Bold
Gui, Add, Button, x%ColumnTwoXPos% w%ColumnTwoHeaderWidth% y+20 h20, Optional Packages
Gui, Font, Normal
gui, font, s17
Gui, Add, Checkbox, x%ColumnTwoXPos% y+%margin% vUrBackup gUpdateGUI, urBackup
Gui, Add, Checkbox, x%ColumnTwoXPos% gUpdateGUI y+%margin% vDWGSeePro,DWGSee
; Gui, Add, Checkbox, x%ColumnTwoXPos% gUpdateGUI y+%margin% vZabbixAgent,Zabbix Agent
gui, add, text, x%Column_Two_Vertical_line_x_Pos% y0 h%vertical_line_height% 0x11 ;Vertical Line > Etched Gray
; TWEAKS
gui, font, s17
Gui, Font, Bold
Gui, Add, Button, x%ColumnThreeXPos% y0 w%ColumnThreeHeaderWidth% h25, Tweaks
Gui, Font, Normal
Gui, Add, Checkbox, x%ColumnThreeXPos% yp+30 vUpdateWindows gUpdateGUI, Update Windows
Gui, Add, Checkbox, x%ColumnThreeXPos% y+1 vDebloat gUpdateGUI , Debloat
Gui, Add, Checkbox, vSaneWindowsUpdates gUpdateGUI , Sane Windows Updates
Gui, Add, Checkbox, vOOSU gUpdateGUI , Quiet 10 Privacy
Gui, Add, Checkbox, vDisableLockscreen gUpdateGUI, Disable Lockscreen
Gui, Add, Checkbox, vWallpaper gUpdateGUI, Set Wallpaper
Gui, Add, Checkbox, vCleanW11StartMenu gUpdateGUI , Clean Start Menu
Gui, Add, Checkbox, vChangeTimeout , Change Display Timeout
Gui, Add, Checkbox, vDisplayTime30 gUpdateGUI yp+30 xp+%margin%, 30 Mins
Gui, Add, Checkbox, vDisplayTime0 yp+0 xp+120 gUpdateGUI, Never
Gui, Add, Checkbox, x%ColumnThreeXPos% vAddWifiNetwork gUpdateGUI x%ColumnThreeXPos% yp+30 , Configure Wifi
Gui, Add, Checkbox, x%ColumnThreeXPos% vDomainJoin gUpdateGUI x%ColumnThreeXPos% yp+30, Domain Join
Gui, Add, Checkbox, x%ColumnThreeXPos% vAutoLogon gUpdateGUI x%ColumnThreeXPos% yp+30, Autologon
; Gui, Add, Checkbox, vSetStaticIP gUpdateGUI x%ColumnThreeXPos% yp+40, IP:
; Gui, Add, Edit, vStaticIPAddress xp+60 w150 h28, 206.210.
; Gui, Font, s7
; Gui, Add, Button, x+5 gShowCurrentIP gShowCurrentIP,Current
; Gui, Font, s17
Gui, Add, Checkbox, vSetHostname gUpdateGUI x%ColumnThreeXPos% y+0, Hostname:
Gui, Add, Edit, vNewHostname xp+150 w150 h28,
Gui, Add, Checkbox, x%ColumnThreeXPos% vAddVPN gUpdateGUI x%ColumnThreeXPos% y+0, Add VPN
Gui, Font, s10
Gui, font, Red
Gui, Add, Checkbox, x+%Margin% yp+5 vEditVPNSettings gUpdateGUI cRed,Set rasphonepbk.ini
gui, font, s17
; Gui, Add, Checkbox, x%ColumnThreeXPos% y+%margin% vBGInfo gUpdateGUI,BGInfo
; gui, font, s13
; Gui, Add, Checkbox, x+%Margin% yp+4 vBGInfoBoot gUpdateGUI, On Boot
gui, font, s15
Gui, Add, Checkbox, x%ColumnThreeXPos% y+%margin% vRestartPCShortcut gUpdateGUI,Restart PC Shortcut
Gui, Add, Checkbox, x%ColumnThreeXPos% y+%margin% vExitPowerShell gUpdateGUI,Exit PS on Completion
Gui, Add, Checkbox, x%ColumnThreeXPos% y+%margin% vRestart gUpdateGUI,Restart PC (30s)
Gui, Add, Checkbox, x+10 yp+0 gUpdateGUI vRestartInstant gUpdateGUI, Instant
; Column FOUR
Gui, Font, s17
Gui, Font, Bold
gui, add, text, x%Column_Four_Vertical_line_x_Pos% y0 h%vertical_line_height% 0x11 ;Vertical Line > Etched Gray
Gui, Add, Button, x%ColumnFourXPos% y0 w%ColumnThreeHeaderWidth% h25 gPullUpdateLog, Logs
Gui, Font, Normal
Gui, Font, s15
Gui, Font, s7
Gui, Add, Edit, vLogText x%ColumnFourXPos% y+%margin% w%ColumnFourHeaderWidth% h300, %LogText%
Gui, Font, s15
Gui, Font, Bold
Gui, Add, Button, x%ColumnFourXPos% y+%margin% h35 w%ColumnFourHeaderWidth% gUpdateWindowsNow, Update Windows Now
Gui, Add, Button, w%ColumnFourHeaderWidth% gCheckForNewMachineInstall, Select for New Install
Gui, Add, Button, w%ColumnFourHeaderWidth% gUncheckAll, Uncheck All
Gui, Add, Button, w%ColumnFourHeaderWidth% gSubmit, Execute
; Gui, Add, Text, x+5, Debloat
; Gui, Show, ; w1230 ; , w600 h200
gui, Show,,%GUI_Title%
goto, CheckForNewMachineInstall
Return
ShowCurrentIP:
Command = ipconfig /all
; command = powershell (Get-NetIPAddress -AddressFamily IPV4 -InterfaceAlias Ethernet).IPAddress
CurrentIPAddress := RunCMD(command)
Hostname := RunCMD("hostname")
NetworkDetails := "Hostname: " . Hostname . CurrentIPAddress
HostnameForFA := StrSplit(Hostname, "`r")[1]
; Clipboard := Hostname
; msgbox \\willow\Depts\IT\WindowsNetworking\%HostnameForFA%.txt
FileAppend, %NetworkDetails%, \\willow\Depts\IT\WindowsNetworking\%HostnameForFA%.txt
; Msgbox % "Hostname: " Hostname
; Clipboard := NetworkDetails
Msgbox % NetworkDetails
Return
PullUpdateLog:
FileRead, LogText, C:\Windows-Setup.log
GuiControl,,LogText, %LogText%
Return
UncheckAll:
GuiControl,,Debloat,0
GuiControl,,OOSU,0
GuiControl,,UblockEdge,0
GuiControl,,ShareX,0
GuiControl,,VoidtoolsEverything,0
GuiControl,,VoidtoolsEverythingConfig,0
GuiControl,,Parcview,0
GuiControl,,PVConfig,0
GuiControl,,Chocolatey,0
GuiControl,,DellCU,0
GuiControl,,NoMachine,0
GuiControl,,NoMachineConfig,0
GuiControl,,pdfxchange,0
GuiControl,,adobereader,0
GuiControl,,Office,0
GuiControl,,Office365_64,0
GuiControl,,Office365_32,0
GuiControl,,DisableLockscreen,0
GuiControl,,Wallpaper,0
GuiControl,,CleanW11StartMenu,0
GuiControl,,UpdateWindows,0
GuiControl,,ChangeTimeout,0
GuiControl,,DisplayTime30,0
GuiControl,,DisplayTime0,0
GuiControl,,SaneWindowsUpdates,0
GuiControl,,ChocoAutoUpgrade,0
GuiControl,,DomainJoin,0
GuiControl,,EditVPNrasphone,0
GuiControl,,AddWifiNetwork,0
GuiControl,,PrinterDrivers,0
GuiControl,,urbackup,0
GuiControl,,MeshCentral,0
gui, Submit, NoHide
Return
CheckForNewMachineInstall:
GuiControl,,Debloat,1
GuiControl,,OOSU,1
GuiControl,,UblockEdge,0
GuiControl,,Parcview,1
GuiControl,,PVConfig,1
GuiControl,,Chocolatey,1
GuiControl,,DellCU,1
; GuiControl,,NoMachine,1
; GuiControl,,NoMachineConfig,1
GuiControl,,pdfxchange,1
GuiControl,,MeshCentral,1
; GuiControl,,UrBackup,1
; GuiControl,,Office,1
GuiControl,,Office365_64,1
GuiControl,,Office365_32,0
; GuiControl,,DisableLockscreen,1
GuiControl,,Wallpaper,0
GuiControl,,CleanW11StartMenu,1
GuiControl,,UpdateWindows,1
GuiControl,,ChangeTimeout,1
GuiControl,,DisplayTime30,1
GuiControl,,DisplayTime0,0
GuiControl,,SaneWindowsUpdates,1
GuiControl,,ChocoAutoUpgrade,1
GuiControl,,VoidtoolsEverything,1
GuiControl,,VoidtoolsEverythingConfig,1
GuiControl,,AddWifiNetwork,1
GuiControl,,PrinterDrivers,1
GuiControl,,ShareX,1
; GuiControl,,DellCU,0
; GuiControl,,DellCU,0
gui, Submit, NoHide
Return
UpdateGUI:
gui, Submit, NoHide
Return
UpgradeChocolatey:
Gui, Submit, NoHide
Run, PowerShell -NoExit -C "choco upgrade all -y"
Return
UpdateWindowsNow:
Arguments .= "UpdateWindows-chocoDellCU" ; . "Restart"
IniRead, LastWindowsUpdate, %SettingsFileFP%, Toolbox, WindowsUpdate, %A_Tab%
IniWrite, Done, %SettingsFileFP%, Toolbox, WindowsUpdate
Run, PowerShell -NoExit -C "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force; %PowerShell_Toolbox_FP% %Arguments%"
Return
Submit:
Gui, Submit, NoHide
Arguments :=
if(Debloat)
Arguments .= "Debloat"
if(SaneWindowsUpdates)
Arguments .= "SaneWindowsUpdates"
if(ChocoAutoUpgrade)
Arguments .= "ChocoAutoUpgrade"
if(Chocolatey)
Arguments .= "Chocolatey"
if(ChocoUpgrade)
Arguments .= "ChocoUpgrade"
if(DellCU)
Arguments .= "chocoDellCU"
if(pdfxchange)
Arguments .= "chocopdfxchange"
(adobereader)?(Arguments .= "chocoadobereader"):()
if(Office365_64 OR Office OR Office365_32){
if(Office365_64)
Arguments .= "Office365"
if(Office365_32)
Arguments .= "Office32bit"
}
if(OOSU)
Arguments .= "OOSU"
(MeshCentral)?(Arguments .= "MeshCentral"):()
(UrBackup)?(Arguments .= "UrBackup"):()
if(NoMachine)
Arguments .= "chocoNoMachine-"
if(NoMachineConfig)
Arguments .= "NoMachineConfig"
if(Parcview)
Arguments .= "Parcview"
if(PVConfig)
Arguments .= "PVConfig"
if(DisableLockscreen)
Arguments .= "DisableLockscreen"
if(Wallpaper)
Arguments .= "Wallpaper"
if(UpdateWindows){
Arguments .= "UpdateWindows"
IniRead, LastWindowsUpdate, %SettingsFileFP%, Toolbox, WindowsUpdate, %A_Tab%
IniWrite, Done, %SettingsFileFP%, Toolbox, WindowsUpdate
; msgbox
}
if(CleanW11StartMenu){
Arguments .= "CleanW11StartMenu"
}
if(DisplayTime0 and ChangeTimeout)
Arguments .= "DisplayTime0"
if(DisplayTime30 and ChangeTimeout)
Arguments .= "DisplayTime30"
if(AutoLogon)
Arguments .= "AutoLogon"
if(DomainJoin)
Arguments .= "DomainJoin"
if(AddWifiNetwork)
Arguments .= "AddWifiNetwork"
; if(Bitwarden)
; Arguments .= "Bitwarden"
(GoogleChrome)?(Arguments .= "choco-GoogleChrome"):()
(Bitwarden)?(Arguments .= "choco-Bitwarden"):()
(DrawIO)?(Arguments .= "choco-drawio"):()
(DWGSeePro)?(Arguments .= "DWGSeePro"):()
(ZabbixAgent)?(Arguments .= "ZabbixAgent"):()
(chocoZabbixAgent)?(Arguments .= "chocoZabbixAgent"):()
if(Wireguard)
Arguments .= "Wireguard"
; Msgbox % "arguments: " arguments
if(ShareX){
Arguments .= "chocoShareX"
}
if(BGInfo){
Arguments .= "BGInfo"
}
if(BGInfoBoot){
Arguments .= "BGBootInfo"
}
if(EditVPNSettings){
/* Username := RunCMD("wmic computersystem get username")
; Regular expression pattern to match and pull out the username up to a new line character
regexPattern := "WMPCO\\([^\r\n]+)"
; Perform the regex match
if RegExMatch(Username, regexPattern, output)
{
; Extracted username
LoggedInUser := output1
; MsgBox % "Extracted Username: " extractedString
}
else
{
MsgBox, Failed to pull out the username from the returned CMD value.
}
*/
rasphonepbkwConfig_FP = \\smb\Toolbox\Installs\VPN\rasphone.pbk
rasphonepbk_FP = C:\Users\%LoggedInUsername%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk
; Msgbox % "rasphonepbkwConfig_FP: " rasphonepbkwConfig_FP
; Msgbox % "rasphonepbk_FP: " rasphonepbk_FP
if(FileExist(rasphonepbk_FP)){
; filecopy does not work because the credentials are connected to the .pbk file and copying the file will make windows clear the credentials.
IniRead, UseRasCredentials, %rasphonepbk_FP%, White Mountain Paper - VPN, UseRasCredentials, %A_Space%
if(UseRasCredentials = ""){
msgbox, rasphone.pbk file does not exist. Please make sure that the Windows VPN is named:`nWhite Mountain Paper - VPN
Return
}
; otherwise, iniwrite to file:
; IniWrite, Value, Filename, Section, Key
IniWrite,0, %rasphonepbk_FP%, White Mountain Paper - VPN,UseRasCredentials
IniRead, UseRasCredentials, %rasphonepbk_FP%, White Mountain Paper - VPN, UseRasCredentials, %A_Space%
if(UseRasCredentials = 1 or UseRasCredentials = ""){
; Msgbox, Failed to edit the Rasphone.pbk file. CLick ok to open up the directory to do it manually.
run, C:\Users\%LoggedInUsername%\AppData\Roaming\Microsoft\Network\Connections\Pbk
Return
}
run, notepad.exe C:\Users\%LoggedInUsername%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk
}
else, {
msgbox, Error: Rasphone.pbk does not exist or it wasn't found at:`n%rasphonepbk_FP%
}
; https://www.tenforums.com/tutorials/3123-clsid-key-guid-shortcuts-list-windows-10-a.html
run, explorer shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
msgbox, Please Enable "Microsoft CHAP Version 2" under Security Settings of the VPN Property.
; FileCopy, %A_ScriptDir%\Installs\VPN\rasphone.pbk, C:\Users\%A_Username%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk, 1 ;, Dest [, Flag (1 = overwrite)]
; rasphone_FP = C:\Users\%A_Username%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk
; if(FileExist("rasphone_FP"))
}
if(UblockEdge){
run, https://microsoftedge.microsoft.com/addons/detail/ublock-origin/odfafepnkmbhccpbejgmiehpchacaeak
}
if(VoidtoolsEverything)
Arguments .= "chocoVoidtoolsEverything"
if(VoidtoolsEverythingConfig)
Arguments .= "EverythingConfig"
; -- PRINTERS --
if(PrinterDrivers)
Arguments .= "PrinterDrivers"
if(Printer_MGMTSHARP)
Arguments .= "MGMTSHARP"
if(Printer_MGMTHPColor)
Arguments .= "Printer_MGMTHPColor"
if(Printer_TM06SUPICANONCOLOR)
Arguments .= "Printer_TM06SUPICANONCOLOR"
if(AddVPN){
Send, {RWin}
sleep, 500
send, Add vpn
sleep, 500
send, {Enter}
sleep, 2000
send, {Enter} ; Click "Add VPN" button
sleep, 1000
; within the Add VPN COnnection interface:
send, {Down} ; down in case the "Windows (Built In)" option is not selected
send, {Tab} ; tab down to connection name
sleep, 1000
send, White Mountain Paper - VPN
send, {Tab}
sleep, 1000
send, 69.193.72.92
send, {Tab}
sleep, 1000
send, {Down}{Down}{Down}{Down} ; select L2TP/IPSEC with pre-shared key
send {Tab}
sleep, 1000
Key := "61vBoUGLZr/VrNlXpRQhFr4LdxfuYGFk"
send, %Key%
}
/*if(PVConfig){ ; Instlal parcview and copy config files
; run, %A_WorkingDir%\Installs\PARCview 5.0.0.6\PARCView Silent No Launch.msi
FileCreateDir, C:\ProgramData\Capstone\PARCView
FileCopy, %A_WorkingDir%\Installs\PARCview 5.0.0.6\PVConfig.XML, C:\ProgramData\Capstone\PARCView\PVConfig.XML, 1
}
*/
/*if(Office365_32){
run, %A_WorkingDir%\Installs\Office365Setup_32BIT.exe
}
*/
; Clipboard := arguments
; Clipboard := PowerShell_Toolbox_FP
; Msgbox % "PowerShell_Toolbox_FP: " PowerShell_Toolbox_FP
; Msgbox % "arguments: " arguments
(Restart)?(Arguments .= "Restart"):()
(RestartInstant)?(Arguments .= "RestartInstant"):()
if(Arguments){
if(ExitPowerShell)
Run, PowerShell -C "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force; %PowerShell_Toolbox_FP% %Arguments% %NewHostname%"
else,
Run, PowerShell -NoExit -C "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force; %PowerShell_Toolbox_FP% %Arguments% %NewHostname%"
}
SetTimer, PullUpdateLog, 10000
Return
GuiClose: ;close Gui to Exit
GuiEscape: ;press Esc to Exit
ExitApp
; Functions
;------------------------------------------------
StartScriptAsAdmin(){
full_command_line := DllCall("GetCommandLine", "str")
if not (A_IsAdmin or RegExMatch(full_command_line, " /restart(?!\S)")) {
try {
if A_IsCompiled
Run *RunAs "%A_ScriptFullPath%" /restart
else
Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
}
ExitApp
}
if(!A_IsAdmin){
Msgbox, failed to get admin.
Return
}
}