Powershell scripts library

Shell CLI

What is Shell CLI?

ShellCLI is a command-line interface (CLI) that simplifies running PowerShell commands. It offers menus and interactive options, eliminating the need to memorize or type complex commands. This tool streamlines tasks such as user and network management, and more on Windows computers by providing short, intuitive commands and/or menus.

Before we begin

NOTE

There are some anti-virus softwares that block ShellCLI. Some do and some don't. If you encounter an av software that does there are some steps you can take. You may also need to enable running powershell scripts on your system.

Getting started

Open powershell as an administrator, paste in the command below and hit Enter. Thats it!

i.e. Invoke-RestMethod shellcli.com Invoke-Expression

Using the menu

If you don't know any commands, you can just enter the menu command. Once in the menu, you can use the up and down arrow keys to make selections and then the enter key to confirm your selection.

Using commands

You don't need to rely on the menu. You can accomplish more, by accessing commands directly. For instance, creating a new user or editing the target PC's network adapter can be done with short intuitive commands.

Add a new local user to the system:
Edit the network adapters on target PC:

Command list

Toggle administrator

All versions of Windows comes with a secret built-in administrator account. This command allows you to toggle the account on and off whenever you need it.

Add user accounts

These commands allow you to add user accounts, domain or local to the system, quickly and easily. I actually find that using these scripts is quicker and easier than using Windows GUI which constantly tries to force you to make a Microsoft account.

Remove user accounts

Remove user accounts from the system with the option to also remove the users data / profile folder.

Edit user accounts

Edit various user account parameters like account names, passwords, and groups for both domain and local users.

Edit hostname & description

Edit the hostname and description of the PC without the necessity to reboot.

Edit network adapters

Edit any adapter on the system wireless and hard wired. Change settings like IP, DNS, subnet and gateway. Set static settings or set things to dynamic.

View WiFi credentials

View both previously used and current WiFi SSID and passwords for the currently enabled NIC.

Enable running powershell

Its fairly common that running powershell scripts is disabled by default. You can enable running powershell scripts by opening powershell as an administrator and entering this command.

You may want to set this back to restricted when you're done.

Bypass anti-virus

Some antivirus programs may block the use of ShellCLI. Typically, the initial connection command triggers the antivirus software. This is due to the irm or Invoke-RestMethod portion of the command. Antivirus software may block this command because it can be used to send and retrieve information over the internet. In this case, it's used to retrieve the root PowerShell functions of ShellCLI.

To bypass this problem, you can either download the ShellCLI initializer and run it as an administrator. Alternatively, open a PowerShell instance as an administrator, then copy and paste the code below into the PowerShell and press Enter.

ShellCLI Initializer: