Managing FTP/SFTP/SSH using PowerShell on Windows 10

The Power of the PowerShell - Managing FTP/SFTP/SSH using PowerShell on Windows 10

There are no built-in cmdlets in PowerShell designed for managing FTP but you can easily download and install a free module to fill the gap if ever needed. Posh-SSH is a PowerShell 3.0 or newer module for automating tasks against systems using the SSH protocol. The module supports only a subset of the capabilities that the different SSH RFCs  http://en.wikipedia.org/wiki/Secure_Shell […]

Wrap PowerShell Scripts into Executables

PowerShell

Via Jan-Hendrik Peter’s blog: Every now and then while delivering one of our PowerShell workshops, my customers ask me “How can I create an exe from my PowerShell script?” And every time the same reasoning is being used: To obfuscate the use of clear text passwords, connection strings and other sensitive data from prying eyes. Sure, most will tell me […]

Counting the Number of AD User Accounts in PowerShell

powershell cim 1 - Counting the Number of AD User Accounts in PowerShell

Here are some PowerShell examples that we can use to count the numbers of user accounts in Active Directory. Total number of user accounts in AD PS> (Get-ADUser -filter *).count Total number of user accounts in an OU PS> (Get-ADUser -filter * -searchbase “OU=Vancouver, OU=MyCompany, DC=Domain, DC=Local”).count Replace the SearchBase with your own OU path. Total number of enabled/disabled accounts in […]