You are here: Windows OS HubPowershell (Page 2)

Archive for the 'Powershell' Category

How To Create Self-Signed Certificate with PowerShell

Posted on April 8th, 2016 · Posted in Powershell, Windows 10
New-SelfSignedCertificate cmdlet

Most Windows administrators who are familiar with PKI know about the utility MakeCert.exe , which allows to create a self-signed certificate. This tool is included in Microsoft .NET Framework SDK and Microsoft Windows SDK. In Windows 8 and Windows Server 2012, a self-signed certificate can be created using PowerShell 3.0 or.. read more

PSReadLine – useful Powershell module

Posted on April 6th, 2016 · Posted in Powershell
powershell auto suggestion

In Windows 10 PowerShell has got a lot of new features, some of which are offered by PSReadLine module. PSReadLine is a third-party PowerShell module that allows to expand PowerShell command line experience. This module makes using the console easier and more comfortable.

How To Configure DHCP Server Using PowerShell

Posted on March 10th, 2016 · Posted in Powershell, Windows Server 2012 R2

There is no familiar console to manage a DHCP server (Dhcpmgmt.msc) in RSAT for Windows 10, it is recommended to use the equivalent Powershell commands instead. Thus, it is gently suggested that in the coming Windows Server 2016 release, the DHCP server will be configured only from Powershell. In this.. read more

How to Compress & Extract ZIP Archive Using PowerShell

Posted on March 9th, 2016 · Posted in Powershell
Extract ZIP files using PoSh

Usually to create archives automatically, I use 7zip. This tool is free, convenient and has a command line interface, which allows to use it in scripts. However, it is not always possible to install a third-party software on a server, so, if necessary, ZIP archives can be created using the.. read more

Copying Large Files Using BITS and PowerShell

Posted on February 3rd, 2016 · Posted in Powershell
recursively download folder using bits and powershell

As a rule, in local (and global) networks files are transferred between the systems using SMB, FTP or HTTP protocols. The problem of all these protocols is some troubles with resuming the download of the large files, which can become even worse if the channel is slow or unstable. Moreover,.. read more

PowerShell Commands History

Posted on December 22nd, 2015 · Posted in Powershell
\ConsoleHost_history.txt - powershell commands history

One of the main drawbacks of Powershell command prompt compared to bash was the inability to keep a history of executed commands. The command history could be viewed only in the current Powershell session, and when Powershell console has been closed or the computer has been restarted, the command history.. read more

Get-ADComputer: Getting Active Directory Computers Info via Powershell

Posted on December 9th, 2015 · Posted in Active Directory, Powershell
All AD computer properties

We go on studying useful PowerShell cmdlets to interact with Active Directory. In our last article, we told about Get-AD User cmdlet that allowed to get any information about AD user accounts. Today we’ll discuss Get-ADComputer cmdlet and its use to get information about computer accounts in Active Directory.

Adding a Simple Colorful Menu to PowerShell Script

Posted on November 17th, 2015 · Posted in Powershell
Colored menu in Powershell script

Let’s consider an example of making a simple colored menu for PowerShell allowing a user to easily select one of the available options of the script being executed. The script provides a user with several options to choose, control the selected option and perform the further actions depending on the.. read more

How Automatically Fill Computer Description Field in Active Directory

Posted on September 18th, 2015 · Posted in Active Directory, Powershell
populated computer description fileld in active directory

In this article we’ll demonstrate how to fill the computer information in Active Directory using PowerShell. As an example, we’ll show how to save the information about the computer model in the description field of a computer objects in Active Directory.

Get-ADUser: Getting Active Directory Users Data via Powershell

Posted on August 21st, 2015 · Posted in Active Directory, Powershell
get-aduser table view

It’s no secret that from the first PowerShell version, Microsoft tries to make it the main administrative tool in Windows. And it mostly succeeds! Using simple examples, we’ll demonstrate PowerShell features to get different information about Active Directory users and their attributes.