Chirag Nagrekar has Published 468 Answers

How to disable the credssp authentication using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:10:11
To disable the credssp on the local computer using PowerShell, use the below command.PS C:\> Disable-WSManCredSSP -Role Server -VerboseYou can check if the credssp is disabled, using the below command.PS C:\> Get-ChildItem WSMan:\localhost\Service\Auth | Where-Object {$_.Name    -eq"CredSSP"} | Select Name, Value Name    Value ----    ----- CredSSP falseTo ... Read More

How to enable credssp authentication on windows server using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:09:31
Before enabling the credssp authentication for the windows server, we will first check the credssp status using the below command.Get-ChildItem WSMan:\localhost\Service\Auth | Where-Object {$_.Name -eq "CredSSP"}    | Select Name, ValueOutputName    Value ----    ----- CredSSP falseTo enable the credssp, PS C:\> Enable-WSManCredSSP -role server -ForceOutputcfg       ... Read More

How to get the windows authentication settings using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:07:02
To get the windows server authentication setting using PowerShell, we can use the below command on the local server.PS C:\> Get-ChildItem WSMan:\localhost\Service\Auth | Select name, valueOutputName              Value ----              ----- Basic             false Kerberos ... Read More

How to get Azure VM activity logs using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:05:23
To get the Azure VM activity logs with PowerShell, we need to use the Get-AzLog command. Before running, AZ commands make sure that you are connected to the Azure Account using (ConnectAzAccount) and the subscription (Set-AzContext).We have the below TestVM, we need to retrieve activity logs and we need its ... Read More

How to get the Azure VM storage account type using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:04:37
To get the Azure VM storage account type using PowerShell, we need to get the Azure VM storage profile setting from the Get-AzVM command.PS C:\> $vm = Get-AzVM -Name TestVM PS C:\> $vm.StorageProfile.OsDisk.ManagedDisk.StorageAccountTypeOutputTo get the storage account type on the multiple VMs from the specific subscription, use the below command.Get-AzVM ... Read More

How to get the installed Azure VM extension using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:03:42
To get the installed Azure VM extension using PowerShell, we can use the Get-AzVmExtension command and we need to provide VM name and the resource group name in the command.$vm = Get-AzVM -Name TestVM Get-AzVMExtension -VMName $vm.Name -ResourceGroupName $vm.ResourceGroupNameThe above command will retrieve all the extensions in detail of the ... Read More

How to get the Azure VM disk caching settings using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:02:37
To get the azure disk caching settings using PowerShell, we first need to retrieve the VM information using the Get-AzVM command. Before running this command, make sure that you are connected to the Azure account (Connect-AzAccount) and the proper subscription (Set-AzContext).In this example, we have a TestVM.$vm = Get-AzVM -Name ... Read More

How to get the Azure VM disk encryption settings using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:01:30
To get the Azure disk encryption settings using PowerShell, we first need to retrieve the VM information using the Get-AzVM command. Before running this command, make sure that you are connected to the Azure account (Connect-AzAccount) and the proper subscription (Set-AzContext).In this example, we have a TestVM.$vm = Get-AzVM -Name ... Read More

How to uninstall the MSI package using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 10:00:51
To uninstall the MSI package using PowerShell, we need the product code and then the product code can be used with msiexec file to uninstall the particular application.Product code can be retrieved using the Get-Package or Get-WmiClass method. In this example, we will uninstall the 7-zip package.$product = Get-WmiObject win32_product | ... Read More

How to retrieve the MSI package product code using PowerShell?

Chirag Nagrekar
Published on 31-Aug-2021 09:59:23
You can retrieve the MSI installed packaged product code on the windows OS using PowerShell with Get-Package or Get-WmiObject command.In this example, we will retrieve the product code of 7-zip.Get-Package -Name '7-Zip 19.00 (x64 edition)' | fl *You can use the tagid or mentioned properties to filter the product code.To ... Read More
Previous 1 ... 3 4 5 6 7 8 9 ... 47 Next
Advertisements