Software & Coding Articles

Found 825 articles

Difference between Open Source and Closed Source Software

Shirjeel Yunus
Shirjeel Yunus
Updated on 22-Aug-2024 1K+ Views

A software application can be called as open source or closed source depending on the availability of the source code. In this article, we will discuss the difference between open source and closed source software applications. What is an Open Source Software? Open source software is a computer application whose source code is available to the general public. The code is available over the internet and other users familiar with the programming language used can modify the code. Open source software applications are available at a low price and many of them are available for free. What is a Closed ...

Read More

Overview of Arduino IoT boards

Yash Sanghvi
Yash Sanghvi
Updated on 04-Mar-2024 545 Views

Arduino has come up with a number of boards specifically for Internet of Things (IoT) applications. If you go to the Products page on Arduino website, you will find a separate section for IoT boards. Their prices range from $18 to $69.The main feature that differentiates these boards from other Arduino boards (like Uno) is the presence of some connectivity onboard. For instance, The Arduino Nano 33 IOT board has WiFi and Bluetooth connectivity.The MKR Fox 1200 board (available in Europe only) supports the Sigfox architecture.The MKR GSM 1400 board supports GSM.The MKR NB 1500 supports the recently developed NBIoT ...

Read More

What are process states?

Bhanu Priya
Bhanu Priya
Updated on 07-Nov-2023 72K+ Views

A process is a program in execution and it is more than a program code called as text section and this concept works under all the operating system because all the task perform by the operating system needs a process to perform the taskThe process executes when it changes the state. The state of a process is defined by the current activity of the process.Each process may be in any one of the following states −New − The process is being created.Running − In this state the instructions are being executed.Waiting − The process is in waiting state until an ...

Read More

How to install the MSI file using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 06-Nov-2023 25K+ Views

To install the MSI file with PowerShell, we can use cmdlet Start-Process.Let say we want to install the 7ZIP MSI file on the local computer and we have downloaded and stored the source file on the C:\temp location. Once we run the below command it will start the MSI installation.Start-Process C:\Temp\7z1900-x64.msiThe above command will open the GUI to install the MSI file but we use PowerShell to avoid GUI interaction so we can add the argument to install the file.If you check which arguments are available to run the MSI file, use the below command.C:\Temp\7z1900-x64.msi /?It will popup box like ...

Read More

How to add the user to the local Administrators group using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 04-Nov-2023 45K+ Views

To add the AD user or the local user to the local Administrators group using PowerShell, we need to use the Add-LocalGroupMember command.To add the local user to the local Administrators group, Add-LocalGroupMember -Group Administrators -Member TestUser -VerboseThe above command will add TestUser to the local Administrators group. You can provide any local group name there and any local user name instead of TestUserYou can also add the Active Directory domain user to the Local Administrators group by providing the domain name if the computer is in the same domain.For example, we will add the Beta user from the AutomationLab ...

Read More

How to change Azure Subscription in PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 03-Nov-2023 36K+ Views

To change the azure subscription using PowerShell, we can use the Select-AZSubscription command. When you use this command, you can use either the subscription ID, Subscription Name, or the Tenant ID.ExampleWith Subscription Name,Select-AzSubscription -SubscriptionName 'Visual Studio'With TenantID,Select-AzSubscription -Tenant 'XXXX-XXXXX-XXXXXXX-XXXX'With Subscription ID,Select-AzSubscription -SubscriptionId 'XXXX-XXXXX-XXXXXXX-XXXX'Sometimes on console messages will appear that one or more subscriptions are active. In that case, you can switch the other subscription using the Set-AZContext command and you can use subscription ID or the Name for it.ExampleSet-AzContext -SubscriptionId "xxxx-xxxx-xxxx-xxxx" OrSet-AzContext -SubscriptionName "Visual Studio"

Read More

How does the operating system act as a resource manager and extended machine?

Bhanu Priya
Bhanu Priya
Updated on 03-Nov-2023 38K+ Views

An operating system is the interface between the user and the machine which controls and coordinates the use of the hardware among the various application programs for the various users. Operating System as Extended Machine Let us understand how the operating system works as an Extended Machine. At the Machine level the structure of a computer’s system is complicated to program, mainly for input or output. Programmers do not deal with hardware. They will always mainly focus on implementing software. Therefore, a level of abstraction is supposed ...

Read More

How to get the System uptime with PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 01-Nov-2023 50K+ Views

To get the Windows System uptime with PowerShell, we can use the CIM Instance method with class name Win32_OperatingSystem. Once you use the mentioned class there is a property called LastBootupTime which shows the date when the computer is last rebooted.ExampleGet-CimInstance -ClassName Win32_OperatingSystem | Select LastBootUpTimeOutputLastBootUpTime -------------- 9/29/2020 8:12:08 AMIf we check the datatype of the above output, it should be DateTime because of the output format.(Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime.Gettype()OutputIsPublic IsSerial Name     BaseType -------- -------- ----     -------- True     True     DateTime System.ValueTypeWe need now the uptime of the system in Days-Hours-Minutes format. So we will compare ...

Read More

How to get the path of the currently executing script in PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 01-Nov-2023 46K+ Views

To get the full path of the script we need to use the $myInvocation command. This is an automatic variable and it is only invoked when the script or the function is executed.$MyInvocation.MyCommand.Path command is useful to get the full path of the script where it resides while $MyInvocation.MyCommand.Name is useful to get the name of the script. Example$mypath = $MyInvocation.MyCommand.Path Write-Output "Path of the script : $mypath"OutputPS C:\WINDOWS\system32> C:\Temp\TestPS.ps1 Path of the script : C:\Temp\TestPS.ps1Please note that we are running the above script from the System32 directory and the output path is C:\temp. To get the script directory, we can ...

Read More

How to get the local Administrators group members using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 01-Nov-2023 52K+ Views

To get the local Administrators group members using PowerShell, you need to use the GetLocalGroupMember command. This command is available in PowerShell version 5.1 onwards and the module for it is Microsoft.PowerShell.LocalAccounts. This module is not available in the 32-bit PowerShell version but on a 64-bit system.In the below example, we need to retrieve the Local Administrators group members, ExampleGet-LocalGroupMember -Group "Administrators"OutputObjectClass    Name          PrincipalSource -----------    ----          --------------- User          LABDOMAIN\delta Group         LABDOMAIN\Domain Admins User          TEST1-WIN2K12\Administrator User       ...

Read More
Showing 1–10 of 825 articles
« Prev 1 2 3 4 5 83 Next »
Advertisements