You are here: Windows OS HubPowershell (Page 2)

Archive for the 'Powershell' Category

Run MySQL Queries from PowerShell

Posted on August 22nd, 2016 · Posted in Powershell
posh: select query from mysql

One of the useful PowerShell features is the opportunity to connect to databases on remote servers, including MySQL ones. Thus, you can address MySQL tables to access data directly from PowerShell console. In this article, we’ll deal with the examples of connection to MySQL DB from PowerShell script and some.. read more

Generating Random Password with PowerShell

Posted on August 11th, 2016 · Posted in Powershell
PoSh Script to Generate Random password

It is not easy to think a secure password, so that it meet certain requirements to the length and complexity. There are many programs and online services in the Internet to generate passwords, but why using third-party programs if you can do with the tools that already exist in your system… read more

How to Measure Disk IOPS Using PowerShell

Posted on June 15th, 2016 · Posted in Powershell, Windows Server 2012 R2
test iops

One of the main metrics, which allows to estimate the performance of the existing or developed storage system is IOPS (Input/Output Operations Per Second). In simple terms, IOPS is the number of blocks read from or written to a media or a file system in a time unit. The larger.. read more

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
Get-DHCPServerv4Lease

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.