Powershell Scripts & Custom Payloads

Prev Next
  • Updated on Nov 5, 2025
  • Published on Sep 5, 2023
Powershell Scripts Scalefusion offers support to remotely deploy and execute Powershell scripts. PS scripts are a great way to automate the management of systems and let IT Admins perform various actions remotely from the Scalefusion console. We ha...
  • Updated on May 17, 2024
  • Published on Nov 16, 2023
This PowerShell script helps IT Admins to restrict/block the copy/paste function on Windows 10 and above devices. Create a file on your desktop, for example, ClipboardHandlerServiceEx.ps1 and open it in a text editor like notepad++ Copy th...
  • Published on Aug 13, 2024
The following PowerShell scripts helps the IT Admins to block Chrome and Edge browser extensions on their managed Windows 10 and above devices. Create a file on your desktop, for example, block_edge_extensions.ps1 and block_chrome_extensions.p...
  • Published on Jul 23, 2024
This PowerShell script helps IT Admins to change the TPM pin or Password for SystemDrive on Window 10 and above devices. Create a file on your desktop, for example, ChangeTPMPinOrPasswordOnSystemDrive_v2.ps1 and open it in an editor like notepa...
  • Published on Mar 14, 2024
The following PowerShell script helps the IT Admins to uninstall Exe application(s) from their managed Windows devices. Create a file on your desktop, for example, uninstall_exe.ps1 and open it in a text editor like notepad++ Copy the c...
  • Published on Mar 11, 2024
The following PowerShell scripts helps IT Admins to turn on or off the LAN network adapter on Windows 10 and above devices. (A) Turn off LAN network Create a file on your desktop, for example, turn_off_network.ps1 and open it in a text edit...
  • Updated on Feb 26, 2024
  • Published on Feb 22, 2024
The following PowerShell script helps IT Admins to create a web shortcut for the Allowed Websites on the desktop of their managed Windows devices with Skip Application Policy . Create a file on your desktop, for example, create_web_shorcut.ps...
  • Updated on Feb 21, 2024
  • Published on Feb 2, 2024
The following PowerShell script helps IT Admins to silently encrypt their managed Windows 10 and above devices with BitLocker. Create a file on your desktop, for example, silently_enable_bitlocker.ps1 and open it in a text editor like notepa...
  • Published on Nov 3, 2023
The following PowerShell script helps the IT Admins change the username and full name of the users on the managed Windows devices. Create a file on your desktop, for example, To_change_username_and_fullname.ps1 and open it in a text editor like ...
  • Updated on Jan 17, 2025
  • Published on Dec 25, 2023
The following PowerShell script helps the IT Admins to clear the contents of a specified directory on a managed Windows devices. Create a file on your desktop, for example, DeleteFilesandFolders.ps1 and open it in a text editor like notepad++ ...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
Google Credential Provider for Windows® (GCPW) lets users sign in to Windows® devices with the Google Account they use for work. GCPW provides users with a single sign-on experience to Google services and all the security features available with t...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
Scalefusion allows IT Admins to extensively manage Google Chrome and/or Microsoft Edge browsers right from the device profile . However enterprises using Google Chrome or Microsoft Edge often have requirements to force install certain browser exten...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
Task Manager is a system monitoring tool built into the Windows operating system. It allows users to end unresponsive processes, start new processes, and see how much memory and CPU resources are being used by different programs. On your Windows 10...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
On your Windows 11 devices when you select or hover your mouse on the Weather app icon in your taskbar, it opens the News and Interests window. From here you can see content covering the news, weather, traffic, and more. You can use the following...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
The following PowerShell script helps the IT Admins to add a message on the Lock screen on Windows 10 & above devices. Create a file on your desktop, for example, configure_lock_screen_message.ps1 and open it in a text editor like notepad++ ...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
This Custom Payload helps the IT Admins to replace the Time zone settings on Windows 10 and above devices. Step 1: Create the Custom Payload Copy the XML snippet below to a text editor like notepad++ or to any text editor. Markup Markup ...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
The following PowerShell script will help the IT Admins to format the OS and non-OS Drives on Windows 10 & above devices. Create a file on your desktop, for example, format_nonOS_OS_drive.ps1 and open it in a text editor like notepad++ Copy...
  • Updated on Jan 22, 2024
  • Published on Sep 5, 2023
The following PowerShell script helps the IT Admins to prevent the users from being able to save a file directly on the Desktop. Create a file on your desktop, for example, restrict_desktop.ps1 and open it in a text editor like notepad++ Copy t...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
The following PowerShell script helps IT Admins to uninstall an MSI application from the managed Windows devices. Create a file on your desktop, for example, uninstall_application_msi-installer.ps1 and open it in a text editor like notepad++ Co...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
This PowerShell script helps IT Admins to get the BitLocker Recovery key from Windows 10 and above devices. Scalefusion retrieves the BitLocker Recovery key from the devices, however, in case the Key is not fetched, the following PowerShell scrip...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
The following two Custom Settings Payloads will help IT Admins to either show or hide the WiFi menu icon on the Windows Lock screen. (A) Show WiFi menu on the Lock screen This Custom Settings Payload helps the IT Admins to show the WiFi icon on th...
  • Updated on Sep 28, 2023
  • Published on Sep 5, 2023
The following Power Shell Script helps the IT Admins to set up a Time Server on their Windows devices. Time Servers help to ensure accurate and synchronized timekeeping across devices on a network as these are critical for compliance, security, trou...
  • Updated on Sep 27, 2023
  • Published on Sep 5, 2023
These PowerShell scripts allow Admin to temporarily elevate a local Standard User to an administrator on a device and then downgrade the same user to a Standard user. There are two ways an Admin can choose to elevate Standard User to Admin and then...
  • Updated on May 17, 2024
  • Published on Sep 5, 2023
This PowerShell script helps IT Admins to change the passwords of the Local User accounts (Standard accounts) on Windows 10 and above devices. It will help IT Admins to push a new password to one or more local use on one or more devices. Create ...
  • Published on Sep 28, 2023
The following PowerShell script helps the IT Admins to block USB devices like Pendrive, external HDD, SDD. Create a file on your desktop, for example, restrict_usb_access.ps1 and open it in a text editor like notepad++ Copy the contents below to ...
  • Published on Oct 8, 2025
The following PowerShell script helps the IT Admins to block write access on the USB drive. Create a file on your desktop, for example, usb_deny_write_access.ps1, and open it in a text editor like notepad++ Copy the contents below to the fil...
  • Published on Oct 8, 2025
The following PowerShell script helps the IT Admins to revert the deny write access on the USB drive. Create a file on your desktop, for example, revert _ usb_deny_write_access.ps1, and open it in a text editor like notepad++ Copy the conten...
  • Updated on Feb 22, 2024
  • Published on Oct 17, 2023
This Custom Payload will help the IT Admins to enable virtual keyboard (or Tablet mode) on the managed Windows 10 and above devices where the device is set in Single App Mode and touch screen keyboard is the only input method. Step 1: Create the Cu...
  • Updated on May 17, 2024
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to rename files on multiple managed Windows devices. Create a file on your desktop, for example, rename_files.ps1 and open it in a text editor like notepad++ Copy the contents below to...
  • Updated on May 17, 2024
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to delete outdated files and folders remotely on managed Windows devices. Create a file(s) on your desktop, for example, DeleteFiles.ps1/ DeleteFolder.ps1 and open it in a text editor like ...
  • Updated on Jan 17, 2025
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to configure device volume remotely on managed Windows devices. This is particularly useful for devices that are exposed to the public, such as those in classrooms, conference rooms, and similar s...
  • Published on Feb 2, 2024
Active Hours, a feature in Windows 10 and above, allows you to specify the times when you are most likely to use your computer. The main purpose of Active Hours is to prevent automatic reboots after a Windows Update. Setting the active hours would ...
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to get the details of various performance parameters like CPU usage, memory usage, disk usage, total physical memory, available physical memory, virtual memory available, and virtual memory in use...
  • Published on Feb 2, 2024
Windows Recovery Environment (WinRE) is a specialized, minimal operating system designed to help troubleshoot and repair issues that may prevent normal Windows startup. It plays a crucial role in system recovery, allowing users to perform troublesh...
  • Updated on Feb 2, 2024
  • Published on Feb 2, 2024
For an IT Admin, understanding firewall profile details proves beneficial when addressing firewall-related challenges and ensuring adherence to organizational policies. It provides valuable insights for troubleshooting issues and validating complia...
  • Published on Feb 2, 2024
Utilizing keyboard shortcuts is a convenient method for swiftly executing various actions on devices. Nevertheless, there might be instances where you wish to deactivate specific keyboard shortcuts based on your requirements. The following Power...
  • Published on Feb 2, 2024
Integrated into the Windows operating system, BitLocker serves as a security feature designed to implement encryption on system drives, fixed data drives, and removable drives for enhanced data protection. However, there may arise situations where ...
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to remotely turn On/Off the Bluetooth state on multiple managed Windows devices. Create a file on your desktop, for example, turn_on_off_bluetooth.ps1 and open it in a text editor like note...
  • Published on Feb 2, 2024
At times, devices may experience situations that necessitate users to close currently active applications. This might be due to factors such as utilizing an outdated app version, running an excessive number of applications simultaneously, facing sp...
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to remotely get the information about Drive(s) like the size, list of the contents stored on it, etc. on their managed Windows devices. Create a file on your desktop, for example, fetch_driv...
  • Published on Feb 2, 2024
Operating system licenses are contractual agreements permitting users to legally utilize and access the software. Admins play a crucial role in ensuring that the Microsoft OS licenses align with the organization's terms, including verifying the acc...
  • Published on Feb 2, 2024
A multitude of processes and programs operate continuously on a device, running in both the foreground and background. IT administrators may need insights into processes, considering factors such as memory usage, CPU time, process owner, and more, ...
  • Updated on Feb 8, 2024
  • Published on Feb 2, 2024
Low disk space is a silent productivity killer. To ensure critical updates and resources deploy smoothly, IT admins must proactively monitor and manage storage, preventing disks from choking on unnecessary data. The following PowerShell script h...
  • Published on Feb 2, 2024
Fueling employee productivity starts with keeping devices charged. Proactive battery management lets you prevent disruptions, extend lifespans, and optimize performance for a seamless and efficient work experience. The following PowerShell scrip...
  • Published on Feb 2, 2024
Microsoft Store apps are set to automatically check for and install updates on Windows devices without user involvement. However, this background process can have notable effects on data usage and battery life. As a result, users with limited inter...
  • Updated on May 17, 2024
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to change the date format on their managed Windows devices. Create a file on your desktop, for example, set_date_format.ps1 and open it in a text editor like notepad++ Copy the contents ...
  • Published on Feb 2, 2024
Windows provides a flexible way to manage file and folder access through multiple permission levels. IT Admins can grant different levels of access (read, write, modify, etc.) to individual users or groups, ensuring that only authorized individuals...
  • Published on Feb 2, 2024
Clearing caches on a Windows device becomes particularly beneficial when experiencing performance issues or a slowdown, often noticeable after extended internet usage, Windows updates, or prolonged periods without a system restart. Depending on you...
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to create folder shortcuts on the deskop for easy access on their managed Windows devices. Create a file on your desktop, for example, folder_shortcut.ps1 and open it in a text editor like ...
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to get the list of files and folders on their managed Windows devices. Create a file on your desktop, for example, list_of_files_folders.ps1 and open it in a text editor like notepad++ ...
  • Published on Feb 2, 2024
Unsecured Wi-Fi networks lurk around every corner, posing a major risk to corporate data. That's why administrators need to keep a watchful eye on where their devices are connecting. Monitoring Wi-Fi connections helps ensure they only land on safe ...
  • Published on Feb 2, 2024
Screensavers aren't just pretty distractions. They can be used strategically to display important information transforming it into a powerful tool for branding, privacy, and even communication. The following PowerShell script helps the IT Admins...
  • Published on Feb 2, 2024
This PowerShell script helps IT Admins to grant full access to a specific folder for a user account on their managed Windows devices. Create a file on your desktop, for example, grant_specific_folder_access.ps1 and open it in a text editor l...
  • Published on Feb 2, 2024
Internet Connection Sharing (ICS) is a feature in Microsoft Windows operating systems that allows a computer to share its internet connection with other devices on the same local area network (LAN). Essentially, one computer with a working internet...
  • Published on Oct 8, 2025
This document provides steps to disable and re-enable the clipboard on Windows 10 & 11 using PowerShell scripts. This is particularly useful in managed environments where clipboard usage needs to be restricted. A. Disable Clipboard To disable ...
  • Published on Feb 2, 2024
The following PowerShell script helps the IT Admins to enable Firewall on their managed Windows devices. Create a file on your desktop, for example, enable_firewall.ps1 and open it in a text editor like notepad++ Copy the contents below...