Learn java
Java is among the most popular programming languages used worldwise. Our quality java tutorial will help you learn it in easy way.
Learn java and Python with top notch quality content. Hit Start Learning button to get started
Java is among the most popular programming languages used worldwise. Our quality java tutorial will help you learn it in easy way.
Learn data structure and algorithm with 100+ programming questions.
Spring is an open source framework created to address the complexity of enterprise application development. Learn Spring with step by step tutorials.
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”. Learn Spring boot with step by step tutorials.
Are you preparing for interview? Our quality interview questions will help you ace programming interview.
Python is an interpreted, high-level and general-purpose programming language. Learn Python with quality tutorials.
1. Overview Searching for strings in text files is a common task in bash, used in scenarios like log file analysis and configuration file searches. This article explores various methods to check if file contains String, including both case-sensitive and case-insensitive approaches. 2. Introduction to Problem Statement Let’s consider a log file named server.log: [crayon-674107bf3dedb806958520/] […]
Using Get-ADDefaultDomainPasswordPolicy Cmdlet The Get-ADDefaultDomainPasswordPolicy is used to get the default password policy for the specified domain. We can use it differently in different use cases; let’s learn a few of them below. Use the Get-ADDefaultDomainPasswordPolicy cmdlet with the -Current parameter to get the default password policy for the currently logged-on user in an active […]
1. Introduction In environments where internet access is controlled through a proxy, PowerShell scripts often need to be aware of these settings to function correctly. This article will guide you through different methods to get proxy settings using PowerShell, focusing on the proxy address, port, and its operational status. 2. Using Net.WebProxy Class The Net.WebProxy […]
We can have multiple use cases for getting memory usage percentages. For example: Getting overall memory usage percentage Getting overall memory usage percentage history Getting memory usage percentage for one/all processes Let’s learn them one by one. Overcall Memory Usage Percentage We can use Get-Counter and Get-WmiObject cmdlets to retrieve the overall memory usage percentage. […]
Using Environment Variable Use an environment variable to get a fully qualified domain name. [crayon-674107bf40541213079159/] [crayon-674107bf40545100974527/] First, we assigned the value of the environment variable ($evn:COMPUTERNAME) to the $computer_name variable. The environment variable COMPUTERNAME stored the current computer’s name or you can say the current host’s name; both meaning the same. Then, we assigned the […]
Using ConvertFrom-Json Cmdlet We can use the ConvertFrom-Json cmdlet to traverse the JSON file with first and nested-level keys; Let’s explore them below. Traverse JSON File Containing First-Level Keys Use ConvertFrom-Json with the foreach loop to traverse the JSON file having first-level keys only. [crayon-674107bf414db270530618/] [crayon-674107bf414e1335843227/] [crayon-674107bf414e2320459823/] We used the Get-Content cmdlet to read the […]