Powershell – Page 2 – POFTUT

What Is A Function and How To Create Function In PHP, Python, JavaScript, C/C++, C#, Bash, Java , PowerShell Programming Languages?

What Is A Function and How To Create Function In PHP, Python, JavaScript, C/C++, C#, Bash, Java , PowerShell Programming Languages?

A function is a basic element of the programming languages. The function is derived from mathematics where complex operations are summed and aggregated together for multiple use cases. In programming, language function provides abstractions, simplicity, elegance for code which can be used multiple times with a simple call. Syntax Of The Function The function is … Read more

What Is SHA-256 and How To Calculate SHA-256 In Different Programming Languages?

What Is SHA-256 and How To Calculate SHA-256 In Different Programming Languages?

Hash algorithms are the heart of the cryptography and security. SHA-256 is a Secure Hash Algorithm which will generate an output hash value in 256 bit. SHA-256 is designed by the National Security Agency  (NSA). SHA-256 is one of the cryptographic hash functions. SHA-256 has also named a one-way function where the generated hash value … Read more

What Is String Data Type In JavaScript, Java, Python, C# , PHP, C, C++, PowerShell Programming Languages?

String is a very popular data type which can be used in different programming languages like JavaScript, Java, Python, C#, PHP, C, C++, PowerShell.  String is mainly used to store characters like a text. Alternative data types are an integer, floating point, etc where they are mainly used for mathematical calculations. For example “I am … Read more

Get-ChildItem Cmdlet To Loop Files and Results

Get-ChildItem is very useful cmdlet provided by Powershell. This cmdlet has two main usages. One is if the directory is provided as a parameter the given directory files and folders will be enumerated like a loop. Second is if a list or container is provided all the child will we enumerated.  Let’s start action to learn … Read more

Powershell ForEach Loop Statement Tutorial with Examples

ForEach is a PowerShell statement used to use iterate or loop over the given list, array or collection of the objects, strings, numbers, etc. ForEach is a very popular loop mechanism where we can use different cases like loop through files, Numbers, Strings, Processes, etc. Powershell version 4.0 brings some performance improvements to the ForEach loop. … Read more

Powershell Array Tutorial with Examples

Powershell arrays are used to store a collection of elements in a single variable. These elements do not to be the same type and declared in different ways. Create Array We will start with a simple example where we will create an array by providing the items. Items will be delimited with the comma. The … Read more

Powershell Copy-Item Command Tutorial with Examples

Powershell provides Copy-Item cmdlet to copy an item from one location to another location. This item can be a file, folder or directory. Copy-Item cmdlet provides different features and options like overwrite, filter, exclude, verbose, progress etc. In this tutorial, we will learn these features by examples. Copy File To Specified Directory We will start … Read more

How To Sleep PowerShell with Start-Sleep Command-let Tutorial with Examples?

PowerShell is not just a shell where it can provide programmatic features. We can use Start-Sleep command-let in order to suspend the script or activity for specified period of time. Syntax Start-Sleep has very simple syntax where we will just provide the options which is used to specify seconds or milliseconds and the time we … Read more

Shell Scripting Languages Examples, Bash, Sh, Python, Powershell, MSDOS, PHP, Tcl, Perl

A scripting language is a programming language supports writing simply to medium level applications in operating systems like Linux, Ubuntu, Debian, CentOS, Windows, MacOS, BSD, Unix. Scripting languages can be used to run complex tasks automatically or manually with very little effort. We can describe actions in a scripting language and run them easily. In … Read more