You are here: Windows OS HubPowershell (Page 2)

Archive for the 'Powershell' Category

Auditing Users Password Strength in AD

Posted on October 5th, 2016 · Posted in Active Directory, Powershell
Active Directory Password Quality Report

The complexity of a user password in Active Directory domain is one of the key security elements both for user data, and the entire domain. As a rule, users prefer to use weak, easy-to-remember passwords. Thus, they significantly reduce the level of protection against hackers for their accounts. In this.. read more

Tracking Files Deletion using Audit Policy and MSSQL

Posted on August 31st, 2016 · Posted in Powershell, Windows Server 2012 R2
select file deletion event from mysql db

Any Windows administrator has come across the situation when angry users want to know who has deleted a very important file of the annual report from the share on the file server. This information can be obtained only if you have enabled the audit of the deleted files and folders.. read more

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

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