How to Start Multiple Services With the Help of PowerShell

Run multiple PowerShell Commands at once

This short guide will show you how to start multiple services simultaneously with the help of PowerShell. Start Multiple Services or Applications with PowerShell 1. Open PowerShell with administrative privileges. 2. Execute the following command (Suppose when you are required to search all exchange related services and start them, just replace the parameter). Get-Service "*Exchange*" ... Read more

How to View Office 365 User Account Details in PowerShell

PowerShell get-msoluser command

In this article, I'll show you to retrieve Office 365 user account details with the help of PowerShell using get-msoluser. Prerequisites Download and install the following modules. Microsoft Online Service Sign-in Assistant for IT Professionals RTW Windows Azure Active Directory Module for Windows PowerShell (64-bit version) View Office 365 User Account Details in PowerShell - ... 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

Windows Powershell – “Running scripts is disabled on this system”

PowerShell

Powershell scripts can be run on any Windows system as long as they are run from the ISE by pushing the green play button. As soon as you want to run it from the cmd or the desktop file you'll get this error: script1.ps1 cannot be loaded because running scripts is disabled on this system. ... Read more

How to Append Data to a Text File Using PowerShell

You can use the PowerShell add-content cmdlet to append data to a text file. Here are an example and the command-line options that you can use. Powershell add-content example Step 1. Open PowerShell with elevated privileges Step 2. Execute the following command, (change the file path) Add-Content c:\scripts\test.txt "The End" By default, the data is appended after ... Read more