commit 139062a947377e2cc1c8f705e73a18ed800dd4d9 Author: Yuriy Date: Tue Jul 16 01:25:46 2024 -0400 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5587f48 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +Windows-Toolbox.sublime-workspace \ No newline at end of file diff --git a/Assets/Preview.png b/Assets/Preview.png new file mode 100644 index 0000000..dc6c983 Binary files /dev/null and b/Assets/Preview.png differ diff --git a/CompileAndGitPush.ahk b/CompileAndGitPush.ahk new file mode 100644 index 0000000..03dc7ca --- /dev/null +++ b/CompileAndGitPush.ahk @@ -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 +;------------------------------------------------ \ No newline at end of file diff --git a/Installs/Autohotkey/RunCMD.ahk b/Installs/Autohotkey/RunCMD.ahk new file mode 100644 index 0000000..6ba4456 --- /dev/null +++ b/Installs/Autohotkey/RunCMD.ahk @@ -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 +} diff --git a/Installs/BGInfo/BGInfo_Template.bgi b/Installs/BGInfo/BGInfo_Template.bgi new file mode 100644 index 0000000..6e78616 Binary files /dev/null and b/Installs/BGInfo/BGInfo_Template.bgi differ diff --git a/Installs/BGInfo/Bginfo.exe b/Installs/BGInfo/Bginfo.exe new file mode 100644 index 0000000..76d3d31 Binary files /dev/null and b/Installs/BGInfo/Bginfo.exe differ diff --git a/Installs/BGInfo/ExecuteBGInfo-ORIGINAL.bat b/Installs/BGInfo/ExecuteBGInfo-ORIGINAL.bat new file mode 100644 index 0000000..c07fb7e --- /dev/null +++ b/Installs/BGInfo/ExecuteBGInfo-ORIGINAL.bat @@ -0,0 +1,5 @@ +@echo off + +cd + +CALL C:\BGInfo\bginfo.exe C:\BGInfo\BGInfo_Template.bgi /timer:0 /nolicprompt \ No newline at end of file diff --git a/Installs/BGInfo/ExecuteBGInfo.bat b/Installs/BGInfo/ExecuteBGInfo.bat new file mode 100644 index 0000000..0be3c1c --- /dev/null +++ b/Installs/BGInfo/ExecuteBGInfo.bat @@ -0,0 +1,5 @@ +@echo off + +cd + +CALL bginfo.exe BGInfo_Template.bgi /timer:0 /nolicprompt \ No newline at end of file diff --git a/Installs/BGInfo/SystemStartup_BGInfo.lnk b/Installs/BGInfo/SystemStartup_BGInfo.lnk new file mode 100644 index 0000000..845585a Binary files /dev/null and b/Installs/BGInfo/SystemStartup_BGInfo.lnk differ diff --git a/Installs/Bat/CreatePersonalWillowUserFolder.bat b/Installs/Bat/CreatePersonalWillowUserFolder.bat new file mode 100644 index 0000000..5ebc0f9 --- /dev/null +++ b/Installs/Bat/CreatePersonalWillowUserFolder.bat @@ -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 \ No newline at end of file diff --git a/Installs/Bat/JoinDomain.bat b/Installs/Bat/JoinDomain.bat new file mode 100644 index 0000000..9d0fd9b --- /dev/null +++ b/Installs/Bat/JoinDomain.bat @@ -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/" \ No newline at end of file diff --git a/Installs/Bitwarden/bitwarden-updater b/Installs/Bitwarden/bitwarden-updater new file mode 100644 index 0000000..e69de29 diff --git a/Installs/Everything/Everything.ini b/Installs/Everything/Everything.ini new file mode 100644 index 0000000..98b8ee7 --- /dev/null +++ b/Installs/Everything/Everything.ini @@ -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= diff --git a/Installs/Icons/Windows.ico b/Installs/Icons/Windows.ico new file mode 100644 index 0000000..f4d9c6b Binary files /dev/null and b/Installs/Icons/Windows.ico differ diff --git a/Installs/Icons/ccleaner.ico b/Installs/Icons/ccleaner.ico new file mode 100644 index 0000000..3fe43df Binary files /dev/null and b/Installs/Icons/ccleaner.ico differ diff --git a/Installs/Images/Windows_Toolbox_Preview.png b/Installs/Images/Windows_Toolbox_Preview.png new file mode 100644 index 0000000..0cafad5 Binary files /dev/null and b/Installs/Images/Windows_Toolbox_Preview.png differ diff --git a/Installs/Lib/RunCMD.ahk b/Installs/Lib/RunCMD.ahk new file mode 100644 index 0000000..6ba4456 --- /dev/null +++ b/Installs/Lib/RunCMD.ahk @@ -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 +} diff --git a/Installs/MeshCentral/InstallMeshCentral.bat b/Installs/MeshCentral/InstallMeshCentral.bat new file mode 100644 index 0000000..8b95605 --- /dev/null +++ b/Installs/MeshCentral/InstallMeshCentral.bat @@ -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% +) \ No newline at end of file diff --git a/Installs/MeshCentral/InstallMeshCentral.ps1 b/Installs/MeshCentral/InstallMeshCentral.ps1 new file mode 100644 index 0000000..8b95605 --- /dev/null +++ b/Installs/MeshCentral/InstallMeshCentral.ps1 @@ -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% +) \ No newline at end of file diff --git a/Installs/Misc/Toolbox-Settings.ini b/Installs/Misc/Toolbox-Settings.ini new file mode 100644 index 0000000..d9ff728 --- /dev/null +++ b/Installs/Misc/Toolbox-Settings.ini @@ -0,0 +1,2 @@ +[General] +Version=212 diff --git a/Installs/OOSU10/OOSU10.exe b/Installs/OOSU10/OOSU10.exe new file mode 100644 index 0000000..75129a6 Binary files /dev/null and b/Installs/OOSU10/OOSU10.exe differ diff --git a/Installs/OOSU10/ooshutup10.cfg b/Installs/OOSU10/ooshutup10.cfg new file mode 100644 index 0000000..51825bc --- /dev/null +++ b/Installs/OOSU10/ooshutup10.cfg @@ -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 +# +# 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 - diff --git a/Installs/Office365/ODT_x64/configuration-Office365-x64Business.xml b/Installs/Office365/ODT_x64/configuration-Office365-x64Business.xml new file mode 100644 index 0000000..4c7ac40 --- /dev/null +++ b/Installs/Office365/ODT_x64/configuration-Office365-x64Business.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Installs/PowerShell/CleanStartW11.ps1 b/Installs/PowerShell/CleanStartW11.ps1 new file mode 100644 index 0000000..6a37938 --- /dev/null +++ b/Installs/PowerShell/CleanStartW11.ps1 @@ -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]@' + + + + + + + + + + + + + + + + + + + + + + + + + +'@ + + $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 $_ +} diff --git a/Installs/PowerShell/DisableLockScreen.reg b/Installs/PowerShell/DisableLockScreen.reg new file mode 100644 index 0000000..53dd98a Binary files /dev/null and b/Installs/PowerShell/DisableLockScreen.reg differ diff --git a/Installs/PowerShell/EnableLockScreen.reg b/Installs/PowerShell/EnableLockScreen.reg new file mode 100644 index 0000000..2bb8779 Binary files /dev/null and b/Installs/PowerShell/EnableLockScreen.reg differ diff --git a/Installs/PowerShell/GitPullWMTToolboxOnSMBThroughOlivetin.ps1 b/Installs/PowerShell/GitPullWMTToolboxOnSMBThroughOlivetin.ps1 new file mode 100644 index 0000000..eda9e4e --- /dev/null +++ b/Installs/PowerShell/GitPullWMTToolboxOnSMBThroughOlivetin.ps1 @@ -0,0 +1 @@ +Invoke-RestMethod -Method "Post" -Uri "https://controls.wmpco.biz/api/StartAction" -Body '{"actionName": "Git Pull WMT Toolbox Git Repo on SMB"}' \ No newline at end of file diff --git a/Installs/PowerShell/PowershellToolbox.ps1 b/Installs/PowerShell/PowershellToolbox.ps1 new file mode 100644 index 0000000..47189c7 --- /dev/null +++ b/Installs/PowerShell/PowershellToolbox.ps1 @@ -0,0 +1,1042 @@ +# VARIABLES +#------------------------------------------------ +$Argument=$args[0] +$Argument2=$args[1] +Write-Host "Passed Arguments: $Argument" +Write-Host "Passed Arguments2: $Argument2" + +$ParentFolder = $(get-item $PSScriptRoot).parent.FullName +# $Logfile = "C:\$(gc env:computername)-Windows-Toolbox.log" +$Logfile = "C:\Windows-Setup.log" +$ChocoAppListFP = "C:\Users\${env:USERNAME}\ChocolateyPackageList.config" + +# Write-Host $ParentFolder +# Write-Host "$PSScriptRoot" + +# FUNCTIONS +#------------------------------------------------ +Function Set-Speaker($Volume){$wshShell = new-object -com wscript.shell;1..50 | % {$wshShell.SendKeys([char]174)};1..$Volume | % {$wshShell.SendKeys([char]175)}} + +Function LogWrite +{ + Param ([string]$logstring) + + $currentDateTime = Get-Date + $formattedDateTime = $currentDateTime.ToString("yyyyMMdd-HHmmss") + + Add-content $Logfile -value "${formattedDateTime}: ${logstring}" + Write-Host $logstring +} + + +# MAIN SCRIPT +#------------------------------------------------ +if($Argument2) { + LogWrite "Renaming Computer to $Argument2" + Rename-Computer -NewName "$Argument2" -DomainCredential ity +} + +if($Argument -like '*SetTimezone*') { + LogWrite "Setting Time Zone to Eastern Standard Time" + Set-TimeZone -Name "Eastern Standard Time" +} + + +if($Argument -like '*MeshCentral*') { + LogWrite "Installing MeshCentral" + Start-Process -FilePath "${ParentFolder}\MeshCentral\InstallMeshCentral.bat" +} + + +# CHOCOLATEY +if($Argument -like '*choco*') { + + # https://chocolatey.org/install + LogWrite "Installing Chocolatey" + [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) + +} + +if($Argument -like '*ChocoUpgrade*') { + + # https://chocolatey.org/install + LogWrite "Updating Chocolatey" + choco upgrade all -y + # [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) +} + +if($Argument -like '*ChocoAutoUpgrade*') { + + # https://chocolatey.org/install + $UpdateHour=(1..4 | get-random) + LogWrite "Installing Chocolatey Auto Upgrade Package with Scheduled Time for Sunday at ${UpdateHour} AM" + choco install choco-upgrade-all-at --params "'/WEEKLY:yes /DAY:SUN /TIME:0${UpdateHour}:00 /ABORTTIME:06:00'" -y + # [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) +} + +if($Argument -like '*VoidtoolsEverything*') { + + # https://chocolatey.org/install + LogWrite "Installing Voidtools Everything" + choco install -y everything +} + +if($Argument -like '*EverythingConfig*') { + + # https://chocolatey.org/install + # LogWrite "Installing Voidtools Everything" + # choco install -y everything + + LogWrite "Copying Voidtools Everything Config" + + # Kill everything process before copying config file + Stop-Process -Name "Everything" -Force + + $EverythingConfigDir = "C:\Users\" + ${env:USERNAME} + "\AppData\Roaming\Everything" + + # copy to current user + Copy-Item "${ParentFolder}\Everything\Everything.ini" -Destination "${EverythingConfigDir}\Everything.ini" + + # copy to default user for all future created profiles + New-Item -Path "C:\Users\Default\AppData\Roaming\Everything\" -ItemType Directory + Copy-Item "${ParentFolder}\Everything\Everything.ini" -Destination "C:\Users\Default\AppData\Roaming\Everything\Everything.ini" + + # Start-Process -FilePath "C:\Program Files\Everything\Everything.exe" + + # not sure if need to split these up or can be in 1 line + & "C:\Program Files\Everything\Everything.exe" -rescan-all -install-all-users-start-menu-shortcuts -install-service -install-run-on-system-startup -install-folder-context-menu +} + + +if($Argument -like '*Bitwarden*') { + LogWrite "Copying Bitwarden-Updater file to current and \Default\ user" + # Copy bitwarden-updater file to disable bitwarden auto updates so users don't get annoying prompts that they can't take action on + # copy to default user folder so users that log in for the first time use this file + xcopy "${ParentFolder}\Bitwarden\bitwarden-updater" "C:\Users\Default\AppData\Local\" /y + + # copy to current user folder + $BitwardenUserUpdaterFolder = "C:\Users\" + ${env:USERNAME} + "\AppData\Local\" + Write-Host "Copying Locked Bitwarden User Update Folder to:" ${BitwardenUserUpdaterFolder} + xcopy "${ParentFolder}\Bitwarden\bitwarden-updater" "${BitwardenUserUpdaterFolder}" /y + + LogWrite "Installing Bitwarden" + # install for all users with /allusers, as per: https://community.chocolatey.org/packages/bitwarden + choco install -y bitwarden -ia "/allusers " +} +if($Argument -like '*pdfxchange*') { + + LogWrite "Installing PDF-XChange" + choco install pdfxchangeeditor -y +} + +if($Argument -like '*adobereader*') { + + LogWrite "Installing Adobe Reader" + choco install adobereader -y +} + +if($Argument -like '*GoogleChrome*') { + + LogWrite "Installing Google Chrome" + # install for all users with /allusers, as per: https://community.chocolatey.org/packages/bitwarden + choco install googlechrome -y +} + + +if($Argument -like '*ShareX*') { + + LogWrite "Installing ShareX" + choco install -y sharex + + # kill shareX process + Stop-Process -Name "ShareX" -Force + + + $ShareXConfigDir = "C:\Users\" + ${env:USERNAME} + "\Documents\ShareX" + New-Item -Path "${ShareXConfigDir}" -ItemType Directory + xcopy "${ParentFolder}\ShareX\ShareX" "${ShareXConfigDir}" /y + # Copy-Item "${ParentFolder}\Everything\Everything.ini" -Destination "${EverythingConfigDir}\Everything.ini" + + # create config folder on Default user account and copy sharex config files to it + # Whenever a new user is created on a computer, items from the default account get copied to their account. + $ShareXConfigDir = "C:\Users\Default\Documents\ShareX" + New-Item -Path "${ShareXConfigDir}" -ItemType Directory + xcopy "${ParentFolder}\ShareX\ShareX" "${ShareXConfigDir}" /y + + # create screenshots folder for current user + $CurrentUserScreenshotsFolder = "C:\Users\" + ${env:USERNAME} + "\Pictures\Screenshots" + New-Item -Path "${CurrentUserScreenshotsFolder}" -ItemType Directory + + # create screenshots folder in default user account + New-Item -Path 'C:\Users\Default\Pictures\Screenshots' -ItemType Directory + + # create a startup folder in default account + New-Item -Path 'C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\' + + # copy sharex shortcut link to default profile's startup folder + xcopy "${ParentFolder}\ShareX\ShareXStartupFolderShortcut\ShareX.lnk" "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" /y + + + # start sharex so that configuration in documents folder gets pulled in + # Start-Process -Filepath "C:\Program Files\ShareX\ShareX.exe" +} + + +if($Argument -like '*DWGSeePro*') { + + LogWrite "Installing DWGSeePro" + & "${ParentFolder}\DWGSeePro\DWGSeePro2023_Installer.exe" +} + +if($Argument -like '*ZabbixAgent*') { + + if($Argument -like '*chocoZabbixAgent*') { + + LogWrite "Installing Zabbix Agent using chocolatey" + choco install -y zabbix-agent + } + else { + Start-Process -Filepath "${ParentFolder}\Zabbix\zabbix_agent.msi" -Wait + } + + LogWrite "Allowing Inbound Zabbix Agent Port through Firewall" + # https://gist.github.com/nidr0x/00d47c75b28e8492b5b936ff02b0a4d6 + netsh advfirewall firewall add rule name="Open Zabbix agentd port 10050 inbound" dir=in action=allow protocol=TCP localport=10050 + + LogWrite "Copying Zabbix-Agent Configuration" + Copy-Item "${ParentFolder}\Zabbix\zabbix_agentd.conf" -Destination "C:\ProgramData\zabbix\zabbix_agentd.conf" -Force + + LogWrite "Restarting Zabbix Agent Service" + Restart-Service -Name "Zabbix Agent" + + # Append hostname and IP address to .txt file for easy copy and paste into zabbix + LogWrite "Appending Hostname and Address to \\smb\General\Zabbix-Devices.txt" + $hostname = $env:COMPUTERNAME + $ipAddress = (ipconfig /all) + Add-Content -Path "\\smb\General\Zabbix-Devices.txt" -Value "$hostname $ipAddress" + +} + + +if($Argument -like '*drawio*') { + + LogWrite "Installing draw.io" + choco install -y drawio +} + + +if($Argument -like '*Wireguard*') { + + LogWrite "Installing Wireguard" + choco install -y wireguard +} + + +if($Argument -like '*NoMachine-*') { + + LogWrite "Installing NoMachine" + choco install -y nomachine + # LogWrite "Removing nxplayer.exe" + # Remove-Item -Path 'C:\Program Files (x86)\NoMachine\bin\nxplayer.exe' + Remove-Item -Path 'C:\Users\Public\Desktop\NoMachine.lnk' + + + # https://kb.nomachine.com/AR05M00847 + # disable auto update checks since chocolatey is used + # Disable screen blanking when remoting in + # do not lock screen when disconnecting + +} + +if($Argument -like '*NoMachineConfig*') { + + LogWrite "Copying NoMachine Configuration" + + If (Test-Path -Path "C:\Program Files (x86)\NoMachine"){ + $NoMachineDirectory = "C:\Program Files (x86)\NoMachine" + } + else { + $NoMachineDirectory = "C:\Program Files\NoMachine" + } + + # https://kb.nomachine.com/AR05M00847 + # disable auto update checks since chocolatey is used + Copy-Item "${ParentFolder}\NoMachine\server.cfg" -Destination "${NoMachineDirectory}\etc\server.cfg" + + # restart nomachine server + LogWrite "Restarting NoMachine Service" + & "${NoMachineDirectory}\bin\nxserver.exe" --restart + +} + +if($Argument -like '*Office365*') { + # Office Deployment Tool XML File editing: + # https://answers.microsoft.com/en-us/msoffice/forum/all/installing-only-particular-office-365-programs/9ebb27d4-1084-42e7-b84a-c5dd76e9232c + # Current config skips: Grove, Lync, SkypeforBusiness, and Access + + LogWrite "Installing Office365" + + $arg1 = "${ParentFolder}\Office365\ODT_x64\setup.exe" + LogWrite $arg1 + $arg2 = "/configure" + LogWrite $arg2 + $arg3 = "${ParentFolder}\Office365\ODT_x64\configuration-Office365-x64Business.xml" + LogWrite $arg3 + + & $arg1 $arg2 $arg3 + + + # TEMPORARY until i can figure out why the variables won't work + # & \\smb\Toolbox\Installs\Office365\ODT_x64\setup.exe /configure \\smb\Toolbox\Installs\Office365\ODT_x64\configuration-Office365-x64Business.xml + +} + + +if($Argument -like '*Office32bit*') { + + LogWrite "Installing Office 365 32bit" + Start-Process -Filepath "${ParentFolder}\Office365\Office365Setup_32BIT.exe" +} + +if($Argument -like '*Parcview*') { + + LogWrite "Installing Parcview" + + # if parcview not installed, install it + if(!(Test-Path -Path "C:\Program Files (x86)\Capstone\PARCView\PARCView.exe")){ + + # start the installer + & "\\smb\Parcview\PARCView Silent No Launch.msi" + + LogWrite "Waiting 5 minutes for install to complete" + powershell Start-Sleep -s 300 + + # Start-Process -Filepath "${ParentFolder}\PARCview 5.0.0.6\PARCView Silent No Launch.msi" + # LogWrite "Sleeping 5 minutes for install to complete" + # powershell Start-Sleep -s 300 + } + + # Allow inbound traffic firewall rule + New-NetFirewallRule -DisplayName "PARCView" -Direction Inbound -Program "C:\Program Files (x86)\Capstone\PARCView\PARCView.exe" -Action Allow + + LogWrite "Starting Parcview" + Start-Process -Filepath "C:\Program Files (x86)\Capstone\PARCView\PARCView.exe" + +} + +if($Argument -like '*PVConfig*') { + LogWrite "Copying Configuration File" + # Create config folder + New-Item -Path 'C:\ProgramData\Capstone\PARCView' -ItemType Directory + + # copy configuration file + Copy-Item "\\smb\Parcview\program files\Capstone\PARCView\PVConfig.XML" -Destination "C:\ProgramData\Capstone\PARCView\PVConfig.XML" -Force +} + + +if($Argument -like '*BGInfo*') { + + LogWrite "Setting BGInfo Wallpaper" + & "${ParentFolder}\BGInfo\Bginfo.exe" "${ParentFolder}\BGInfo\BGInfo_Template.bgi" "/NOLICPROMPT" "/TIMER:0" + +} + +if($Argument -like '*BGBootInfo*') { + + LogWrite "Setting BGInfo on boot" + New-Item -Path "C:\Scripts\" -ItemType Directory + + LogWrite "${ParentFolder}\BGInfo" "C:\Scripts\" + xcopy /E /y "${ParentFolder}\BGInfo" "C:\Scripts\" + + # copy to current user + Copy-Item "${ParentFolder}\BGInfo\SystemStartup_BGInfo.lnk" -Destination "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\SystemStartup_BGInfo.lnk" -Force +} + + +if($Argument -like '*OOSU*') { + Start-Process -FilePath "${ParentFolder}\OOSU10\OOSU10.exe" -ArgumentList "${ParentFolder}\OOSU10\ooshutup10.cfg" +} + + +if($Argument -like '*urBackup*') { + LogWrite "Installing urBackup" + & "${ParentFolder}\urBackup\UrBackup Client 2.5.25-cbt(x64).msi" /quiet +} + +if($Argument -like '*DisplayTime30*') { + LogWrite "Changing Display Timeout to 30 mins" + powercfg -change -monitor-timeout-ac 30 + powercfg -change -monitor-timeout-dc 30 + + LogWrite "Changing Hibernate to never, and 30 mins if on battery" + powercfg -change -standby-timeout-ac 0 + powercfg -change -standby-timeout-dc 30 + +} + + +if($Argument -like '*DisplayTime0*') { + LogWrite "Changing Display Timeout to never" + powercfg -change -monitor-timeout-ac 0 + powercfg -change -monitor-timeout-dc 30 + + LogWrite "Changing Hibernate to never, and 30 mins if on battery" + powercfg -change -standby-timeout-ac 0 + powercfg -change -standby-timeout-dc 30 +} + + +if($Argument -like '*AutoLogon*') { + LogWrite "Starting AutoLogon" + Start-Process -Filepath "${ParentFolder}\AutoLogon\Autologon64.exe" + +} + +if($Argument -like '*Debloat*') { + # Clear public desktop folder + $Folder = "C:\Users\Public\Desktop\" + Get-ChildItem $Folder | Remove-Item -recurse -Force + LogWrite "Content of $Folder Deleted.." -BackgroundColor Green -ForegroundColor Black +} + + +## Printers +if($Argument -like '*Printer_TM06SUPICANONCOLOR*') { + LogWrite "Installing Printer: TM06SUPI - CANON (COLOR) AND TM06SUPI - CANON (COLOR)" + Start-Process -Filepath "\\rosewood\TM06SUPI - CANON (COLOR)" + # powershell Start-Sleep -s 60 + LogWrite "Installing Printer: TM06SUPI - CANON (COLOR) AND TM06SUPI - CANON (BW)" + Start-Process -Filepath "\\rosewood\TM06SUPI - CANON (BW)" +} + +if($Argument -like '*PrinterDrivers*') { + LogWrite "Installing Printer: MGMT - SHARP" + Start-Process -Filepath "\\rosewood\MGMT - SHARP" + + LogWrite "Installing Printer: MNT - SHARP" + Start-Process -Filepath "\\rosewood\MNT - SHARP" +} + +if($Argument -like '*MGMTSHARP*') { + LogWrite "Installing Printer: MGMT - SHARP" + Start-Process -Filepath "\\rosewood\MGMT - SHARP" +} + +if($Argument -like '*Printer_MGMTHPColor*') { + LogWrite "Installing Printer: MGMT - HP (Color)" + Start-Process -Filepath "\\rosewood\MGMT - HP (Color)" + Start-Process -Filepath "\\rosewood\MGMT - HP (BW)" +} + + + + + +if($Argument -like '*SaneWindowsUpdates*') { + # pulled from Titus WinUtil + # https://github.com/ChrisTitusTech/winutil/blob/main/winutil.ps1 + LogWrite "Disabling driver offering through Windows Update..." + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Force | Out-Null +} +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -Type DWord -Value 1 +If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Force | Out-Null +} +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -Type DWord -Value 1 +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -Type DWord -Value 1 +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -Type DWord -Value 0 +If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" | Out-Null +} +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -Type DWord -Value 1 +LogWrite "Disabling Windows Update automatic restart..." +If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | Out-Null +} +LogWrite "Disabling Auto Reboot for Updates" +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -Type DWord -Value 1 +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -Type DWord -Value 0 + +LogWrite "Defering Feature Updates for 1 year and defering windows updates to sane levels" +Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -Type DWord -Value 20 +Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -Type DWord -Value 365 +Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays " -Type DWord -Value 4 + +} + + + +if($Argument -like '*CleanW11StartMenu*') { + $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 } + + xcopy "${ParentFolder}\W11StartMenu\start2.bin" "C:\Users\Default\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\" /y + + if ($env:USERNAME -ne 'defaultuser0') { Stop-Process -Name explorer -Force } + +} + +if($Argument -like '*AddWifiNetwork*') { + netsh wlan add profile filename="${ParentFolder}\Wifi\Wifi-Settings.xml" +} + + + +if($Argument -like '*DisableLockScreen*') { + LogWrite "Importing Disable Lockscreen Registory Key" + reg import ${ParentFolder}\PowerShell\DisableLockScreen.reg +} + + +if($Argument -like '*SpeakerTest*'){ + Set-Speaker -Volume 5 + Start-Process https://www.youtube.com/watch?v=LDU_Txk06tM +} +if($Argument -like '*MicrophoneTest*'){ + Start-Process https://mictests.com/ +} + +# Join Domain +if($Argument -like '*DomainJoin*') { + LogWrite "Joining Domain" + + Add-Computer -DomainName FULLDOMAINNAME +} + + +if($Argument -like '*DellCU*') { + $Manufacturer=Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object "Manufacturer" + + if($Manufacturer -like '*Dell*') { + + LogWrite "Checking if running on Dell Hardware" + + + LogWrite "Installing Dell Command Update" + choco install -y dellcommandupdate + + # chocolatey can instlal dell command update to Program Files or Progam files (x86) + # starting sometime around 5/18/2023, it seems to install to Program Files + If (Test-Path -Path "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe"){ + $DCUCLIPath = "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" + } + else { + $DCUCLIPath = "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" + } + + + # Disable automatic update checks + # https://dl.dell.com/content/manual13608255-dell-command-update-version-4-x-reference-guide.pdf?language=en-us&ps=true + If (Test-Path -Path "${DCUCLIPath}") { + # Set weekly update check + # Start-Process -FilePath "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" -ArgumentList "/configure", "-scheduleWeekly" + # Start dell command update so you can disable automatic update checking manually + # Start-Process -Filepath "C:\Program Files (x86)\Dell\CommandUpdate\DellCommandUpdate.exe" + + # set dell CU update manual through cli utility + & "${DCUCLIPath}" /configure -scheduleManual + + # Run utility and install updates and disable automatic reboot for the run + & "${DCUCLIPath}" /ApplyUpdates -reboot=disable + + } + else { + LogWrite "Dell Command Update Failed to Install. - ${DCUCLIPath} - doens't exist" + } + } + else { + LogWrite "Skipping Dell Command Update install as this is not a Dell Machine" + } + +} + + +# Update windows through powershell +if($Argument -like '*UpdateWindows*') { + + # LogWrite "Muting System Volume" + LogWrite "Muting System Volume" + $obj = new-object -com wscript.shell + $obj.SendKeys([char]173) + + + LogWrite "Changing Display Timeout to 30 mins for updating Windows" + powercfg -change -monitor-timeout-ac 30 + powercfg -change -monitor-timeout-dc 30 + + LogWrite "Installing Windows Updates through PowerShell" + + # https://pureinfotech.com/install-windows-10-update-powershell/ + # Install-Module PSWindowsUpdate -Force + # Get-WindowsUpdate + # Install-WindowsUpdate -Force + # Get-WindowsUpdate -AcceptAll -Install -AutoReboot + + Install-PackageProvider -Name NuGet -Force + Install-Module PSWindowsUpdate -Force + # Add-WUServiceManager -MicrosoftUpdate -Force + Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot # | Out-File "C:\($env.computername)-MSUpdates.log" -Force + powershell Start-Sleep -s 20 + + # install twice as sometimes there is more updates after running it for the first time. + Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot # | Out-File "C:\($env.computername)-MSUpdates.log" -Force + + # wuauclt /detectnow /updatenow + # control update + # UsoClient /startScan /StartDownload /StartInstall + # control update + + # wait 1 minute before continuing in case windows needs to restart + LogWrite "Waiting 1 minute in case a PC reboot is needed" + powershell Start-Sleep -s 60 + +} + +if($Argument -like '*SilentSystemUpdate*') { + + if($Argument -like '*Staggered*') { + $SleepLength=(300..18000 | get-random) # between 5 minutes and 5 hours + + LogWrite "Sleeping ${SleepLength} seconds before launching System Updates" + + powershell start-sleep -s ${SleepLength} + } + + # OutputPath = 'C:\Users\%A_Username%\Syncthing\Configurations\Chocolatey\%A_ComputerName%_ChocolateyApps.config' + + LogWrite "Chocolatey: Enabling allowGlobalConfirmation" + choco feature enable -n=allowGlobalConfirmation + # choco feature enable -n useFipsCompliantChecksums + + LogWrite "Chocolatey: Upgrading all Packages" + choco upgrade all + + LogWrite "Chocolatey: Installing pswindowsupdate" + choco install pswindowsupdate + + # Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d -Confirm:$false + + LogWrite "Chocolatey: Installing Windows Updates without restarting" + Install-WindowsUpdate -MicrosoftUpdate -AcceptAll + Get-WuInstall -AcceptAll -IgnoreReboot + + LogWrite "Checking if running on Dell Hardware" + $Manufacturer=Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object "Manufacturer" + + if($Manufacturer -like '*Dell*') { + + LogWrite "Installing Dell Command Update" + choco install -y dellcommandupdate + + # chocolatey can instlal dell command update to Program Files or Progam files (x86) + # starting sometime around 5/18/2023, it seems to install to Program Files + If (Test-Path -Path "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe"){ + $DCUCLIPath = "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" + } + else { + $DCUCLIPath = "C:\Program Files\Dell\CommandUpdate\dcu-cli.exe" + } + + + # Disable automatic update checks + # https://dl.dell.com/content/manual13608255-dell-command-update-version-4-x-reference-guide.pdf?language=en-us&ps=true + If (Test-Path -Path "${DCUCLIPath}") { + # Set weekly update check + # Start-Process -FilePath "C:\Program Files (x86)\Dell\CommandUpdate\dcu-cli.exe" -ArgumentList "/configure", "-scheduleWeekly" + # Start dell command update so you can disable automatic update checking manually + # Start-Process -Filepath "C:\Program Files (x86)\Dell\CommandUpdate\DellCommandUpdate.exe" + + # set dell CU update manual through cli utility + & "${DCUCLIPath}" /configure -scheduleManual + + # Run utility and install updates and disable automatic reboot for the run + & "${DCUCLIPath}" /ApplyUpdates -reboot=disable + + } + else { + LogWrite "Dell Command Update Failed to Install. - ${DCUCLIPath} - doesn't exist" + } + } + else { + LogWrite "Skipping Dell Command Update Installation and Updates as this is not a Dell Machine" + } + + + # export chocolatey package list to User's Folder so it gets backed up with urBackup + LogWrite "Exporting Chocolatey Package list to: ${ChocoAppListFP}" + choco export -o="${ChocoAppListFP}" --allowunofficial + + # Clean all shortcuts from Public Desktop + LogWrite "Removing all Desktop Shortcuts from \Users\Public\Desktop" + Get-ChildItem 'C:\Users\Public\Desktop' | Remove-Item -Force -Recurse +} + + + + +if($Argument -like '*Debloat*') { + + + # https://stackoverflow.com/questions/45152335/unpin-the-microsoft-edge-and-store-taskbar-shortcuts-programmatically?answertab=trending#tab-top + function Unpin-App([string]$appname) { + ((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | + ?{$_.Name -eq $appname}).Verbs() | ?{$_.Name.replace('&','') -match 'Unpin from taskbar'} | %{$_.DoIt()} + } + LogWrite "Unpinning Useless Taskbar Shortcuts" + Unpin-App("Microsoft Store") + Unpin-App("Mail") + Unpin-App("Chat") + + # https://www.brankovucinec.com/powershell-reclaim-windows-10/ + # Hide Task View button + LogWrite "Hiding Task View button..." + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 0 + + # https://www.brankovucinec.com/powershell-reclaim-windows-10/ + # Hide Search button / box + LogWrite "Hiding Search Box / Button..." + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 0 + + # hide cortana Button + # https://winaero.com/hide-cortana-button-taskbar-windows-10/ + LogWrite "Hiding Cortana Button" + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCortanaButton" -Type DWord -Value 0 + + + + # Disable News Feeds + # pulled from Titus WinUtil + # https://github.com/ChrisTitusTech/winutil/blob/main/winutil.ps1 + # LogWrite "Disable News and Interests" + # https://answers.microsoft.com/en-us/windows/forum/all/hide-news-and-interests-for-new-users/feaeddbb-a3ee-48eb-b56a-e3497df07a28 + # Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" -Name "HeadlinesOnboardingComplete" -Type DWord -Value 1 + + # Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" -Name "EnableFeeds" -Type DWord -Value 0 + # Remove "News and Interest" from taskbar + # Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 2 + + # https://www.brankovucinec.com/powershell-reclaim-windows-10/ + # Disable Cortana + LogWrite "Disabling Cortana..." + If (!(Test-Path "HKCU:\Software\Microsoft\Personalization\Settings")) { + New-Item -Path "HKCU:\Software\Microsoft\Personalization\Settings" -Force | Out-Null + } + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0 + If (!(Test-Path "HKCU:\Software\Microsoft\InputPersonalization")) { + New-Item -Path "HKCU:\Software\Microsoft\InputPersonalization" -Force | Out-Null + } + Set-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1 + If (!(Test-Path "HKCU:\Software\Microsoft\InputPersonalization\TrainedDataStore")) { + New-Item -Path "HKCU:\Software\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null + } + Set-ItemProperty -Path "HKCU:\Software\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0 + + # Remove Meet-Now icon + If (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) { + New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Force | Out-Null + } + + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "HideSCAMeetNow" -Value 1 + + # Uninstall Bloatware + # pulled from Titus WinUtil + # https://github.com/ChrisTitusTech/winutil/blob/main/winutil.ps1 + LogWrite "Uninstalling Bloatware" + $Bloatware = @( + #Unnecessary Windows 10 AppX Apps + "Microsoft.3DBuilder" + "Microsoft.Microsoft3DViewer" + "Microsoft.AppConnector" + "Microsoft.BingFinance" + "Microsoft.BingNews" + "Microsoft.BingSports" + "Microsoft.BingTranslator" + "Microsoft.BingWeather" + "Microsoft.BingFoodAndDrink" + "Microsoft.BingHealthAndFitness" + "Microsoft.BingTravel" + "Microsoft.MinecraftUWP" + "Microsoft.GamingServices" + "Microsoft.WindowsReadingList" + "Microsoft.GetHelp" + "Microsoft.Getstarted" + "Microsoft.Messaging" + "Microsoft.Microsoft3DViewer" + "Microsoft.MicrosoftSolitaireCollection" + "Microsoft.NetworkSpeedTest" + "Microsoft.News" + "Microsoft.Office.Lens" + "Microsoft.Office.Sway" + "Microsoft.Office.OneNote" + "Microsoft.OneConnect" + "Microsoft.People" + "Microsoft.Print3D" + "Microsoft.SkypeApp" + "Microsoft.Wallet" + "Microsoft.Whiteboard" + "Microsoft.WindowsAlarms" + "microsoft.windowscommunicationsapps" + "Microsoft.WindowsFeedbackHub" + "Microsoft.WindowsMaps" + "Microsoft.WindowsPhone" + "Microsoft.WindowsSoundRecorder" + "Microsoft.XboxApp" + "Microsoft.ConnectivityStore" + "Microsoft.CommsPhone" + "Microsoft.ScreenSketch" + "Microsoft.Xbox.TCUI" + "Microsoft.XboxGameOverlay" + "Microsoft.XboxGamingOverlay" + "Microsoft.XboxGameCallableUI" + "Microsoft.XboxSpeechToTextOverlay" + "Microsoft.MixedReality.Portal" + "Microsoft.XboxIdentityProvider" + "*Xbox*" + "Microsoft.ZuneMusic" + "Microsoft.ZuneVideo" + "Microsoft.YourPhone" + "Microsoft.Getstarted" + "Microsoft.MicrosoftOfficeHub" + + #Sponsored Windows 10 AppX Apps + #Add sponsored/featured apps to remove in the "*AppName*" format + "*EclipseManager*" + "*ActiproSoftwareLLC*" + "*AdobeSystemsIncorporated.AdobePhotoshopExpress*" + "*Duolingo-LearnLanguagesforFree*" + "*PandoraMediaInc*" + "*CandyCrush*" + "*BubbleWitch3Saga*" + "*Wunderlist*" + "*Flipboard*" + "*Twitter*" + "*Facebook*" + "*Royal Revolt*" + "*Sway*" + "*Speed Test*" + "*Dolby*" + "*Viber*" + "*ACGMediaPlayer*" + "*Netflix*" + "*OneCalendar*" + "*LinkedInforWindows*" + "*HiddenCityMysteryofShadows*" + "*Hulu*" + "*HiddenCity*" + "*AdobePhotoshopExpress*" + "*HotspotShieldFreeVPN*" + "*MicrosoftTeams*" + + + #Optional: Typically not removed but you can if you need to + "*Microsoft.Advertising.Xaml*" + #"*Microsoft.MSPaint*" + #"*Microsoft.MicrosoftStickyNotes*" + #"*Microsoft.Windows.Photos*" + #"*Microsoft.WindowsCalculator*" + #"*Microsoft.WindowsStore*" + + # W11 Widgets + # https://pureinfotech.com/uninstall-widgets-powershell-windows-11/ + "*WebExperience*" + + + # bloatware apps from BloatyNosy + "*2FE3CB00.PICSART-PHOTOSTUDIO*" + "*4DF9E0F8.Netflix*" + "*5319275A.WhatsAppDesktop*" + "*9E2F88E3.TWITTER*" + "*NAVER.LINEwin8_8ptj331gd3tyt*" + "*SpotifyAB.SpotifyMusic*" + "*king.com.CandyCrushFriends*" + "*king.com.CandyCrushSaga*" + "*king.com.FarmHeroesSaga*" + "*22364Disney.ESPNBetaPWA*" + "*5A894077.McAfeeSecurity*" + "*AdobeSystemsIncorporated.AdobeCreativeCloudExpress*" + "*AmazonVideo.PrimeVideo*" + "*AppUp.IntelGraphicsExperience*" + "*B9ECED6F.ASUSPCAssistant*" + "*B9ECED6F.ScreenPadMaster*" + "*BytedancePte.Ltd.TikTok*" + "*Clipchamp.Clipchamp*" + "*DTSInc.DTSAudioProcess*" + "*AdobeSystemsIncorporated.AdobeLightroom&" + "*AdobeSystemsIncorporated.AdobePhotoshopExpress*" + "*Clipchamp.Clipchamp_yxz26nhyzhsrt*" + "*CorelCorporation.PaintShopPro*" + "*FACEBOOK.317180B0BB486*" + "*Facebook.InstagramBeta*" + "*AD2F1837.HPJumpStarts*" + "*AD2F1837.HPPCHardwareDiagnosticsWindows*" + "*AD2F1837.HPPowerManager*" + "*AD2F1837.HPPrivacySettings*" + "*AD2F1837.HPSupportAssistant*" + "*AD2F1837.HPSureShieldAI*" + "*AD2F1837.HPSystemInformation*" + "*AD2F1837.HPQuickDrop*" + "*AD2F1837.HPWorkWell*" + "*AD2F1837.myHP*" + "*AD2F1837.HPDesktopSupportUtilities*" + "*AD2F1837.HPQuickTouch*" + "*AD2F1837.HPEasyClean*" + "*AD2F1837.HPSystemInformation*" + "*Microsoft.549981C3F5F10*" + "*Microsoft.BingNews*" + "*Microsoft.BingWeather*" + "*Microsoft.GamingApp*" + "*Microsoft.Getstarted*" + "*Microsoft.Microsoft3DViewer*" + "*Microsoft.MicrosoftOfficeHub*" + "*Microsoft.MicrosoftSolitaireCollection*" + "*Microsoft.MicrosoftStickyNotes*" + "*Microsoft.MixedReality.Portal*" + "*Microsoft.Office.OneNote*" + "*Microsoft.OneDriveSync*" + "*Microsoft.OneConnect*" + "*Microsoft.People*" + "*Microsoft.Print3D*" + "*Microsoft.SkypeApp*" + "*Microsoft.Wallet*" + "*Microsoft.WindowsSoundRecorder*" + + ) + +foreach ($Bloat in $Bloatware) { + Get-AppxPackage -Name $Bloat| Remove-AppxPackage + Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Bloat | Remove-AppxProvisionedPackage -Online + LogWrite "Trying to remove $Bloat." +} + +# Set Services to Manual +# pulled from Titus WinUtil +# https://github.com/ChrisTitusTech/winutil/blob/main/winutil.ps1 +$services = @( + "ALG" # Application Layer Gateway Service(Provides support for 3rd party protocol plug-ins for Internet Connection Sharing) + "AJRouter" # Needed for AllJoyn Router Service + "BcastDVRUserService_48486de" # GameDVR and Broadcast is used for Game Recordings and Live Broadcasts + #"BDESVC" # Bitlocker Drive Encryption Service + #"BFE" # Base Filtering Engine (Manages Firewall and Internet Protocol security) + #"BluetoothUserService_48486de" # Bluetooth user service supports proper functionality of Bluetooth features relevant to each user session. + #"BrokerInfrastructure" # Windows Infrastructure Service (Controls which background tasks can run on the system) + "Browser" # Let users browse and locate shared resources in neighboring computers + # "BthAvctpSvc" # AVCTP service (needed for Bluetooth Audio Devices or Wireless Headphones) + "CaptureService_48486de" # Optional screen capture functionality for applications that call the Windows.Graphics.Capture API. + # "cbdhsvc_48486de" # Clipboard Service + "diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service + "DiagTrack" # Diagnostics Tracking Service + "dmwappushservice" # WAP Push Message Routing Service + "DPS" # Diagnostic Policy Service (Detects and Troubleshoots Potential Problems) + "edgeupdate" # Edge Update Service + "edgeupdatem" # Another Update Service + "EntAppSvc" # Enterprise Application Management. + "Fax" # Fax Service + "fhsvc" # Fax History + "FontCache" # Windows font cache + #"FrameServer" # Windows Camera Frame Server (Allows multiple clients to access video frames from camera devices) + "gupdate" # Google Update + "gupdatem" # Another Google Update Service + "iphlpsvc" # ipv6(Most websites use ipv4 instead) + "lfsvc" # Geolocation Service + #"LicenseManager" # Disable LicenseManager (Windows Store may not work properly) + # "lmhosts" # TCP/IP NetBIOS Helper + "MapsBroker" # Downloaded Maps Manager + "MicrosoftEdgeElevationService" # Another Edge Update Service + "MSDTC" # Distributed Transaction Coordinator + "ndu" # Windows Network Data Usage Monitor (Disabling Breaks Task Manager Per-Process Network Monitoring) + "NetTcpPortSharing" # Net.Tcp Port Sharing Service + "PcaSvc" # Program Compatibility Assistant Service + "PerfHost" # Remote users and 64-bit processes to query performance. + "PhoneSvc" # Phone Service(Manages the telephony state on the device) + #"PNRPsvc" # Peer Name Resolution Protocol (Some peer-to-peer and collaborative applications, such as Remote Assistance, may not function, Discord will still work) + #"p2psvc" # Peer Name Resolution Protocol(Enables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work)iscord will still work) + #"p2pimsvc" # Peer Networking Identity Manager (Peer-to-Peer Grouping services may not function, and some applications, such as HomeGroup and Remote Assistance, may not function correctly. Discord will still work) + # "PrintNotify" # Windows printer notifications and extentions + # "QWAVE" # Quality Windows Audio Video Experience (audio and video might sound worse) + # "RemoteAccess" # Routing and Remote Access + "RemoteRegistry" # Remote Registry + "RetailDemo" # Demo Mode for Store Display + # "RtkBtManServ" # Realtek Bluetooth Device Manager Service + "SCardSvr" # Windows Smart Card Service + # "seclogon" # Secondary Logon (Disables other credentials only password will work) + "SEMgrSvc" # Payments and NFC/SE Manager (Manages payments and Near Field Communication (NFC) based secure elements) + "SharedAccess" # Internet Connection Sharing (ICS) + # "Spooler" # Printing + "stisvc" # Windows Image Acquisition (WIA) + #"StorSvc" # StorSvc (usb external hard drive will not be reconized by windows) + "SysMain" # Analyses System Usage and Improves Performance + "TrkWks" # Distributed Link Tracking Client + #"WbioSrvc" # Windows Biometric Service (required for Fingerprint reader / facial detection) + "WerSvc" # Windows error reporting + "wisvc" # Windows Insider program(Windows Insider will not work if Disabled) + #"WlanSvc" # WLAN AutoConfig + "WMPNetworkSvc" # Windows Media Player Network Sharing Service + "WpcMonSvc" # Parental Controls + "WPDBusEnum" # Portable Device Enumerator Service + "WpnService" # WpnService (Push Notifications may not work) + #"wscsvc" # Windows Security Center Service + "WSearch" # Windows Search + "XblAuthManager" # Xbox Live Auth Manager (Disabling Breaks Xbox Live Games) + "XblGameSave" # Xbox Live Game Save Service (Disabling Breaks Xbox Live Games) + "XboxNetApiSvc" # Xbox Live Networking Service (Disabling Breaks Xbox Live Games) + "XboxGipSvc" # Xbox Accessory Management Service + # Hp services + "HPAppHelperCap" + "HPDiagsCap" + "HPNetworkCap" + "HPSysInfoCap" + "HpTouchpointAnalyticsService" + # Hyper-V services + "HvHost" + "vmicguestinterface" + "vmicheartbeat" + "vmickvpexchange" + "vmicrdv" + "vmicshutdown" + "vmictimesync" + "vmicvmsession" + # Services that cannot be disabled + #"WdNisSvc" + ) + +foreach ($service in $services) { + # -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist + + LogWrite "Setting $service StartupType to Manual" + Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Manual +} + +} # END OF DEBLOAT + + + +if($Argument -like '*Restart*') { + + if($Argument -like '*RestartInstant*') { + shutdown /r /t 0 + exit + } + else { + + LogWrite "Restarting PC in 30 seconds" + powershell Start-Sleep -s 30 + + shutdown /r /t 0 + } +} + + + + + + + + + + +Write-Host "Finished!" + +Exit \ No newline at end of file diff --git a/Installs/PowerShell/RenamePC.ps1 b/Installs/PowerShell/RenamePC.ps1 new file mode 100644 index 0000000..4eb1027 --- /dev/null +++ b/Installs/PowerShell/RenamePC.ps1 @@ -0,0 +1,5 @@ +$Argument=$args[0] + Write-Host "Passed Arguments: $Argument" + + +Rename-Computer -NewName "$Argument" -DomainCredential ity \ No newline at end of file diff --git a/Installs/PowerShell/SetStaticIPAddress.ps1 b/Installs/PowerShell/SetStaticIPAddress.ps1 new file mode 100644 index 0000000..e75cfb7 --- /dev/null +++ b/Installs/PowerShell/SetStaticIPAddress.ps1 @@ -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 diff --git a/Installs/PowerShell/UpdateChocolateyAndWindows.ps1 b/Installs/PowerShell/UpdateChocolateyAndWindows.ps1 new file mode 100644 index 0000000..8ab5191 --- /dev/null +++ b/Installs/PowerShell/UpdateChocolateyAndWindows.ps1 @@ -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 \ No newline at end of file diff --git a/Installs/PowerShell/Upgrade_Chocolatey.ps1 b/Installs/PowerShell/Upgrade_Chocolatey.ps1 new file mode 100644 index 0000000..cdcc61a --- /dev/null +++ b/Installs/PowerShell/Upgrade_Chocolatey.ps1 @@ -0,0 +1 @@ +choco upgrade all -y \ No newline at end of file diff --git a/Installs/PowerShell/chirstitustoolboxdebloat10.ps1 b/Installs/PowerShell/chirstitustoolboxdebloat10.ps1 new file mode 100644 index 0000000..069be2c --- /dev/null +++ b/Installs/PowerShell/chirstitustoolboxdebloat10.ps1 @@ -0,0 +1,1510 @@ +#for CI/CD +$BranchToUse = 'main' + +<# +.NOTES + Author : Chris Titus @christitustech + GitHub : https://github.com/ChrisTitusTech + Version 0.0.1 +#> + +Start-Transcript $ENV:TEMP\Winutil.log -Append + +# $inputXML = Get-Content "MainWindow.xaml" #uncomment for development +$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/ChrisTitusTech/winutil/$BranchToUse/MainWindow.xaml") #uncomment for Production + +# Check if chocolatey is installed and get its version +if ((Get-Command -Name choco -ErrorAction Ignore) -and ($chocoVersion = (Get-Item "$env:ChocolateyInstall\choco.exe" -ErrorAction Ignore).VersionInfo.ProductVersion)) { + Write-Output "Chocolatey Version $chocoVersion is already installed" +}else { + Write-Output "Seems Chocolatey is not installed, installing now" + Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) + powershell choco feature enable -n allowGlobalConfirmation +} + +#Load config files to hashtable +$configs = @{} + +( + "applications", + "tweaks", + "preset", + "feature" +) | ForEach-Object { + #$configs["$PSItem"] = Get-Content .\config\$PSItem.json | ConvertFrom-Json + $configs["$psitem"] = Invoke-RestMethod "https://raw.githubusercontent.com/ChrisTitusTech/winutil/$BranchToUse/config/$psitem.json" +} + + +$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^ + Write-Host "Unable to load Windows.Markup.XamlReader. Double-check syntax and ensure .net is installed." +} + +#=========================================================================== +# Store Form Objects In PowerShell +#=========================================================================== + +$xaml.SelectNodes("//*[@Name]") | ForEach-Object { Set-Variable -Name "WPF$($_.Name)" -Value $Form.FindName($_.Name) } + +#=========================================================================== +# Functions +#=========================================================================== + +Function Get-FormVariables { + #If ($global:ReadmeDisplay -ne $true) { Write-host "If you need to reference this display again, run Get-FormVariables" -ForegroundColor Yellow; $global:ReadmeDisplay = $true } + + + write-host "" + write-host " CCCCCCCCCCCCCTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT " + write-host " CCC::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T " + write-host "CC:::::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T " + write-host "C:::::CCCCCCCC::::CT:::::TT:::::::TT:::::TT:::::TT:::::::TT:::::T " + write-host "C:::::C CCCCCCTTTTTT T:::::T TTTTTTTTTTTT T:::::T TTTTTT" + write-host "C:::::C T:::::T T:::::T " + write-host "C:::::C T:::::T T:::::T " + write-host "C:::::C T:::::T T:::::T " + write-host "C:::::C T:::::T T:::::T " + write-host "C:::::C T:::::T T:::::T " + write-host "C:::::C T:::::T T:::::T " + write-host "C:::::C CCCCCC T:::::T T:::::T " + write-host "C:::::CCCCCCCC::::C TT:::::::TT TT:::::::TT " + write-host "CC:::::::::::::::C T:::::::::T T:::::::::T " + write-host "CCC::::::::::::C T:::::::::T T:::::::::T " + write-host " CCCCCCCCCCCCC TTTTTTTTTTT TTTTTTTTTTT " + write-host "" + write-host "====Chris Titus Tech=====" + write-host "=====Windows Toolbox=====" + + + #====DEBUG GUI Elements==== + + #write-host "Found the following interactable elements from our form" -ForegroundColor Cyan + #get-variable WPF* +} + +Function Get-CheckBoxes { + + <# + + .DESCRIPTION + Function is meant to find all checkboxes that are checked on the specefic tab and input them into a script. + + Outputed data will be the names of the checkboxes that were checked + + .EXAMPLE + + Get-CheckBoxes "WPFInstall" + + #> + + Param($Group) + + $CheckBoxes = get-variable | Where-Object {$psitem.name -like "$Group*" -and $psitem.value.GetType().name -eq "CheckBox"} + $Output = New-Object System.Collections.Generic.List[System.Object] + + if($Group -eq "WPFInstall"){ + Foreach ($CheckBox in $CheckBoxes){ + if($CheckBox.value.ischecked -eq $true){ + $Configs.applications.$($CheckBox.name).winget -split ";" | ForEach-Object { + $Output.Add($psitem) + } + + $CheckBox.value.ischecked = $false + } + } + } + + Write-Output $($Output | Select-Object -Unique) +} + +function Set-Presets { + <# + + .DESCRIPTION + Meant to make settings presets easier in the tweaks tab. Will pull the data from config/preset.json + + #> + + param($preset) + $CheckBoxesToCheck = $configs.preset.$preset + + #Uncheck all + get-variable | Where-Object {$_.name -like "*tweaks*"} | ForEach-Object { + if ($psitem.value.gettype().name -eq "CheckBox"){ + $CheckBox = Get-Variable $psitem.Name + if ($CheckBoxesToCheck -contains $CheckBox.name){ + $checkbox.value.ischecked = $true + } + else{$checkbox.value.ischecked = $false} + } + } + +} + +#=========================================================================== +# Global Variables +#=========================================================================== + +$AppTitle = "Chris Titus Tech's Windows Utility" + +#=========================================================================== +# Navigation Controls +#=========================================================================== + +$WPFTab1BT.Add_Click({ + $WPFTabNav.Items[0].IsSelected = $true + $WPFTabNav.Items[1].IsSelected = $false + $WPFTabNav.Items[2].IsSelected = $false + $WPFTabNav.Items[3].IsSelected = $false + }) +$WPFTab2BT.Add_Click({ + $WPFTabNav.Items[0].IsSelected = $false + $WPFTabNav.Items[1].IsSelected = $true + $WPFTabNav.Items[2].IsSelected = $false + $WPFTabNav.Items[3].IsSelected = $false + }) +$WPFTab3BT.Add_Click({ + $WPFTabNav.Items[0].IsSelected = $false + $WPFTabNav.Items[1].IsSelected = $false + $WPFTabNav.Items[2].IsSelected = $true + $WPFTabNav.Items[3].IsSelected = $false + }) +$WPFTab4BT.Add_Click({ + $WPFTabNav.Items[0].IsSelected = $false + $WPFTabNav.Items[1].IsSelected = $false + $WPFTabNav.Items[2].IsSelected = $false + $WPFTabNav.Items[3].IsSelected = $true + }) + +#=========================================================================== +# Tab 1 - Install +#=========================================================================== + +$WPFinstall.Add_Click({ + $WingetInstall = Get-CheckBoxes -Group "WPFInstall" + + # Check if winget is installed + Write-Host "Checking if Winget is Installed..." + if (Test-Path ~\AppData\Local\Microsoft\WindowsApps\winget.exe) { + #Checks if winget executable exists and if the Windows Version is 1809 or higher + Write-Host "Winget Already Installed" + } + else { + #Gets the computer's information + $ComputerInfo = Get-ComputerInfo + + #Gets the Windows Edition + $OSName = if ($ComputerInfo.OSName) { + $ComputerInfo.OSName + }else { + $ComputerInfo.WindowsProductName + } + + if (((($OSName.IndexOf("LTSC")) -ne -1) -or ($OSName.IndexOf("Server") -ne -1)) -and (($ComputerInfo.WindowsVersion) -ge "1809")) { + + Write-Host "Running Alternative Installer for LTSC/Server Editions" + + # Switching to winget-install from PSGallery from asheroto + # Source: https://github.com/asheroto/winget-installer + + Start-Process powershell.exe -Verb RunAs -ArgumentList "-command irm https://raw.githubusercontent.com/ChrisTitusTech/winutil/$BranchToUse/winget.ps1 | iex | Out-Host" -WindowStyle Normal + + } + elseif (((Get-ComputerInfo).WindowsVersion) -lt "1809") { + #Checks if Windows Version is too old for winget + Write-Host "Winget is not supported on this version of Windows (Pre-1809)" + } + else { + #Installing Winget from the Microsoft Store + Write-Host "Winget not found, installing it now." + Start-Process "ms-appinstaller:?source=https://aka.ms/getwinget" + $nid = (Get-Process AppInstaller).Id + Wait-Process -Id $nid + Write-Host "Winget Installed" + } + } + + if ($wingetinstall.Count -eq 0) { + $WarningMsg = "Please select the program(s) to install" + [System.Windows.MessageBox]::Show($WarningMsg, $AppTitle, [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) + return + } + + # Install all winget programs in new window + #$wingetinstall.ToArray() + # Define Output variable + $wingetResult = New-Object System.Collections.Generic.List[System.Object] + foreach ( $node in $wingetinstall ) { + try { + Start-Process powershell.exe -Verb RunAs -ArgumentList "-command Start-Transcript $ENV:TEMP\winget-$node.log -Append; winget install -e --accept-source-agreements --accept-package-agreements --silent $node | Out-Host" -WindowStyle Normal + $wingetResult.Add("$node`n") + Start-Sleep -s 6 + Wait-Process winget -Timeout 90 -ErrorAction SilentlyContinue + } + catch [System.InvalidOperationException] { + Write-Warning "Allow Yes on User Access Control to Install" + } + catch { + Write-Error $_.Exception + } + } + $wingetResult.ToArray() + $wingetResult | ForEach-Object { $_ } | Out-Host + + # Popup after finished + $ButtonType = [System.Windows.MessageBoxButton]::OK + if ($wingetResult -ne "") { + $Messageboxbody = "Installed Programs `n$($wingetResult)" + } + else { + $Messageboxbody = "No Program(s) are installed" + } + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $AppTitle, $ButtonType, $MessageIcon) + + Write-Host "=================================" + Write-Host "--- Installs are Finished ---" + Write-Host "=================================" + + }) + +$WPFInstallUpgrade.Add_Click({ + $isUpgradeSuccess = $false + try { + Start-Process powershell.exe -Verb RunAs -ArgumentList "-command winget upgrade --all | Out-Host" -Wait -WindowStyle Normal + $isUpgradeSuccess = $true + } + catch [System.InvalidOperationException] { + Write-Warning "Allow Yes on User Access Control to Upgrade" + } + catch { + Write-Error $_.Exception + } + $ButtonType = [System.Windows.MessageBoxButton]::OK + $Messageboxbody = if ($isUpgradeSuccess) { "Upgrade Done" } else { "Upgrade was not succesful" } + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $AppTitle, $ButtonType, $MessageIcon) + }) + +#=========================================================================== +# Tab 2 - Tweak Buttons +#=========================================================================== +$WPFdesktop.Add_Click({ + Set-Presets "Desktop" +}) + +$WPFlaptop.Add_Click({ + Set-Presets "laptop" +}) + +$WPFminimal.Add_Click({ + Set-Presets "minimal" +}) + +$WPFtweaksbutton.Add_Click({ + + If ( $WPFEssTweaksAH.IsChecked -eq $true ) { + Write-Host "Disabling Activity History..." + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableActivityFeed" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "PublishUserActivities" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "UploadUserActivities" -Type DWord -Value 0 + $WPFEssTweaksAH.IsChecked = $false + } + + If ( $WPFEssTweaksDeleteTempFiles.IsChecked -eq $true ) { + Write-Host "Delete Temp Files" + Get-ChildItem -Path "C:\Windows\Temp" *.* -Recurse | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue + Get-ChildItem -Path $env:TEMP *.* -Recurse | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue + $WPFEssTweaksDeleteTempFiles.IsChecked = $false + Write-Host "=======================================" + Write-Host "--- Cleaned following folders:" + Write-Host "--- C:\Windows\Temp" + Write-Host "--- "$env:TEMP + Write-Host "=======================================" + } + + If ( $WPFEssTweaksDVR.IsChecked -eq $true ) { + If (!(Test-Path "HKCU:\System\GameConfigStore")) { + New-Item -Path "HKCU:\System\GameConfigStore" -Force + } + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_DXGIHonorFSEWindowsCompatible" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_HonorUserFSEBehaviorMode" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_EFSEFeatureFlags" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name "GameDVR_FSEBehavior" -Type DWord -Value 2 + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR" -Force + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR" -Name "AllowGameDVR" -Type DWord -Value 0 + $WPFEssTweaksDVR.IsChecked = $false + } + + If ( $WPFEssTweaksHiber.IsChecked -eq $true ) { + Write-Host "Disabling Hibernation..." + Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Session Manager\Power" -Name "HibernateEnabled" -Type Dword -Value 0 + If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings")) { + New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" -Name "ShowHibernateOption" -Type Dword -Value 0 + $WPFEssTweaksHiber.IsChecked = $false + } + If ( $WPFEssTweaksHome.IsChecked -eq $true ) { + $WPFEssTweaksHome.IsChecked = $false + } + If ( $WPFEssTweaksLoc.IsChecked -eq $true ) { + Write-Host "Disabling Location Tracking..." + If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location")) { + New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Name "Value" -Type String -Value "Deny" + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" -Name "SensorPermissionState" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" -Name "Status" -Type DWord -Value 0 + Write-Host "Disabling automatic Maps updates..." + Set-ItemProperty -Path "HKLM:\SYSTEM\Maps" -Name "AutoUpdateEnabled" -Type DWord -Value 0 + $WPFEssTweaksLoc.IsChecked = $false + } + If ( $WPFMiscTweaksDisableTPMCheck.IsChecked -eq $true ) { + Write-Host "Disabling TPM Check..." + If (!(Test-Path "HKLM:\SYSTEM\Setup\MoSetup")) { + New-Item -Path "HKLM:\SYSTEM\Setup\MoSetup" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SYSTEM\Setup\MoSetup" -Name "AllowUpgradesWithUnsupportedTPM" -Type DWord -Value 1 + $WPFMiscTweaksDisableTPMCheck.IsChecked = $false + } + If ( $WPFEssTweaksDiskCleanup.IsChecked -eq $true ) { + Write-Host "Running Disk Cleanup on Drive C:..." + cmd /c cleanmgr.exe /d C: /VERYLOWDISK + $WPFEssTweaksDiskCleanup.IsChecked = $false + } + If ( $WPFMiscTweaksDisableUAC.IsChecked -eq $true) { + Write-Host "Disabling UAC..." + # This below is the pussy mode which can break some apps. Please. Leave this on 1. + # below i will show a way to do it without breaking some Apps that check UAC. U need to be admin tho. + # Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Type DWord -Value 0 + Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Type DWord -Value 0 # Default is 5 + # This will set the GPO Entry in Security so that Admin users elevate without any prompt while normal users still elevate and u can even leave it ennabled. + # It will just not bother u anymore + $WPFMiscTweaksDisableUAC.IsChecked = $false + } + + If ( $WPFMiscTweaksDisableNotifications.IsChecked -eq $true ) { + Write-Host "Disabling Notifications and Action Center..." + New-Item -Path "HKCU:\Software\Policies\Microsoft\Windows" -Name "Explorer" -force + New-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -PropertyType "DWord" -Value 1 + New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -PropertyType "DWord" -Value 0 -force + $WPFMiscTweaksDisableNotifications.IsChecked = $false + } + + If ( $WPFMiscTweaksRightClickMenu.IsChecked -eq $true ) { + Write-Host "Setting Classic Right-Click Menu..." + New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -Name "InprocServer32" -force -value "" + $WPFMiscTweaksRightClickMenu.IsChecked = $false + } + If ( $WPFchangedns.text -eq 'Google' ) { + Write-Host "Setting DNS to Google for all connections..." + $DC = "8.8.8.8" + $Internet = "8.8.4.4" + $dns = "$DC", "$Internet" + $Interfaces = [System.Management.ManagementClass]::new("Win32_NetworkAdapterConfiguration").GetInstances() + $Interfaces.SetDNSServerSearchOrder($dns) | Out-Null + } + If ( $WPFchangedns.text -eq 'Cloud Flare' ) { + Write-Host "Setting DNS to Cloud Flare for all connections..." + $DC = "1.1.1.1" + $Internet = "1.0.0.1" + $dns = "$DC", "$Internet" + $Interfaces = [System.Management.ManagementClass]::new("Win32_NetworkAdapterConfiguration").GetInstances() + $Interfaces.SetDNSServerSearchOrder($dns) | Out-Null + } + If ( $WPFchangedns.text -eq 'Level3' ) { + Write-Host "Setting DNS to Level3 for all connections..." + $DC = "4.2.2.2" + $Internet = "4.2.2.1" + $dns = "$DC", "$Internet" + $Interfaces = [System.Management.ManagementClass]::new("Win32_NetworkAdapterConfiguration").GetInstances() + $Interfaces.SetDNSServerSearchOrder($dns) | Out-Null + } + If ( $WPFchangedns.text -eq 'Open DNS' ) { + Write-Host "Setting DNS to Open DNS for all connections..." + $DC = "208.67.222.222" + $Internet = "208.67.220.220" + $dns = "$DC", "$Internet" + $Interfaces = [System.Management.ManagementClass]::new("Win32_NetworkAdapterConfiguration").GetInstances() + $Interfaces.SetDNSServerSearchOrder($dns) | Out-Null + } + If ( $WPFEssTweaksOO.IsChecked -eq $true ) { + If (!(Test-Path .\ooshutup10.cfg)) { + Write-Host "Running O&O Shutup with Recommended Settings" + curl.exe -s "https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg" -o ooshutup10.cfg + curl.exe -s "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -o OOSU10.exe + } + ./OOSU10.exe ooshutup10.cfg /quiet + $WPFEssTweaksOO.IsChecked = $false + } + If ( $WPFEssTweaksRP.IsChecked -eq $true ) { + Write-Host "Creating Restore Point in case something bad happens" + Enable-ComputerRestore -Drive "$env:SystemDrive" + Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS" + $WPFEssTweaksRP.IsChecked = $false + } + If ( $WPFEssTweaksServices.IsChecked -eq $true ) { + # Set Services to Manual + + $services = @( + "ALG" # Application Layer Gateway Service(Provides support for 3rd party protocol plug-ins for Internet Connection Sharing) + "AJRouter" # Needed for AllJoyn Router Service + "BcastDVRUserService_48486de" # GameDVR and Broadcast is used for Game Recordings and Live Broadcasts + #"BDESVC" # Bitlocker Drive Encryption Service + #"BFE" # Base Filtering Engine (Manages Firewall and Internet Protocol security) + #"BluetoothUserService_48486de" # Bluetooth user service supports proper functionality of Bluetooth features relevant to each user session. + #"BrokerInfrastructure" # Windows Infrastructure Service (Controls which background tasks can run on the system) + "Browser" # Let users browse and locate shared resources in neighboring computers + "BthAvctpSvc" # AVCTP service (needed for Bluetooth Audio Devices or Wireless Headphones) + "CaptureService_48486de" # Optional screen capture functionality for applications that call the Windows.Graphics.Capture API. + "cbdhsvc_48486de" # Clipboard Service + "diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service + "DiagTrack" # Diagnostics Tracking Service + "dmwappushservice" # WAP Push Message Routing Service + "DPS" # Diagnostic Policy Service (Detects and Troubleshoots Potential Problems) + "edgeupdate" # Edge Update Service + "edgeupdatem" # Another Update Service + #"EntAppSvc" # Enterprise Application Management. + "Fax" # Fax Service + "fhsvc" # Fax History + "FontCache" # Windows font cache + #"FrameServer" # Windows Camera Frame Server (Allows multiple clients to access video frames from camera devices) + "gupdate" # Google Update + "gupdatem" # Another Google Update Service + #"iphlpsvc" # ipv6(Most websites use ipv4 instead) - Needed for Xbox Live + "lfsvc" # Geolocation Service + #"LicenseManager" # Disable LicenseManager (Windows Store may not work properly) + "lmhosts" # TCP/IP NetBIOS Helper + "MapsBroker" # Downloaded Maps Manager + "MicrosoftEdgeElevationService" # Another Edge Update Service + "MSDTC" # Distributed Transaction Coordinator + "NahimicService" # Nahimic Service + #"ndu" # Windows Network Data Usage Monitor (Disabling Breaks Task Manager Per-Process Network Monitoring) + "NetTcpPortSharing" # Net.Tcp Port Sharing Service + "PcaSvc" # Program Compatibility Assistant Service + "PerfHost" # Remote users and 64-bit processes to query performance. + "PhoneSvc" # Phone Service(Manages the telephony state on the device) + #"PNRPsvc" # Peer Name Resolution Protocol (Some peer-to-peer and collaborative applications, such as Remote Assistance, may not function, Discord will still work) + #"p2psvc" # Peer Name Resolution Protocol(Enables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work)iscord will still work) + #"p2pimsvc" # Peer Networking Identity Manager (Peer-to-Peer Grouping services may not function, and some applications, such as HomeGroup and Remote Assistance, may not function correctly. Discord will still work) + "PrintNotify" # Windows printer notifications and extentions + "QWAVE" # Quality Windows Audio Video Experience (audio and video might sound worse) + "RemoteAccess" # Routing and Remote Access + "RemoteRegistry" # Remote Registry + "RetailDemo" # Demo Mode for Store Display + "RtkBtManServ" # Realtek Bluetooth Device Manager Service + "SCardSvr" # Windows Smart Card Service + "seclogon" # Secondary Logon (Disables other credentials only password will work) + "SEMgrSvc" # Payments and NFC/SE Manager (Manages payments and Near Field Communication (NFC) based secure elements) + "SharedAccess" # Internet Connection Sharing (ICS) + #"Spooler" # Printing + "stisvc" # Windows Image Acquisition (WIA) + #"StorSvc" # StorSvc (usb external hard drive will not be reconized by windows) + "SysMain" # Analyses System Usage and Improves Performance + "TrkWks" # Distributed Link Tracking Client + #"WbioSrvc" # Windows Biometric Service (required for Fingerprint reader / facial detection) + "WerSvc" # Windows error reporting + "wisvc" # Windows Insider program(Windows Insider will not work if Disabled) + #"WlanSvc" # WLAN AutoConfig + "WMPNetworkSvc" # Windows Media Player Network Sharing Service + "WpcMonSvc" # Parental Controls + "WPDBusEnum" # Portable Device Enumerator Service + "WpnService" # WpnService (Push Notifications may not work) + #"wscsvc" # Windows Security Center Service + "WSearch" # Windows Search + "XblAuthManager" # Xbox Live Auth Manager (Disabling Breaks Xbox Live Games) + "XblGameSave" # Xbox Live Game Save Service (Disabling Breaks Xbox Live Games) + "XboxNetApiSvc" # Xbox Live Networking Service (Disabling Breaks Xbox Live Games) + "XboxGipSvc" # Xbox Accessory Management Service + # Hp services + "HPAppHelperCap" + "HPDiagsCap" + "HPNetworkCap" + "HPSysInfoCap" + "HpTouchpointAnalyticsService" + # Hyper-V services + "HvHost" + "vmicguestinterface" + "vmicheartbeat" + "vmickvpexchange" + "vmicrdv" + "vmicshutdown" + "vmictimesync" + "vmicvmsession" + # Services that cannot be disabled + #"WdNisSvc" + ) + + foreach ($service in $services) { + # -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist + + Write-Host "Setting $service StartupType to Manual" + Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Manual -ErrorAction SilentlyContinue + } + $WPFEssTweaksServices.IsChecked = $false + } + If ( $WPFEssTweaksStorage.IsChecked -eq $true ) { + Write-Host "Disabling Storage Sense..." + Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" -Recurse -ErrorAction SilentlyContinue + $WPFEssTweaksStorage.IsChecked = $false + } + If ( $WPFEssTweaksTele.IsChecked -eq $true ) { + Write-Host "Disabling Telemetry..." + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 + Disable-ScheduledTask -TaskName "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" | Out-Null + Disable-ScheduledTask -TaskName "Microsoft\Windows\Application Experience\ProgramDataUpdater" | Out-Null + Disable-ScheduledTask -TaskName "Microsoft\Windows\Autochk\Proxy" | Out-Null + Disable-ScheduledTask -TaskName "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" | Out-Null + Disable-ScheduledTask -TaskName "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" | Out-Null + Disable-ScheduledTask -TaskName "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" | Out-Null + Write-Host "Disabling Application suggestions..." + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "ContentDeliveryAllowed" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "OemPreInstalledAppsEnabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEnabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEverEnabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SilentInstalledAppsEnabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338388Enabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338389Enabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-353698Enabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SystemPaneSuggestionsEnabled" -Type DWord -Value 0 + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableWindowsConsumerFeatures" -Type DWord -Value 1 + Write-Host "Disabling Feedback..." + If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules")) { + New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Force | Out-Null + } + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Name "NumberOfSIUFInPeriod" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "DoNotShowFeedbackNotifications" -Type DWord -Value 1 + Disable-ScheduledTask -TaskName "Microsoft\Windows\Feedback\Siuf\DmClient" -ErrorAction SilentlyContinue | Out-Null + Disable-ScheduledTask -TaskName "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" -ErrorAction SilentlyContinue | Out-Null + Write-Host "Disabling Tailored Experiences..." + If (!(Test-Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent")) { + New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Force | Out-Null + } + Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableTailoredExperiencesWithDiagnosticData" -Type DWord -Value 1 + Write-Host "Disabling Advertising ID..." + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" -Name "DisabledByGroupPolicy" -Type DWord -Value 1 + Write-Host "Disabling Error reporting..." + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name "Disabled" -Type DWord -Value 1 + Disable-ScheduledTask -TaskName "Microsoft\Windows\Windows Error Reporting\QueueReporting" | Out-Null + Write-Host "Restricting Windows Update P2P only to local network..." + If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config")) { + New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 1 + Write-Host "Stopping and disabling Diagnostics Tracking Service..." + Stop-Service "DiagTrack" -WarningAction SilentlyContinue + Set-Service "DiagTrack" -StartupType Disabled + Write-Host "Stopping and disabling WAP Push Service..." + Stop-Service "dmwappushservice" -WarningAction SilentlyContinue + Set-Service "dmwappushservice" -StartupType Disabled + Write-Host "Enabling F8 boot menu options..." + bcdedit /set `{current`} bootmenupolicy Legacy | Out-Null + Write-Host "Disabling Remote Assistance..." + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance" -Name "fAllowToGetHelp" -Type DWord -Value 0 + Write-Host "Stopping and disabling Superfetch service..." + Stop-Service "SysMain" -WarningAction SilentlyContinue + Set-Service "SysMain" -StartupType Disabled + + # Task Manager Details + If ((get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name CurrentBuild).CurrentBuild -lt 22557) { + Write-Host "Showing task manager details..." + $taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru + Do { + Start-Sleep -Milliseconds 100 + $preferences = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue + } Until ($preferences) + Stop-Process $taskmgr + $preferences.Preferences[28] = 0 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -Type Binary -Value $preferences.Preferences + } + else { Write-Host "Task Manager patch not run in builds 22557+ due to bug" } + + Write-Host "Showing file operations details..." + If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager")) { + New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" | Out-Null + } + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Name "EnthusiastMode" -Type DWord -Value 1 + Write-Host "Hiding Task View button..." + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 0 + Write-Host "Hiding People icon..." + If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People")) { + New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" | Out-Null + } + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 0 + + Write-Host "Changing default Explorer view to This PC..." + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1 + + ## Enable Long Paths + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Type DWORD -Value 1 + + Write-Host "Hiding 3D Objects icon from This PC..." + Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Recurse -ErrorAction SilentlyContinue + + ## Performance Tweaks and More Telemetry + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" -Name "SearchOrderConfig" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "SystemResponsiveness" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "AutoEndTasks" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "ClearPageFileAtShutdown" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseHoverTime" -Type DWord -Value 400 + + ## Timeout Tweaks cause flickering on Windows now + Remove-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "WaitToKillAppTimeout" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "HungAppTimeout" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "WaitToKillServiceTimeout" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "LowLevelHooksTimeout" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "WaitToKillServiceTimeout" -ErrorAction SilentlyContinue + + # Network Tweaks + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" -Name "IRPStackSize" -Type DWord -Value 20 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "NetworkThrottlingIndex" -Type DWord -Value 4294967295 + + # Gaming Tweaks + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "GPU Priority" -Type DWord -Value 8 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Priority" -Type DWord -Value 6 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" -Name "Scheduling Category" -Type String -Value "High" + + # Group svchost.exe processes + $ram = (Get-CimInstance -ClassName "Win32_PhysicalMemory" | Measure-Object -Property Capacity -Sum).Sum / 1kb + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "SvcHostSplitThresholdInKB" -Type DWord -Value $ram -Force + + Write-Host "Disable News and Interests" + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" -Name "EnableFeeds" -Type DWord -Value 0 + # Remove "News and Interest" from taskbar + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 2 + + # remove "Meet Now" button from taskbar + + If (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) { + New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Force | Out-Null + } + + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "HideSCAMeetNow" -Type DWord -Value 1 + + Write-Host "Removing AutoLogger file and restricting directory..." + $autoLoggerDir = "$env:PROGRAMDATA\Microsoft\Diagnosis\ETLLogs\AutoLogger" + If (Test-Path "$autoLoggerDir\AutoLogger-Diagtrack-Listener.etl") { + Remove-Item "$autoLoggerDir\AutoLogger-Diagtrack-Listener.etl" + } + icacls $autoLoggerDir /deny SYSTEM:`(OI`)`(CI`)F | Out-Null + + Write-Host "Stopping and disabling Diagnostics Tracking Service..." + Stop-Service "DiagTrack" + Set-Service "DiagTrack" -StartupType Disabled + + Write-Host "Doing Security checks for Administrator Account and Group Policy" + if (([System.Security.Principal.WindowsIdentity]::GetCurrent().Name).IndexOf('Administrator') -eq -1) { + net user administrator /active:no + } + + $WPFEssTweaksTele.IsChecked = $false + } + If ( $WPFEssTweaksWifi.IsChecked -eq $true ) { + Write-Host "Disabling Wi-Fi Sense..." + If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting")) { + New-Item -Path "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" -Name "Value" -Type DWord -Value 0 + If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots")) { + New-Item -Path "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" -Name "Value" -Type DWord -Value 0 + $WPFEssTweaksWifi.IsChecked = $false + } + If ( $WPFMiscTweaksLapPower.IsChecked -eq $true ) { + If (Test-Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling") { + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" -Name "PowerThrottlingOff" -Type DWord -Value 00000000 + } + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power" -Name "HiberbootEnabled" -Type DWord -Value 0000001 + $WPFMiscTweaksLapPower.IsChecked = $false + } + If ( $WPFMiscTweaksLapNum.IsChecked -eq $true ) { + Write-Host "Disabling NumLock after startup..." + If (!(Test-Path "HKU:")) { + New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null + } + Set-ItemProperty -Path "HKU:\.DEFAULT\Control Panel\Keyboard" -Name "InitialKeyboardIndicators" -Type DWord -Value 0 + $WPFMiscTweaksLapNum.IsChecked = $false + } + If ( $WPFMiscTweaksPower.IsChecked -eq $true ) { + If (Test-Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling") { + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" -Name "PowerThrottlingOff" -Type DWord -Value 00000001 + } + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power" -Name "HiberbootEnabled" -Type DWord -Value 0000000 + $WPFMiscTweaksPower.IsChecked = $false + } + If ( $WPFMiscTweaksNum.IsChecked -eq $true ) { + Write-Host "Enabling NumLock after startup..." + If (!(Test-Path "HKU:")) { + New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null + } + Set-ItemProperty -Path "HKU:\.DEFAULT\Control Panel\Keyboard" -Name "InitialKeyboardIndicators" -Type DWord -Value 2 + $WPFMiscTweaksNum.IsChecked = $false + } + If ( $WPFMiscTweaksExt.IsChecked -eq $true ) { + Write-Host "Showing known file extensions..." + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 0 + $WPFMiscTweaksExt.IsChecked = $false + } + If ( $WPFMiscTweaksUTC.IsChecked -eq $true ) { + Write-Host "Setting BIOS time to UTC..." + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Type DWord -Value 1 + $WPFMiscTweaksUTC.IsChecked = $false + } + If ( $WPFMiscTweaksDisplay.IsChecked -eq $true ) { + Write-Host "Adjusting visual effects for performance..." + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 0 + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type String -Value 200 + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Type Binary -Value ([byte[]](144, 18, 3, 128, 16, 0, 0, 0)) + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop\WindowMetrics" -Name "MinAnimate" -Type String -Value 0 + Set-ItemProperty -Path "HKCU:\Control Panel\Keyboard" -Name "KeyboardDelay" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewAlphaSelect" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewShadow" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAnimations" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 0 + Write-Host "Adjusted visual effects for performance" + $WPFMiscTweaksDisplay.IsChecked = $false + } + If ( $WPFMiscTweaksDisableMouseAcceleration.IsChecked -eq $true ) { + Write-Host "Disabling mouse acceleration..." + Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseSpeed" -Type String -Value 0 + Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold1" -Type String -Value 0 + Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold2" -Type String -Value 0 + $WPFMiscTweaksDisableMouseAcceleration.IsChecked = $false + } + If ( $WPFMiscTweaksEnableMouseAcceleration.IsChecked -eq $true ) { + Write-Host "Enabling mouse acceleration..." + Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseSpeed" -Type String -Value 1 + Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold1" -Type String -Value 6 + Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold2" -Type String -Value 10 + $WPFMiscTweaksEnableMouseAcceleration.IsChecked = $false + } + If ( $WPFEssTweaksRemoveCortana.IsChecked -eq $true ) { + Write-Host "Removing Cortana..." + Get-AppxPackage -allusers Microsoft.549981C3F5F10 | Remove-AppxPackage + $WPFEssTweaksRemoveCortana.IsChecked = $false + } + If ( $WPFEssTweaksRemoveEdge.IsChecked -eq $true ) { + Write-Host "Removing Microsoft Edge..." + Invoke-WebRequest -useb https://raw.githubusercontent.com/ChrisTitusTech/winutil/$BranchToUse/Edge_Removal.bat | Invoke-Expression + $WPFEssTweaksRemoveEdge.IsChecked = $false + } + If ( $WPFEssTweaksDeBloat.IsChecked -eq $true ) { + $Bloatware = @( + #Unnecessary Windows 10 AppX Apps + "3DBuilder" + "Microsoft3DViewer" + "AppConnector" + "BingFinance" + "BingNews" + "BingSports" + "BingTranslator" + "BingWeather" + "BingFoodAndDrink" + "BingHealthAndFitness" + "BingTravel" + "MinecraftUWP" + "GamingServices" + # "WindowsReadingList" + "GetHelp" + "Getstarted" + "Messaging" + "Microsoft3DViewer" + "MicrosoftSolitaireCollection" + "NetworkSpeedTest" + "News" + "Lens" + "Sway" + "OneNote" + "OneConnect" + "People" + "Print3D" + "SkypeApp" + "Todos" + "Wallet" + "Whiteboard" + "WindowsAlarms" + "windowscommunicationsapps" + "WindowsFeedbackHub" + "WindowsMaps" + "WindowsPhone" + "WindowsSoundRecorder" + "XboxApp" + "ConnectivityStore" + "CommsPhone" + "ScreenSketch" + "TCUI" + "XboxGameOverlay" + "XboxGameCallableUI" + "XboxSpeechToTextOverlay" + "MixedReality.Portal" + "ZuneMusic" + "ZuneVideo" + #"YourPhone" + "Getstarted" + "MicrosoftOfficeHub" + + #Sponsored Windows 10 AppX Apps + #Add sponsored/featured apps to remove in the "*AppName*" format + "EclipseManager" + "ActiproSoftwareLLC" + "AdobeSystemsIncorporated.AdobePhotoshopExpress" + "Duolingo-LearnLanguagesforFree" + "PandoraMediaInc" + "CandyCrush" + "BubbleWitch3Saga" + "Wunderlist" + "Flipboard" + "Twitter" + "Facebook" + "Royal Revolt" + "Sway" + "Speed Test" + "Dolby" + "Viber" + "ACGMediaPlayer" + "Netflix" + "OneCalendar" + "LinkedInforWindows" + "HiddenCityMysteryofShadows" + "Hulu" + "HiddenCity" + "AdobePhotoshopExpress" + "HotspotShieldFreeVPN" + + #Optional: Typically not removed but you can if you need to + "Advertising" + #"MSPaint" + #"MicrosoftStickyNotes" + #"Windows.Photos" + #"WindowsCalculator" + #"WindowsStore" + + # HPBloatware Packages + "HPJumpStarts" + "HPPCHardwareDiagnosticsWindows" + "HPPowerManager" + "HPPrivacySettings" + "HPSupportAssistant" + "HPSureShieldAI" + "HPSystemInformation" + "HPQuickDrop" + "HPWorkWell" + "myHP" + "HPDesktopSupportUtilities" + "HPQuickTouch" + "HPEasyClean" + "HPSystemInformation" + ) + + ## Teams Removal - Source: https://github.com/asheroto/UninstallTeams + function getUninstallString($match) { + return (Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object { $_.DisplayName -like "*$match*" }).UninstallString + } + + $TeamsPath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams') + $TeamsUpdateExePath = [System.IO.Path]::Combine($TeamsPath, 'Update.exe') + + Write-Output "Stopping Teams process..." + Stop-Process -Name "*teams*" -Force -ErrorAction SilentlyContinue + + Write-Output "Uninstalling Teams from AppData\Microsoft\Teams" + if ([System.IO.File]::Exists($TeamsUpdateExePath)) { + # Uninstall app + $proc = Start-Process $TeamsUpdateExePath "-uninstall -s" -PassThru + $proc.WaitForExit() + } + + Write-Output "Removing Teams AppxPackage..." + Get-AppxPackage "*Teams*" | Remove-AppxPackage -ErrorAction SilentlyContinue + Get-AppxPackage "*Teams*" -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue + + Write-Output "Deleting Teams directory" + if ([System.IO.Directory]::Exists($TeamsPath)) { + Remove-Item $TeamsPath -Force -Recurse -ErrorAction SilentlyContinue + } + + Write-Output "Deleting Teams uninstall registry key" + # Uninstall from Uninstall registry key UninstallString + $us = getUninstallString("Teams"); + if ($us.Length -gt 0) { + $us = ($us.Replace("/I", "/uninstall ") + " /quiet").Replace(" ", " ") + $FilePath = ($us.Substring(0, $us.IndexOf(".exe") + 4).Trim()) + $ProcessArgs = ($us.Substring($us.IndexOf(".exe") + 5).Trim().replace(" ", " ")) + $proc = Start-Process -FilePath $FilePath -Args $ProcessArgs -PassThru + $proc.WaitForExit() + } + + Write-Output "Restart computer to complete teams uninstall" + + Write-Host "Removing Bloatware" + + foreach ($Bloat in $Bloatware) { + Get-AppxPackage "*$Bloat*" | Remove-AppxPackage -ErrorAction SilentlyContinue + Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*$Bloat*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue + Write-Host "Trying to remove $Bloat." + } + + Write-Host "Finished Removing Bloatware Apps" + Write-Host "Removing Bloatware Programs" + # Remove installed programs + $InstalledPrograms = Get-Package | Where-Object { $UninstallPrograms -contains $_.Name } + $InstalledPrograms | ForEach-Object { + + Write-Host -Object "Attempting to uninstall: [$($_.Name)]..." + + Try { + $Null = $_ | Uninstall-Package -AllVersions -Force -ErrorAction SilentlyContinue + Write-Host -Object "Successfully uninstalled: [$($_.Name)]" + } + Catch { + Write-Warning -Message "Failed to uninstall: [$($_.Name)]" + } + } + Write-Host "Finished Removing Bloatware Programs" + $WPFEssTweaksDeBloat.IsChecked = $false + } + + Write-Host "=================================" + Write-Host "-- Tweaks are Finished ---" + Write-Host "=================================" + + $ButtonType = [System.Windows.MessageBoxButton]::OK + $MessageboxTitle = "Tweaks are Finished " + $Messageboxbody = ("Done") + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) + }) + +$WPFAddUltPerf.Add_Click({ + Write-Host "Adding Ultimate Performance Profile" + powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 + Write-Host "Profile added" + } +) + +$WPFRemoveUltPerf.Add_Click({ + Write-Host "Removing Ultimate Performance Profile" + powercfg -delete e9a42b02-d5df-448d-aa00-03f14749eb61 + Write-Host "Profile Removed" + } +) + +function Get-AppsUseLightTheme{ + return (Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize').AppsUseLightTheme +} + +function Get-SystemUsesLightTheme{ + return (Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize').SystemUsesLightTheme +} + +$WPFToggleDarkMode.IsChecked = $(If ($(Get-AppsUseLightTheme) -eq 0 -And $(Get-SystemUsesLightTheme) -eq 0) {$true} Else {$false}) + +$WPFToggleDarkMode.Add_Click({ + $EnableDarkMode = $WPFToggleDarkMode.IsChecked + $DarkMoveValue = $(If ( $EnableDarkMode ) {0} Else {1}) + Write-Host $(If ( $EnableDarkMode ) {"Enabling Dark Mode"} Else {"Disabling Dark Mode"}) + $Theme = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" + If ($DarkMoveValue -ne $(Get-AppsUseLightTheme)) + { + Set-ItemProperty $Theme AppsUseLightTheme -Value $DarkMoveValue + } + If ($DarkMoveValue -ne $(Get-SystemUsesLightTheme)) + { + Set-ItemProperty $Theme SystemUsesLightTheme -Value $DarkMoveValue + } + Write-Host $(If ( $EnableDarkMode ) {"Enabled"} Else {"Disabled"}) + + } +) + +#=========================================================================== +# Undo All +#=========================================================================== +$WPFundoall.Add_Click({ + Write-Host "Creating Restore Point in case something bad happens" + Enable-ComputerRestore -Drive "$env:SystemDrive" + Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS" + + Write-Host "Enabling Telemetry..." + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 1 + Write-Host "Enabling Wi-Fi Sense" + Set-ItemProperty -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" -Name "Value" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" -Name "Value" -Type DWord -Value 1 + Write-Host "Enabling Application suggestions..." + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "ContentDeliveryAllowed" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "OemPreInstalledAppsEnabled" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEnabled" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEverEnabled" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SilentInstalledAppsEnabled" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338388Enabled" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338389Enabled" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-353698Enabled" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SystemPaneSuggestionsEnabled" -Type DWord -Value 1 + If (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent") { + Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Recurse -ErrorAction SilentlyContinue + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableWindowsConsumerFeatures" -Type DWord -Value 0 + Write-Host "Enabling Activity History..." + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableActivityFeed" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "PublishUserActivities" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "UploadUserActivities" -Type DWord -Value 1 + Write-Host "Enable Location Tracking..." + If (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location") { + Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Recurse -ErrorAction SilentlyContinue + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Name "Value" -Type String -Value "Allow" + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" -Name "SensorPermissionState" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" -Name "Status" -Type DWord -Value 1 + Write-Host "Enabling automatic Maps updates..." + Set-ItemProperty -Path "HKLM:\SYSTEM\Maps" -Name "AutoUpdateEnabled" -Type DWord -Value 1 + Write-Host "Enabling Feedback..." + If (Test-Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules") { + Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Recurse -ErrorAction SilentlyContinue + } + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Name "NumberOfSIUFInPeriod" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "DoNotShowFeedbackNotifications" -Type DWord -Value 0 + Write-Host "Enabling Tailored Experiences..." + If (Test-Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent") { + Remove-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Recurse -ErrorAction SilentlyContinue + } + Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableTailoredExperiencesWithDiagnosticData" -Type DWord -Value 0 + Write-Host "Disabling Advertising ID..." + If (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo") { + Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" -Recurse -ErrorAction SilentlyContinue + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" -Name "DisabledByGroupPolicy" -Type DWord -Value 0 + Write-Host "Allow Error reporting..." + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name "Disabled" -Type DWord -Value 0 + Write-Host "Allowing Diagnostics Tracking Service..." + Stop-Service "DiagTrack" -WarningAction SilentlyContinue + Set-Service "DiagTrack" -StartupType Manual + Write-Host "Allowing WAP Push Service..." + Stop-Service "dmwappushservice" -WarningAction SilentlyContinue + Set-Service "dmwappushservice" -StartupType Manual + Write-Host "Allowing Home Groups services..." + Stop-Service "HomeGroupListener" -WarningAction SilentlyContinue + Set-Service "HomeGroupListener" -StartupType Manual + Stop-Service "HomeGroupProvider" -WarningAction SilentlyContinue + Set-Service "HomeGroupProvider" -StartupType Manual + Write-Host "Enabling Storage Sense..." + New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" | Out-Null + Write-Host "Allowing Superfetch service..." + Stop-Service "SysMain" -WarningAction SilentlyContinue + Set-Service "SysMain" -StartupType Manual + Write-Host "Setting BIOS time to Local Time instead of UTC..." + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Type DWord -Value 0 + Write-Host "Enabling Hibernation..." + Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Session Manager\Power" -Name "HibernteEnabled" -Type Dword -Value 1 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" -Name "ShowHibernateOption" -Type Dword -Value 1 + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization" -Name "NoLockScreen" -ErrorAction SilentlyContinue + + Write-Host "Hiding file operations details..." + If (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager") { + Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Recurse -ErrorAction SilentlyContinue + } + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Name "EnthusiastMode" -Type DWord -Value 0 + Write-Host "Showing Task View button..." + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 1 + + Write-Host "Changing default Explorer view to Quick Access..." + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1 + + Write-Host "Unrestricting AutoLogger directory" + $autoLoggerDir = "$env:PROGRAMDATA\Microsoft\Diagnosis\ETLLogs\AutoLogger" + icacls $autoLoggerDir /grant:r SYSTEM:`(OI`)`(CI`)F | Out-Null + + Write-Host "Enabling and starting Diagnostics Tracking Service" + Set-Service "DiagTrack" -StartupType Automatic + Start-Service "DiagTrack" + + Write-Host "Hiding known file extensions" + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 1 + + Write-Host "Reset Local Group Policies to Stock Defaults" + # cmd /c secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose + cmd /c RD /S /Q "%WinDir%\System32\GroupPolicyUsers" + cmd /c RD /S /Q "%WinDir%\System32\GroupPolicy" + cmd /c gpupdate /force + # Considered using Invoke-GPUpdate but requires module most people won't have installed + + Write-Output "Adjusting visual effects for appearance..." + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 1 + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type String -Value 400 + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Type Binary -Value ([byte[]](158, 30, 7, 128, 18, 0, 0, 0)) + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop\WindowMetrics" -Name "MinAnimate" -Type String -Value 1 + Set-ItemProperty -Path "HKCU:\Control Panel\Keyboard" -Name "KeyboardDelay" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewAlphaSelect" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewShadow" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAnimations" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 1 + Remove-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "HungAppTimeout" -ErrorAction SilentlyContinue + Write-Host "Restoring Clipboard History..." + Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Clipboard" -Name "EnableClipboardHistory" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "AllowClipboardHistory" -ErrorAction SilentlyContinue + Write-Host "Enabling Notifications and Action Center" + Remove-Item -Path HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force + Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" + Write-Host "Restoring Default Right Click Menu Layout" + Remove-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -Recurse -Confirm:$false -Force + + Write-Host "Reset News and Interests" + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" -Name "EnableFeeds" -Type DWord -Value 1 + # Remove "News and Interest" from taskbar + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 0 + Write-Host "Done - Reverted to Stock Settings" + + Write-Host "Essential Undo Completed" + + $ButtonType = [System.Windows.MessageBoxButton]::OK + $MessageboxTitle = "Undo All" + $Messageboxbody = ("Done") + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) + + Write-Host "=================================" + Write-Host "--- Undo All is Finished ---" + Write-Host "=================================" + }) +#=========================================================================== +# Tab 3 - Config Buttons +#=========================================================================== +$WPFFeatureInstall.Add_Click({ + + If ( $WPFFeaturesdotnet.IsChecked -eq $true ) { + Enable-WindowsOptionalFeature -Online -FeatureName "NetFx4-AdvSrvs" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "NetFx3" -All -NoRestart + } + If ( $WPFFeatureshyperv.IsChecked -eq $true ) { + Enable-WindowsOptionalFeature -Online -FeatureName "HypervisorPlatform" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-All" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Tools-All" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Management-PowerShell" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Hypervisor" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Services" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Management-Clients" -All -NoRestart + cmd /c bcdedit /set hypervisorschedulertype classic + Write-Host "HyperV is now installed and configured. Please Reboot before using." + } + If ( $WPFFeatureslegacymedia.IsChecked -eq $true ) { + Enable-WindowsOptionalFeature -Online -FeatureName "WindowsMediaPlayer" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "MediaPlayback" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "DirectPlay" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "LegacyComponents" -All -NoRestart + } + If ( $WPFFeaturewsl.IsChecked -eq $true ) { + Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart + Write-Host "WSL is now installed and configured. Please Reboot before using." + } + If ( $WPFFeaturenfs.IsChecked -eq $true ) { + Enable-WindowsOptionalFeature -Online -FeatureName "ServicesForNFS-ClientOnly" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "ClientForNFS-Infrastructure" -All -NoRestart + Enable-WindowsOptionalFeature -Online -FeatureName "NFS-Administration" -All -NoRestart + nfsadmin client stop + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default" -Name "AnonymousUID" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default" -Name "AnonymousGID" -Type DWord -Value 0 + nfsadmin client start + nfsadmin client localhost config fileaccess=755 SecFlavors=+sys -krb5 -krb5i + Write-Host "NFS is now setup for user based NFS mounts" + } + $ButtonType = [System.Windows.MessageBoxButton]::OK + $MessageboxTitle = "All features are now installed " + $Messageboxbody = ("Done") + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) + + Write-Host "=================================" + Write-Host "--- Features are Installed ---" + Write-Host "=================================" + }) + +$WPFPanelDISM.Add_Click({ + Start-Process PowerShell -ArgumentList "Write-Host '(1/4) Chkdsk' -ForegroundColor Green; Chkdsk /scan; + Write-Host '`n(2/4) SFC - 1st scan' -ForegroundColor Green; sfc /scannow; + Write-Host '`n(3/4) DISM' -ForegroundColor Green; DISM /Online /Cleanup-Image /Restorehealth; + Write-Host '`n(4/4) SFC - 2nd scan' -ForegroundColor Green; sfc /scannow; + Read-Host '`nPress Enter to Continue'" -verb runas + }) +$WPFPanelAutologin.Add_Click({ + curl.exe -ss "https://live.sysinternals.com/Autologon.exe" -o autologin.exe # Official Microsoft recommendation https://learn.microsoft.com/en-us/sysinternals/downloads/autologon + cmd /c autologin.exe + }) +$WPFPanelcontrol.Add_Click({ + cmd /c control + }) +$WPFPanelnetwork.Add_Click({ + cmd /c ncpa.cpl + }) +$WPFPanelpower.Add_Click({ + cmd /c powercfg.cpl + }) +$WPFPanelsound.Add_Click({ + cmd /c mmsys.cpl + }) +$WPFPanelsystem.Add_Click({ + cmd /c sysdm.cpl + }) +$WPFPaneluser.Add_Click({ + cmd /c "control userpasswords2" + }) +#=========================================================================== +# Tab 4 - Updates Buttons +#=========================================================================== + +$WPFUpdatesdefault.Add_Click({ + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUOptions" -Type DWord -Value 3 + If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config")) { + New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 1 + + $services = @( + "BITS" + "wuauserv" + ) + + foreach ($service in $services) { + # -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist + + Write-Host "Setting $service StartupType to Automatic" + Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Automatic + } + Write-Host "Enabling driver offering through Windows Update..." + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue + Write-Host "Enabling Windows Update automatic restart..." + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue + Write-Host "Enabled driver offering through Windows Update" + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -ErrorAction SilentlyContinue + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays " -ErrorAction SilentlyContinue + Write-Host "=================================" + Write-Host "--- Updates Set to Default ---" + Write-Host "=================================" + }) + +$WPFFixesUpdate.Add_Click({ + ### Reset Windows Update Script - reregister dlls, services, and remove registry entires. + Write-Host "1. Stopping Windows Update Services..." + Stop-Service -Name BITS + Stop-Service -Name wuauserv + Stop-Service -Name appidsvc + Stop-Service -Name cryptsvc + + Write-Host "2. Remove QMGR Data file..." + Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue + + Write-Host "3. Renaming the Software Distribution and CatRoot Folder..." + Rename-Item $env:systemroot\SoftwareDistribution SoftwareDistribution.bak -ErrorAction SilentlyContinue + Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue + + Write-Host "4. Removing old Windows Update log..." + Remove-Item $env:systemroot\WindowsUpdate.log -ErrorAction SilentlyContinue + + Write-Host "5. Resetting the Windows Update Services to defualt settings..." + "sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" + "sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" + Set-Location $env:systemroot\system32 + + Write-Host "6. Registering some DLLs..." + regsvr32.exe /s atl.dll + regsvr32.exe /s urlmon.dll + regsvr32.exe /s mshtml.dll + regsvr32.exe /s shdocvw.dll + regsvr32.exe /s browseui.dll + regsvr32.exe /s jscript.dll + regsvr32.exe /s vbscript.dll + regsvr32.exe /s scrrun.dll + regsvr32.exe /s msxml.dll + regsvr32.exe /s msxml3.dll + regsvr32.exe /s msxml6.dll + regsvr32.exe /s actxprxy.dll + regsvr32.exe /s softpub.dll + regsvr32.exe /s wintrust.dll + regsvr32.exe /s dssenh.dll + regsvr32.exe /s rsaenh.dll + regsvr32.exe /s gpkcsp.dll + regsvr32.exe /s sccbase.dll + regsvr32.exe /s slbcsp.dll + regsvr32.exe /s cryptdlg.dll + regsvr32.exe /s oleaut32.dll + regsvr32.exe /s ole32.dll + regsvr32.exe /s shell32.dll + regsvr32.exe /s initpki.dll + regsvr32.exe /s wuapi.dll + regsvr32.exe /s wuaueng.dll + regsvr32.exe /s wuaueng1.dll + regsvr32.exe /s wucltui.dll + regsvr32.exe /s wups.dll + regsvr32.exe /s wups2.dll + regsvr32.exe /s wuweb.dll + regsvr32.exe /s qmgr.dll + regsvr32.exe /s qmgrprxy.dll + regsvr32.exe /s wucltux.dll + regsvr32.exe /s muweb.dll + regsvr32.exe /s wuwebv.dll + + Write-Host "7) Removing WSUS client settings..." + REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f + REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f + REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f + + Write-Host "8) Resetting the WinSock..." + netsh winsock reset + netsh winhttp reset proxy + netsh int ip reset + + Write-Host "9) Delete all BITS jobs..." + Get-BitsTransfer | Remove-BitsTransfer + + Write-Host "10) Attempting to install the Windows Update Agent..." + If ([System.Environment]::Is64BitOperatingSystem) { + wusa Windows8-RT-KB2937636-x64 /quiet + } + else { + wusa Windows8-RT-KB2937636-x86 /quiet + } + + Write-Host "11) Starting Windows Update Services..." + Start-Service -Name BITS + Start-Service -Name wuauserv + Start-Service -Name appidsvc + Start-Service -Name cryptsvc + + Write-Host "12) Forcing discovery..." + wuauclt /resetauthorization /detectnow + + Write-Host "Process complete. Please reboot your computer." + + $ButtonType = [System.Windows.MessageBoxButton]::OK + $MessageboxTitle = "Reset Windows Update " + $Messageboxbody = ("Stock settings loaded.`n Please reboot your computer") + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) + Write-Host "=================================" + Write-Host "-- Reset ALL Updates to Factory -" + Write-Host "=================================" + }) + +$WPFUpdatesdisable.Add_Click({ + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUOptions" -Type DWord -Value 1 + If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config")) { + New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 0 + + $services = @( + "BITS" + "wuauserv" + ) + + foreach ($service in $services) { + # -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist + + Write-Host "Setting $service StartupType to Disabled" + Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Disabled + } + Write-Host "=================================" + Write-Host "--- Updates ARE DISABLED ---" + Write-Host "=================================" + }) +$WPFUpdatessecurity.Add_Click({ + Write-Host "Disabling driver offering through Windows Update..." + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -Type DWord -Value 1 + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -Type DWord -Value 0 + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -Type DWord -Value 1 + Write-Host "Disabling Windows Update automatic restart..." + If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU")) { + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | Out-Null + } + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -Type DWord -Value 0 + Write-Host "Disabled driver offering through Windows Update" + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -Type DWord -Value 20 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -Type DWord -Value 365 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays " -Type DWord -Value 4 + + $ButtonType = [System.Windows.MessageBoxButton]::OK + $MessageboxTitle = "Set Security Updates" + $Messageboxbody = ("Recommended Update settings loaded") + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) + Write-Host "=================================" + Write-Host "-- Updates Set to Recommended ---" + Write-Host "=================================" + }) + +#=========================================================================== +# Shows the form +#=========================================================================== +Get-FormVariables +$Form.ShowDialog() | out-null +Stop-Transcript diff --git a/Installs/RestartPC-bat/Restart PC.bat b/Installs/RestartPC-bat/Restart PC.bat new file mode 100644 index 0000000..fda6fab --- /dev/null +++ b/Installs/RestartPC-bat/Restart PC.bat @@ -0,0 +1,3 @@ +@echo off + +shutdown /r /f /t 0 \ No newline at end of file diff --git a/Installs/RestartPC-bat/Restart PC.lnk b/Installs/RestartPC-bat/Restart PC.lnk new file mode 100644 index 0000000..d43c618 Binary files /dev/null and b/Installs/RestartPC-bat/Restart PC.lnk differ diff --git a/Installs/RestartPC-bat/Restart.ico b/Installs/RestartPC-bat/Restart.ico new file mode 100644 index 0000000..c498573 Binary files /dev/null and b/Installs/RestartPC-bat/Restart.ico differ diff --git a/Installs/RestartPC-bat/RestartPC.ahk b/Installs/RestartPC-bat/RestartPC.ahk new file mode 100644 index 0000000..69b85b5 --- /dev/null +++ b/Installs/RestartPC-bat/RestartPC.ahk @@ -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 \ No newline at end of file diff --git a/Installs/RestartPC-bat/RestartPC.exe b/Installs/RestartPC-bat/RestartPC.exe new file mode 100644 index 0000000..5971698 Binary files /dev/null and b/Installs/RestartPC-bat/RestartPC.exe differ diff --git a/Installs/ShareX/InstallShareX.ahk b/Installs/ShareX/InstallShareX.ahk new file mode 100644 index 0000000..0abc29d --- /dev/null +++ b/Installs/ShareX/InstallShareX.ahk @@ -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 \ No newline at end of file diff --git a/Installs/ShareX/ShareX.ico b/Installs/ShareX/ShareX.ico new file mode 100644 index 0000000..094b358 Binary files /dev/null and b/Installs/ShareX/ShareX.ico differ diff --git a/Installs/ShareX/ShareX/ApplicationConfig.json b/Installs/ShareX/ShareX/ApplicationConfig.json new file mode 100644 index 0000000..b7a87b6 --- /dev/null +++ b/Installs/ShareX/ShareX/ApplicationConfig.json @@ -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" +} \ No newline at end of file diff --git a/Installs/ShareX/ShareX/HotkeysConfig.json b/Installs/ShareX/ShareX/HotkeysConfig.json new file mode 100644 index 0000000..b19434c --- /dev/null +++ b/Installs/ShareX/ShareX/HotkeysConfig.json @@ -0,0 +1,2690 @@ +{ + "Hotkeys": [ + { + "HotkeyInfo": { + "Hotkey": "PrintScreen", + "Win": false + }, + "TaskSettings": { + "Description": "", + "Job": "RectangleRegion", + "UseDefaultAfterCaptureJob": true, + "AfterCaptureJob": "CopyImageToClipboard, SaveImageToFile, UploadImageToHost", + "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": true, + "PlaySoundAfterUpload": true, + "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": "%ra{10}", + "NameFormatPatternActiveWindow": "%pn_%ra{10}", + "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": [] + } + }, + { + "HotkeyInfo": { + "Hotkey": "None", + "Win": false + }, + "TaskSettings": { + "Description": "", + "Job": "PrintScreen", + "UseDefaultAfterCaptureJob": true, + "AfterCaptureJob": "CopyImageToClipboard, SaveImageToFile, UploadImageToHost", + "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": true, + "PlaySoundAfterUpload": true, + "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": "%ra{10}", + "NameFormatPatternActiveWindow": "%pn_%ra{10}", + "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": [] + } + }, + { + "HotkeyInfo": { + "Hotkey": "None", + "Win": false + }, + "TaskSettings": { + "Description": "", + "Job": "ActiveWindow", + "UseDefaultAfterCaptureJob": true, + "AfterCaptureJob": "CopyImageToClipboard, SaveImageToFile, UploadImageToHost", + "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": true, + "PlaySoundAfterUpload": true, + "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": "%ra{10}", + "NameFormatPatternActiveWindow": "%pn_%ra{10}", + "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": [] + } + }, + { + "HotkeyInfo": { + "Hotkey": "None", + "Win": false + }, + "TaskSettings": { + "Description": "", + "Job": "ScreenRecorder", + "UseDefaultAfterCaptureJob": true, + "AfterCaptureJob": "CopyImageToClipboard, SaveImageToFile, UploadImageToHost", + "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": true, + "PlaySoundAfterUpload": true, + "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": "%ra{10}", + "NameFormatPatternActiveWindow": "%pn_%ra{10}", + "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": [] + } + }, + { + "HotkeyInfo": { + "Hotkey": "None", + "Win": false + }, + "TaskSettings": { + "Description": "", + "Job": "ScreenRecorderGIF", + "UseDefaultAfterCaptureJob": true, + "AfterCaptureJob": "CopyImageToClipboard, SaveImageToFile, UploadImageToHost", + "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": true, + "PlaySoundAfterUpload": true, + "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": "%ra{10}", + "NameFormatPatternActiveWindow": "%pn_%ra{10}", + "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": [] + } + } + ], + "ApplicationVersion": "14.1.0" +} \ No newline at end of file diff --git a/Installs/ShareX/ShareX/Screenshots.ico b/Installs/ShareX/ShareX/Screenshots.ico new file mode 100644 index 0000000..55548d4 Binary files /dev/null and b/Installs/ShareX/ShareX/Screenshots.ico differ diff --git a/Installs/ShareX/ShareX/Screenshots_Blue.ico b/Installs/ShareX/ShareX/Screenshots_Blue.ico new file mode 100644 index 0000000..1504bbb Binary files /dev/null and b/Installs/ShareX/ShareX/Screenshots_Blue.ico differ diff --git a/Installs/ShareX/ShareX/UploadersConfig.json b/Installs/ShareX/ShareX/UploadersConfig.json new file mode 100644 index 0000000..740cad0 --- /dev/null +++ b/Installs/ShareX/ShareX/UploadersConfig.json @@ -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" +} \ No newline at end of file diff --git a/Installs/ShareX/ShareXStartupFolderShortcut/ShareX.lnk b/Installs/ShareX/ShareXStartupFolderShortcut/ShareX.lnk new file mode 100644 index 0000000..083feed Binary files /dev/null and b/Installs/ShareX/ShareXStartupFolderShortcut/ShareX.lnk differ diff --git a/Installs/W11StartMenu/LayoutModification.xml b/Installs/W11StartMenu/LayoutModification.xml new file mode 100644 index 0000000..71780a4 --- /dev/null +++ b/Installs/W11StartMenu/LayoutModification.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Installs/W11StartMenu/TaskbarLayout.xml b/Installs/W11StartMenu/TaskbarLayout.xml new file mode 100644 index 0000000..e30d18d --- /dev/null +++ b/Installs/W11StartMenu/TaskbarLayout.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + diff --git a/Installs/W11StartMenu/start2.bin b/Installs/W11StartMenu/start2.bin new file mode 100644 index 0000000..0278d82 Binary files /dev/null and b/Installs/W11StartMenu/start2.bin differ diff --git a/Installs/Wifi/Wifi-Settings.xml b/Installs/Wifi/Wifi-Settings.xml new file mode 100644 index 0000000..6aa0451 --- /dev/null +++ b/Installs/Wifi/Wifi-Settings.xml @@ -0,0 +1,30 @@ + + + BusinessWifiName + + + 5768697465204D6F757461696E205061706572202D20427573696E657373 + BusinessWifiName + + + ESS + auto + + + + WPA2PSK + AES + false + + + passPhrase + true + 01000000D08C9DDF0115D1118C7A00C04FC297EB010000004911F8BD854C0243BEB7A70E94B1286C000000000200000000001066000000010000200000005E716A171E6C46E237247BE4A1D4E9DC75EDF68818FAEABA138776A4632045BA000000000E800000000200002000000073214D94FC690C6F6FCEB2DD34BD00F5CDC6C631EF4BDD8FA33569DD31D20000000746828C2B455125F9017B1E0EF3CB0AB613E22FACCA5EFEFE77E3DBFA96A945140000000EC1C1D5B929E237B041AFCC1875D32E84581207E450AF1E5D3BE39F90CC747F680AD08899F43B7D324C24750DB47443054B1666E3A972B4C9600B0DA239BAF7A + + + + + false + 4069499145 + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..35b00a5 --- /dev/null +++ b/README.md @@ -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' +```` + +

+ +

+ +## 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 \ No newline at end of file diff --git a/Update Windows.lnk b/Update Windows.lnk new file mode 100644 index 0000000..a19e5f1 Binary files /dev/null and b/Update Windows.lnk differ diff --git a/Windows-Toolbox.ahk b/Windows-Toolbox.ahk new file mode 100644 index 0000000..2ea6e60 --- /dev/null +++ b/Windows-Toolbox.ahk @@ -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 + } +} \ No newline at end of file