In this article, you will learn on how to create a folder share using a PowerShell command. First, you need to determinate which folder you want to share, or you can create a new folder using New-Item cmdlet as below New-Item “C:\SharedFolder” -Type Directory You can also add the -Force parameter to make the folder […]
Receiving Error 55 when running net statistics server command
Q: I got “System Error 55” when ran “net statistics server” command A. Disabling / Removing SMB1 may be caused by this issue. You can verify if SMB1 is installed or not by running the following PowerShell command. Get-WindowsFeature -Name FS-SMB1 If the issue still persist after installing/enabling SMB1, you could check troubleshooting steps from this link for your reference.
How to resolve “The trust relationship between this workstation and the primary domain failed”
Sometimes, you receive the alert “The trust relationship between this workstation and primary domain failed” when you login to the computer that joined to the domain. There are many ways to resolve this issue. Through this article, I will show you how to resolve this issue using PowerShell command. Step 1. Login to the problematic […]
Get Windows OS version on Specific OU using PowerShell
Getting the Windows OS Version on specific OU is very useful for System Administrator. For example for the upgrade plan or system architecture plan. Before we continue, you have to import the Active Directory Module for Windows PowerShell with the following command: Import-Module activedirectory For your information, In PowerShell 3.0 and above, this module is imported by […]
Get Hyper-V Data Exchange Service (Key Value Pair)
What is Hyper-V Data Exchange Service (KVP) Hyper-V Data Exchange Service is one of the Integration Services on Hyper-V that provides a mechanism to exchange basic metadata between the virtual machine and the host. The data exchange service (KVP) shares small amounts of machine information between Virtual Machine and the Hyper-V host using key-value pairs (KVP) […]
Manage Windows Update using PowerShell
Managing windows update using PowerShell command is very helpful once the GUI is not available such as Windows Server Core or using PowerShell Remote. There are many ways managing Windows Update using PowerShell, through this article, I will show how to manage Windows Update using PowerShell Module created by MichalGajda. This module called PSWindowsUpdate, allows you to […]
Backup MySQL Database using PowerShell Script
Performing regular database backup is very important to avoid data loss. In this article, we will create a PowerShell Script to backup MySQL databases. Basically, the backup is using mysqldump command. This is an executable file that stored in MySQL installation folder under bin folder. So let’s start scripting : You can set a Task Scheduler to […]
Get public IP on a Windows Server via PowerShell
Getting public IP on troubleshot networking issue is very useful. Especially, there is an issue with accessing your server from the external (public) network. Here is how to get your server’s public IP using PowerShell Invoke-RestMethod Command. Also, you can get the detail of your public IP by removing “ip” variable on the command above. There are […]
PowerShell Script to add Multiple IP Address
Adding multiple IP Addresses on the windows server using a graphical interface is really a pain as each IP Address need to be assigned manually. Through this article, I will show you how to add multiple IP Addresses using PowerShell command. First, you need to get the Interface Index or Interface Alias of the NIC […]
PowerShell script is not digitally signed
When you try to run a PowerShell script that has not been signed by Trusted Publisher, you may get the following security error. <PowerShell Script file> is not digitally signed. You cannot runthis script on the current system. For more information about running scripts and setting execution policy, seeabout_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170. How to resolve the […]