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
Just like any other programming language, you can comment out code in a PowerShell script for documentation purposes. To comment out a single line, put '#' in the beginning: To comment out multiple lines, put <# at the beginning and #> at the end of code.
When you apply a group policy on a container or OU, it applies to all users or computers in that container. However, you can exclude a single or multiple users or containers from the policy applied. This tutorial is written to show you how to exclude a single user from a group policy object. Exclude a ... Read more
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
What hides behind this name is the Microsoft Visual C++ Redistributable which can easily be downloaded on the Microsoft website as x86 or x64 edition: 32 bit: http://www.microsoft.com/download/en/details.aspx?id=5555 64 bit: http://www.microsoft.com/download/en/details.aspx?id=14632 Usually, the application that misses the dll indicates what version you need - if one does not work, simply install the other.
To execute PowerShell commands or scripts on a remote computer, you need to create a session. This is also known as PowerShell remoting and it is just like an SSH session to an operating system. There are several ways to create a PowerShell session. I'll list one of the easiest methods here. These are the required ... Read more
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
The ping command is used to test the availability of a remote or destination machine on a network. In this tutorial, I'll show you it's various uses on Windows operating systems. All the commands can be run on command prompt or PowerShell. I have tested the tutorial on Windows 10, however, it should run on ... Read more
Microsoft is vigilant when it comes to adding features to the Windows operating system for the convenience of their users. Their goal is to make Windows as user-friendly as possible. One such element of convenience by Microsoft is the automatic connection to a known wireless network. Microsoft has this default auto-connect setting in Windows ... Read more
User Account Control also known as UAC is an important component of the "Windows security system". This helps the applications running in the windows to prevent your system from making any undesired changes. Whenever software is running in a system and it tries to make changes in the system, a window dialog box appears that ... Read more