How to check Website status on the Linux Server
Effective ways to create a Website Uptime Checker Script (check Website status on the Linux Server) in Linux using different commands like c
#everyone
d e v o n

bliss lane
Sade Olutola
hello vonnie

blake kathryn
Monterey Bay Aquarium
Keni

izzy's playlists!
Fai_Ryy
Cookie Run:Kingdom Official!

No title available
"I'm Dorothy Gale from Kansas"
occasionally subtle
Sweet Seals For You, Always

ellievsbear

gracie abrams
Cosimo Galluzzi

Jimmy Eat World

Love Begins

PR's Tumblrdome

seen from Argentina
seen from Italy
seen from China

seen from United Kingdom
seen from Saudi Arabia
seen from Thailand

seen from United States
seen from United States

seen from Japan

seen from Bangladesh
seen from Canada

seen from United States
seen from Brazil

seen from Türkiye

seen from Malaysia
seen from United States
seen from United States

seen from Paraguay

seen from United Kingdom
seen from Kosovo
@dotnet-helpers-blog
How to check Website status on the Linux Server
Effective ways to create a Website Uptime Checker Script (check Website status on the Linux Server) in Linux using different commands like c
#everyone
https://dotnet-helpers.com/devops/how-to-check-website-status-on-the-linux-server/ Maintaining website uptime is essential for a positive user experience, as even short periods of downtime can frustrate users and result in lost business. Automating uptime checks on a Linux machine allows quick detection of issues, enabling faster response times. In this article, we’ll explore simple, effective ways to create a Website Uptime Checker Script in Linux using different commands like curl, wget, ping. @everyone
Exception Handling – Try Catch with Custom Error Message in PowerShell
An error in a PowerShell script will prevent it from completing script execution successfully. Using error handling with try-catch blocks al
How to combine the elements of two arrays using Powershell
How to combine the elements of two arrays using Powershell
An array is a data structure that is designed to store a collection of items. The items can be the same type or different types. PowerShell (like most other languages) stay the same length once you create them. To combine two arrays, PowerShell creates a new array large enough to hold the contents of both arrays and then copies both arrays into the destination array.
If you plan to add and…
View On WordPress
How to Use PowerShell to Detect Logins and Alert Through Email using SendGrid
How to Use PowerShell to Detect Logins and Alert Through Email using SendGrid
From Microsoft MSDN, The Get-WinEvent data from event logs that are generated by the Windows Event Log technology introduced in Windows Vista.And, events in log files generated by Event Tracing for Windows (ETW).By default, Get-WinEvent returns event information in the order of newest to oldest.
Get-winevent: Gets events from event logs and event tracing log files on local and remote computers.…
View On WordPress
How to Use PowerShell to Detect Logins and Alert Through Email using SendGrid
How to Use PowerShell to Detect Logins and Alert Through Email using SendGrid
From Microsoft MSDN, The Get-WinEvent data from event logs that are generated by the Windows Event Log technology introduced in Windows Vista.And, events in log files generated by Event Tracing for Windows (ETW).By default, Get-WinEvent returns event information in the order of newest to oldest.
Get-winevent: Gets events from event logs and event tracing log files on local and remote computers.…
View On WordPress
How to delete files older than 30 days automatically using PowerShell
How to delete files older than 30 days automatically using PowerShell
How to use Task Scheduler to delete files older than 30 days using Powershell:
In many scenario we will store large number of non-important files on a different location, and its very difficult to delete those huge files old files monthly wise, to handle such scenario we are here going to use PowerShell and Task Scheduler to monitor and clean up files from any folder that are older than a…
View On WordPress
How to Read Multiline User Input in Powershell
How to Read Multiline User Input in Powershell
Here we will discuss about reading multi line inputs from command line using PowerShell. In some time we often get requirement to enter multiple lines or paragraphs of text as input to a PowerShell script, so we are going to discuss in this article.
Here logic is very simple, the Get-MultiLineInput function will repeatedly call Read-Host till the value entered by the user with “exit”. If user…
View On WordPress
How to write data to an xml file using Powershell
How to write data to an xml file using Powershell
Recently, I came up with a requirement of updating an config file (Xml data) in our PROD environment without login in to the sever to avoid the manual error, which lead to create this post. Let we start this implementation by step by step, here I’m using the XmlDocument .Net object here but it is possible to utilize other .Net classes, e.g. XPath and/or XDocument.
Sample XML file (web.config)
Th…
View On WordPress
Use PowerShell to create compressed ZIP files
Use PowerShell to create compressed ZIP files
In many scenario we will have a requirement for handling to create zip archives or extract files from existing archives with programmatically . From PowerShell 5.0, it has added two cmdlets for creating and extracting zip. The Compress-Archive cmdlet enables you to create new archives from folders or individual files and to add files to archives; Extract-Archive can be used to unzip files. Let…
View On WordPress
How to Use Multidimensional arrays in Powershell
How to Use Multidimensional arrays in Powershell
Before I show you how multi-dimensional arrays work, let we start what is an array. By default, PowerShell assumes that the elements of an array are of the type variant. This means that you can mix different data types—that is, combine numerical values, dates, or strings in a single variable. The data elements of a PowerShell array need not be of the same type, unless the data type is declared…
View On WordPress
Reading XML Files With PowerShell
Reading XML Files With PowerShell
Handling XML with PowerShell is very simple. Its converts XML elements to properties on .NET objects without the need to write any parsing code. So it is very easy to use XML with PowerShell. Here we are going to discuss about how to read the XML file values in different ways.
A Quick Example XML File : MyXM.xml’
E00023 [email protected] Aadharsh…
View On WordPress
Creating HTML report with CSS (Cascading Style Sheet) using Powershell
Creating HTML report with CSS (Cascading Style Sheet) using Powershell
All Tech/non Tech peoples loves a nice HTML report for reviewing. Creating these type of reports in PowerShell is very easy and simple. These type of nice HTML reports can be generate with the help ConvertTo-HTML cmdlet. Converts Microsoft .NET Framework objects into HTML that can be displayed in a Web browser. The ConvertTo-HTML does not create an actual file, just the HTML code.This means that…
View On WordPress
Move files to another directory Based on Filename with Powershell
Move files to another directory Based on Filename with Powershell
Where this code required?
In many scenario, we will got the requirement for moving the specific files from the large number of files from one location to another location based some filter on the file name. This code will helps with same situation.
STEP #1
Declare the souce and target path locations.
$srcpath = “C:\Powershelltest\Source” $dstpath = “C:\Powershelltest\Destination”
STEP #2
Fetch…
View On WordPress
Read Array values and generate CSV file
Read Array values and generate CSV file
The CSV file will have a line of headers to indicate column name and subsequent values for each column. The structured data is required for positioning in the CSV file,to achieve the Powershell has few option for structured data. Since a CSV file is just like a text file, it can loosely be created with Powershell’s Add-Content cmdlet.
We can use both Add-Content OR Export-Csv to create and write…
View On WordPress
How to Find Out Specifications of Server Using PowerShell
How to Find Out Specifications of Server Using PowerShell
When you are running a Windows server and you need to find out the specification of your servers then this tutorial will helps you to achieve with the help of PowerShell script.
Step 1#: Open PowerShell with secific privileges.
Step 2#: Execute below script to get the specifications of the Servers
Get-wmiobject win32_computersystem Get-WmiObject win32_processor
Explanation :
Get-wmiobject :Gets…
View On WordPress
Upload file with Powershell GUI
Upload file with Powershell GUI
In this post, we are going to dicuss about the file upload using the Powershell GUI. Instead of thinking highlevel, here i had split the three simple task to achieve the file upload functionality in the powershell.
Create Simple PowerShell UI for browsing the location of files with one textbox and two button type (upload & cancel) with help of system.Windows.Forms
In Browse button click event,…
View On WordPress