Category Filter

Code snippets for the most commonly executed tasks in Windows

You can execute custom scripts on Windows 10 running version 1703+, enrolled in Hexnode using the Hexnode Installer App. Hexnode supports .bat, .cmd, .ps1 script formats. Here are some sample code snippets for the most commonly executed tasks in Windows that you might find useful:

Disclaimer:

The Sample Scripts provided below are adapted from third-party Open-Source sites.

Serial No Script
1 Turn on Firewall
2 Add Windows to AD domain
3 Change admin user to non-admin user
4 Restart device
5 Shutdown device
6 Install EXE app
7 Uninstall store apps
8 Uninstall Enterprise apps
9 Create users
10 Add user to group
11 Change password
12 Rename file
13 Delete file and folders
14 Display all users
15 OS Update
16 Copy text to clipboard