Software & Coding Articles

Page 40 of 83

How to retrieve the Azure VM NIC name using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 28-Apr-2021 2K+ Views

To retrieve the Azure VM NIC using PowerShell, we need to first get the VM details. For this example, we have the VM name “TestMachine2k16”. To retrieve the VM details use the Get-AzVM command but before that make sure you are connected to the Azure Account using PowerShell session.PS C:\> $vm = Get-AzVM -VMName Testmachine2k16VM NIC information is stored inside the NetworkProfile property.PS C:\> $vm.NetworkProfileThis will retrieve all the NICs attached to the VM. If there are multiple NICs then we need to store the nic information into the array and have to perform some string operation to get the ...

Read More

How to install the MSI package using PowerShell DSC?

Chirag Nagrekar
Chirag Nagrekar
Updated on 28-Apr-2021 2K+ Views

To install the MSI package using DSC, we need to use the DSC resource “Package”. Let see which properties are available for this resource.PS C:\> Get-DscResource -Name Package | Select -ExpandProperty Properties Name PropertyType IsMandatory Values ---- ------------ ----------- ------ Name [string] True {} Path [string] True {} ProductId [string] True {} Arguments [string] False {} Credential [PSCredential] False {} DependsOn [string[]] False {} Ensure [string] False {Absent, Present} LogPath [string] False {} PsDscRunAsCredential [PSCredential] False {} ReturnCode [UInt32[]] False {}Name, Path, and ProductID parameters are mandatory for this DSC resource.The best way to retrieve the above details is ...

Read More

How to get the IIS Application Pool names using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 28-Apr-2021 7K+ Views

To get the IIS application pool names using PowerShell, you need to use the IIS PSDrive but for that, we need the IIS PowerShell module WebAdministration or IISAdministration on the server we are running the command.If the WebAdministration module is already installed, use the below command to import the module.Import-Module WebAdministration -VerboseOnce you Import the above module, you can see the IIS PSDrive will be activated in the current session.To get all the application Pools run the below command, Get-ChildItem IIS:\AppPools\OutputName                     State        Applications ----       ...

Read More

How to get all the user profiles on the System using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 28-Apr-2021 5K+ Views

All the new user profiles are created on the windows system at the path,'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList'To retrieve all the user profiles, we can usegci 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' | ForEach-Object { $_.GetValue('ProfileImagePath') }ProfileImagePath property shows the location of the user profiles.Another way to retrieve the User Profile is using WMI.PS C:\> gwmi win32_userprofile |Select -ExpandProperty LocalPathOutputC:\Users\.NET v2.0 Classic C:\Users\.NET v4.5 Classic C:\Users\.NET v2.0 C:\Users\.NET v4.5 C:\Users\Classic .NET AppPool C:\Users\Administrator.AUTOMATIONLAB C:\Users\delta

Read More

How to get the IIS Application Pool Recycle settings using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 28-Apr-2021 3K+ Views

To get the IIS application Pool to recycle settings using GUI, you need to check the Application pool advanced settings.To retrieve the above settings using PowerShell, we can use the Get-IISAppPool command with the specific application pool name. We have the application pool, DefaultAppPool and we need to retrieve its Recycling settings.PS C:\> (Get-IISAppPool -Name DefaultAppPool).RecyclingOutputBelow settings will be for the Periodic restart.PS C:\> (Get-IISAppPool -Name DefaultAppPool).Recycling.PeriodicRestartOutputMemory          : 0 PrivateMemory   : 102400 Requests        : 0 Schedule        : {add} Time            : 1.05:00:00 Attributes     ...

Read More

How to get the IIS Application Pool failure Settings using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 28-Apr-2021 954 Views

Using GUI from the IIS Manager, you can get the Application Pool Failure settings using App pool advanced settings from the Rapid-Fail Protection section as shown below.To retrieve the above settings using PowerShell, (Get-IISAppPool -Name DefaultAppPool).failureTo run the above command we need the IISAdministration module. You can retrieve the same settings using the WebAdministration module and using IIS PSDrive.(Get-ItemProperty IIS:\AppPools\DefaultAppPool\).failureTo retrieve the specific settings like Failure Interval or Maximum failures, use the below command.Failure Intervals, PS C:\> (Get-IISAppPool -Name DefaultAppPool).failure.rapidFailProtectionInterval Days              : 0 Hours             : 0 Minutes         ...

Read More

How to get the IIS Application Pool queue length using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 28-Apr-2021 1K+ Views

From the GUI, to retrieve the Application Pool queue length you need to check the Advanced Settings of the Application Pool.To get the IIS application Pool queue length using PowerShell, first, we need to the application pool name. There are two ways (and maybe others) to retrieve once we have the name of the application pool.For example, we need to retrieve the queue length for the application pool DefaultAppPool.(Get-IISAppPool -Name DefaultAppPool).queuelengthTo run the above command, you need the IISAdministration Module. You can also use the IIS PS drive but for that WebAdministration module should be loaded.(Get-ItemProperty IIS:\AppPools\DefaultAppPool).queuelength

Read More

Difference Between Waterfall Model and Spiral Model

AmitDiwan
AmitDiwan
Updated on 27-Apr-2021 4K+ Views

In this post, we will understand the difference between waterfall model and spiral model −Waterfall ModelIt works in sequential method.The errors and risks are identified and rectified after the stages are completed.It is generally used by customers.It can be used with small projects.The requirements and early stage planning is important and required.It is not flexible.It is difficult to make changes in a waterfall model.It involves a high amount of risk.It is comparatively less expensive.Following is the representation of Waterfall Model −Spiral ModelIt works in evolutionary method.The errors and risks are identified and rectified before the stages are complete.It is generally ...

Read More

Difference Between Test Plan and Test Strategy

AmitDiwan
AmitDiwan
Updated on 27-Apr-2021 566 Views

In this post, we will understand the difference between test plan and test strategy −Test PlanIt is a document prepared for a software project that defines the approach, scope, and intensity required for software testing.It can be changed.It happens independently.It describes the details.It is only done by the test administrator or test manager.It is generally utilized at the project level.Its objective deals with how and when to test the product or system, and who would confirm it.Test StrategyIt is a set of instructions that explain the test design.They also help determine how the test has to be performed.It can’t be ...

Read More

How to delete the Azure Resource Group using PowerShell?

Chirag Nagrekar
Chirag Nagrekar
Updated on 12-Apr-2021 2K+ Views

To delete the azure resource group using PowerShell, we need to use the Remove-AZResourceGroup command. But before using this command, make sure that no usable resources exist in the resource group that you want to delete.To check if the resources are available in the resource group, use the below command. Here we are using the TestRG resource group name.ExampleGet-AzResource -ResourceGroupName TestRGOnce you are confirmed that you need to delete the Resource Group then use the below command to delete the resource group.ExampleRemove-AzResourceGroup TestRG -Force -VerboseWhen you use the -Force parameter, you won’t be prompted for deletion confirmation.

Read More
Showing 391–400 of 825 articles
« Prev 1 38 39 40 41 42 83 Next »
Advertisements