How to Find Out Specifications of Server Using PowerShell

Get Server specs using PowerShell

When you are running a Windows server core version and you need to find out the specs of your server then this tutorial will show you how to do that with a small PowerShell script. Get Server Details with PowerShell Step 1. Open PowerShell with elevated privileges. Step 2. Execute the following two commands (as ... Read more

How to Read a File using PowerShell

If you are working as an admin on Windows Core Server and want to check the contents of a file, you can execute the following command: get-content C:\testfile.txt This command will display the contents of the file using PowerShell. To save the contents in a variable, you can execute: $FileContent = get-content C:\testfile.txt To read the ... Read more

How to Delete a Folder Using Command Prompt of Windows

Delete Folder in Windows

To delete a folder using the command prompt of Windows, follow this procedure. Open a command prompt (Press the Windows icon key and R to open the run window). Type cmd and hit enter from the keyboard. On a command prompt, enter the following command and hit enter from the keyboard. Syntax rmdir /s <complete ... Read more

How to Check the PowerShell Version on Windows

PowerShell Version

If you want to check which PowerShell version you are using, then execute either the command get-host or the command echo $PSVersionTable on PowerShell with elevated privileges. Get PowerShell Version Powershell Command: echo $PSVersionTable Result: The latest version is 5.1 and it is available in the newer generation of Windows Server 2016. PowerShell Versions on Windows ... Read more

How to Check if a Disk Uses GPT or MBR on Windows

Windows: GPT or MBR Partition Table

There are different ways to store the partition table on a drive. The most widely used methods are GPT (Guid Partition Table) and MBR (Master Boot Record). This article shows you how to check your disk is using GPT or MBR. Check partition table type using the GUI Step 1. Press Windows key + X ... Read more

How to Get a List of Windows PowerShell Modules that can be Imported

Modules are collections of cmdlets that are stored in the path %WINDIR%\System32\WindowsPowerShell\. Get a List of Windows PowerShell Modules Now execute the following command to display the location of each directory where these modules are exactly stored at your computer: write-host "$PSModulePath" You can get a list of all available modules on your computer by ... Read more

Four Ways to Create a Directory with PowerShell

To create a directory with the help of PowerShell, open the PowerShell console with administrative privileges and use one of the following four ways. Creating a Directory by using PowerShell Method 1: Use the new-item command new-item <path of directory suppose c:\dir1> -itemtype directory Method 2: Use a file system object $fso = new-object -ComObject ... Read more