There are two ways to use the foreach loop parallelly in PowerShell.Using Foreach-Object -Parallel command (Supports in PowerShell 7.0 or above)Using Foreach -Parallel in Workflow (Supports PowerShell 5.1 or below)Suppose we have Servers.txt and which contains 10 Servers. When we use the Parallel for loop, it isn’t guaranteed which server loop will pick first as shown below with two examples.Using Foreach-Object-Parallel command. (not Foreach -Parallel)This Foreach-Object -Parallel command feature is newly added to the PowerShell version 7.0 or above.Example$servers = Get-Content C:\Temp\Servers.txt $servers | foreach-Object -parallel{ Write-output "Working on $_" }OutputPS C:\> C:\Temp\Test1.ps1 Working on IndiaServer003 Working on IndiaServer002 Working on IndiaServer001 Working on ... Read More
PowerShell workflow is built on the .Net based Windows Workflow Foundation (WWF) and it has a separate Workflow engine to execute the code because it translates code into XAML for the WWF framework.PowerShell workflow is series of steps that is mainly used forRunning activities parallelly on more than one machine.Long-running scripts.Structuring steps (Which steps will execute parallel and which in sequence)Frequently used tasks.Resuming the script from where it was terminated due to system failure or any other interruption by defining checkpoints.The PowerShell workflow was introduced in PowerShell 3.0 and discontinued for windows in the Core version (6.0 onwards) and only ... Read More
To validate the IP address using PowerShell, we can use several methods as shown below.Using RegEx method.Using Typecasting method.Using TypeCasting method.In this method, we are using System.Net method class IPAddress to validate the IP address.[ipaddress]$IP = "192.168.0.1"The above one is valid. Let’s check what $IP stores in.PS C:\> $IP Address : 16820416 AddressFamily : InterNetwork ScopeId : IsIPv6Multicast : False IsIPv6LinkLocal : False IsIPv6SiteLocal : False IsIPv6Teredo : False IsIPv4MappedToIPv6 : False IPAddressToString : 192.168.0.1The above one is Ipv4 and this method also works for IPv6. See the example below.PS C:\> [ipaddress]"2001:0db8:85a3:0000:0000:8a2e:0370:7334" Address : AddressFamily : InterNetworkV6 ScopeId ... Read More
Canva is a free graphic designing tool that allows you to create professional designs without any prior skills.Before you dive in and start designing with Canva, you should know about the dashboard of your Canva account so that you can use the features.This is how your account’s dashboard on Canva will look like.Here a few things you can do through your account’s dashboard.Creating a designYou can go to the design tab through various ways from your dashboard.You can click on the ‘create a design’ option present in the top-right corner.You can scroll down and select the suitable template to start ... Read More
If you are looking to create a logo that represents the face of your company but you don’t have the skills, you can always use Canva. Canva helps you create professional designs in a few minutes. Besides, Canva is free and open to everyone.To create a logo using Canva, follow these four steps.Click ‘create a design’Go to the homepage of Canva and press the ‘create a design’ button. You will find it on the topmost right corner of your dashboard.From the drop−down list of options, select the logo.You will be automatically redirected to the design tab.Select a suitable templateThis is ... Read More
To design a professional and engaging poster using Canva, follow these steps.Click ‘create a design’Go to your account dashboard press create a design button on the topmost right corner of the webpage. You will see a drop−down menu of various options appearing.We will select a poster for our design. There are two options when it comes to creating posters, portrait and landscape types. The default poster option is of portrait type.For our design, we will design a poster with the default dimensionsSelect a suitable templateAfter selecting the type of design, the design tab opens.This is how the design tab looks. ... Read More
When it comes to creating engaging and professional design in a few minutes, Canva is the best graphic designing tool. Also, it is free and open for everyone.To start creating your digital designs on Canva, you need to signup for a Canva account. Having a Canva account is important because −It keeps all your designs saved. You can access them from your account, edit, download them to your local file, or delete them.You can arrange your designs in folders.You can share your designs with others and allow others to share their designs with you.You can create a design team.If you ... Read More
What is Canva Pro?The premium version of Canva is the Canva Pro which comes additional library of stock images, templates, fonts, and other advanced features. It has more than 30 million users from teachers and students to businessmen and entrepreneurs.The paid version of Canva has various features useful for professional graphic designers and organizations.Canva Pro comes at a monthly subscription of $12.99 for individuals or $9.95 when billed annually. The enterprise plan is priced at $30.00 per user. It also offers free plans for teachers, students, and non−profit organizations.What are the added features of Canva Pro?Canva Pro has several added ... Read More
Canva is a graphic designing tool that has gained immense popularity due to its beginner−friendly interface and ability to create an engaging and professional design in no time.Canva has you covered for any digital design you need from posters and posts to infographics and resumes. Unlike other graphic design tools, it is free and open for everyone to use. You don’t need any prior experience to start using Canva.How to learn Canva?Learning graphic design with Canva is easy. There are a few ways through which you can learn to use Canva.Try it yourself firstYou can learn it without much help ... Read More
Both Canva and Photoshop are graphic designing tools with a million users but are different. While Canva is famous among beginners and entrepreneurs, Photoshop is the primary choice of Graphic Designers.Here are a few points that will show the contrast between both popular platforms.VersatilityThings you can make with Canva − Canva helps you design almost everything you can imagine. These are a few things listed that Canva helps you create in no time.PresentationsResumeSocial media postsLogoPostersThumbnailsVideosRestaurant MenusInfographicsBrochuresCertificatesLabels and InvoicesPlanners and BannersWorksheetsInvitation and business cardsNewsletters and FlyersReports and GraphsWebsiteE−Book and Magazine coversCalendarIf you don't find the thing you were looking for, you ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP