Azure -Adding Data Disks - PowerShell

Azure - Adding Data Disks - PowerShell 
PowerShell command for adding a data disk
$resourcegroup = 'azuredemo'
$machinename = 'demovm'
$location = 'Central US'
$storageType = 'Premium_LRS'
$dataDiskName = 'newdisk01'
$dataDiskSize = 10

$datadiskConfig = New-AzDiskConfig -SkuName $storageType -Location $location -CreateOption Empty -DiskSizeGB $dataDiskSize

$dataDisk01 = New-AzDisk -DiskName $dataDiskName -Disk $datadiskConfig -ResourceGroupName $resourcegroup

$vm = Get-AzVM -Name $machinename -ResourceGroupName $resourcegroup

$vm = Add-AzVMDataDisk -VM $vm -Name $dataDiskName -CreateOption Attach -ManagedDiskId $dataDisk01.Id -Lun 1

Update-AzVM -VM $vm -ResourceGroupName $resourcegroup

Create Azure virtual machines - CLI and PowerShell

Create Azure virtual machines - CLI and PowerShell 
Azure CLI for quickly creating a virtual machine
az vm create --resource-group azuredemo --name demovm --image win2016datacenter --admin-username demousr --admin-password AzurePortal@123
PowerShell command for quickly creating a virtual machine
New-AzVm -ResourceGroupName azuredemo -Name backupvm -Location CentralUS -Image win2016datacenter -Credential (Get-Credential)

Install Azure CLI via PowerShell

Install Azure CLI via PowerShell


You can also install the Azure CLI using PowerShell. Start PowerShell as administrator and run the following command:

Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi


This will download and install the latest version of the Azure CLI for Windows. If you already have a version installed, the installer will update the existing version. After the installation is complete, you will need to reopen PowerShell to use the Azure CLI.


Run the Azure CLI


You can now run the Azure CLI with the az command from either Windows Command Prompt or PowerShell. 

az login

  1. If the CLI can open your default browser, it will do so and load an Azure sign-in page.
    Otherwise, open a browser page at https://aka.ms/devicelogin and enter the authorization code displayed in your terminal.
  2. Sign in with your account credentials in the browser.

Connect MS AZURE to Powershell

Connect MS AZURE  to Powershell

// Allow remote signed scripts to run

Set-ExecutionPolicy RemoteSigned

//Installing the Azure PowerShell modules

Install-Module -Name Az -AllowClobber -Scope CurrentUser

// Import all the Azure modules

Import-Module Az -Verbose

// Connect to your Azure account

Connect-AzAccount

// Get all resource groups running in a particular region

Get-AzResourceGroup -Location centralus

DNS Query Commands

USEFUL DNS COMMAND SET

(Make sure that your PC is added in domain and you are logging in domain account with admin privileges. You need to open command prompt and try the below commands.
"net user userid /do" command will give many basic info in AD


Mail Box Location
dsquery * -filter sAMAccountName="userid" -attr msExchHomeServerName"

Sip ID
dsquery * -filter sAMAccountName="userid" -attr msRTCSIP-PrimaryUserAddress"


Active Sync Status
dsquery * -filter sAMAccountName="userid" -attr msExchMobileMailboxFlags"


Active Sync Policy
dsquery * -filter sAMAccountName="userid" -attr msExchMobileMailboxPolicyLink"


BAND 
dsquery * -filter sAMAccountName="userid" -attr SapCareerGroup"


LYN OUT SIDE ACCESS
dsquery * -filter sAMAccountName="userid" -attr  msRTCSIP-InternetAccessEnabled"


FEDERATION
dsquery * -filter sAMAccountName="userid" -attr msRTCSIP-FederationEnabled


OFFICE 365 SMTP
dsquery * -filter sAMAccountName="userid" -attr proxyAddresses"


DATE OF ID CREATION
dsquery * -filter sAMAccountName="userid" -attr whenCreated"


DATE OF JOINING
dsquery * -filter sAMAccountName="userid" -attr doj








Virus removal tools by Symantec


DateName
12/16/11Trojan.Zeroaccess Removal Tool

04/21/11W32.Qakbot Permission Reset Tool

04/21/11W32.Qakbot Permission Reset Tool
04/01/11Adware.Ezula Removal Tool
11/25/10W32.Ackantta!Dr Removal Tool
09/13/10W32.Imsolk.B@mm Removal Tool
09/06/10Backdoor.Tidserv Removal Tool
10/29/09Trojan.Ramvicrype Removal Tool
04/16/09Symantec Trojan.Ransomlock Key Generator Tool
04/15/09Trojan.Initbar Removal Tool
03/24/09Trojan.Xrupter Removal Tool
02/20/09W32.Virut Removal Tool
02/01/09Trojan.Bankpatch Removal Tool
01/13/09W32.Downadup Removal Tool
07/22/08Trojan.Brisv.A!inf Removal Tool
01/11/07Backdoor.Haxdoor.S/Trojan.Schoeberl.E Removal Tool
01/04/07W32.Spybot.ANDM Removal Tool
11/29/06W32.Spybot.ACYR Removal Tool
10/19/06W32.Rajump Removal Tool
10/17/06W32.Pasobir Removal Tool
10/04/06Symantec Support Tool ActiveX Control Cleanup Tool
09/23/06Trojan.Linkoptimizer Removal Tool
09/14/06W32.Bacalid Removal Tool
03/23/06Trojan.Abwiz Removal Tool
03/23/06Trojan.Exponny Removal Tool
03/23/06Trojan.Sientok Removal Tool
03/23/06W32.Antinny Removal Tool
03/17/06W32.Davs Removal Tool
02/02/06W32.Kiman Removal Tool
01/17/06W32.Blackmal@mm Removal Tool
12/02/05W32.Secefa Removal Tool
11/10/05Backdoor.Ryknos Removal Tool
11/03/05Trojan.Lodear Removal Tool
10/20/05Symantec Mobile Threats Removal Tool
09/22/05W32.Pexmor@mm Removal Tool
08/29/05W32.Bobax@mm Removal Tool
08/17/05W32.Esbot Removal Tool
08/15/05W32.Zotob Removal Tool
07/19/05W32.Reatle@mm Removal Tool
05/16/05Trojan.Jasbom Removal Tool
04/29/05Trojan.Vundo.B Removal Tool
04/13/05W32.Mytob.AR@mm Removal Tool
03/18/05W32.Serflog Removal Tool
03/08/05W32.Kelvir Removal Tool
03/07/05W32.Serflog.A Removal Tool
02/28/05W32.Mytob@mm Removal Tool
02/03/05W32.Bropia Removal Tool
12/17/04W32.Envid@mm Removal Tool
11/22/04Trojan.Vundo Removal Tool
11/17/04W32.Bofra@mm Removal Tool
10/04/04Adware.JustFindIt Removal Tool
08/10/04Backdoor.Agent.B Removal Tool
08/04/04W32.Evaman.C Removal Tool
06/14/04W32.Erkez.B@mm Removal Tool
06/02/04W32.Korgo Removal Tool
05/20/04W32.Donk.Q Removal Tool
05/06/04Tool to reset shell\open\command registry keys
05/01/04W32.Sasser Removal Tool
04/21/04W32.Opasa@mm Removal Tool
04/20/04W32.Erkez@mm Removal Tool
04/07/04W32.Blackmal.B@mm Removal Tool
04/02/04W32.Gaobot.UJ Removal Tool
03/14/04W32.Beagle.MO@mm Removal Tool
02/18/04W32.Netsky@mm Removal Tool
01/30/04W32.HLLW.Anig Removal Tool
01/27/04W32.Mydoom@mm Removal Tool
01/19/04W32.Beagle@mm Removal Tool
01/13/04W32.Gaobot Removal Tool
10/29/03W32.Sober Removal Tool
10/03/03Trojan.Qhosts Removal Tool
09/19/03W32.Swen.A@mm Removal Tool
08/19/03W32.Dumaru Removal Tool
08/19/03W32.Sobig.F@mm Removal Tool
08/18/03W32.Welchia.Worm Removal Tool
08/11/03W32.Blaster.Worm Removal Tool
08/08/03Backdoor.Winshell.50 Removal Tool
08/01/03W32.Mimail Removal Tool
06/27/03W32.Mumu.B.Worm Removal Tool
06/25/03W32.Sobig.E@mm Removal Tool
06/16/03W32.ExploreZip.Worm Removal Tool
06/06/03W32.Femot.Worm Removal Tool
06/05/03W32.Bugbear.B@mm Removal Tool
06/04/03Bat.Mumu.A.Worm Removal Tool
06/01/03W32.Sobig.C Removal Tool
05/18/03W32.Sobig.B Removal Tool
05/12/03W32.HLLW.Fizzer Removal Tool
04/14/03W32.HLLW.Nebiwo Removal Tool
02/24/03W32.HLLW.Lovgate Removal Tool
01/25/03W32.SQLExp.Worm Removal Tool
01/14/03W32.Sobig.A@mm Removal Tool
01/09/03W32.Lirva Removal Tool
11/25/02W32.HLLW.Winevar/W32.Funlove.4099 Removal Tool
11/15/02W32.Brid.A@mm/W32.Funlove.4099 Removal Tool
10/01/02W32.Bugbear@mm Removal Tool
09/30/02W32.Opaserv.Worm Removal Tool
08/01/02W32.Magistr Removal Tool
07/16/02W32.Frethem Removal Tool
07/03/02W32.Yaha Removal Tool
05/10/02Backdoor.Autoupder Removal Tool
04/18/02W32.Klez Removal Tool
04/15/02W2k.Stream Removal Tool
04/15/02Wscript.Kakworm Removal Tool
04/01/02W32.Gibe@mm Removal Tool
03/28/02W32.Mylife Removal Tool
12/04/01W32.Goner.A@mm Removal Tool
11/28/01W32.Badtrans.B@mm Removal Tool
10/30/01W32.Nimda.E@mm Removal Tool
09/19/01W32.Nimda.A@mm Removal Tool
08/09/01CodeRed Removal Tool
07/31/01VBS.Potok@mm Removal Tool
07/20/01W32.Sircam.Worm@mm Removal Tool
07/16/01VBS.Haptime Removal Tool
03/09/01DOS FunLove.4099 Fix Tool
02/20/01W32 HybrisF Fix Tool
01/11/01W95.CIH Removal Tool
01/06/01W95.HybrisF Fix Tool
12/22/00Fix W32.Funlove.4099 Tool (Cleanflc.exe)
12/22/00PrettyPark.Worm Removal Tool
12/22/00VBS.LoveLetter Fix
12/22/00VBS.Stages.A Fix
12/21/00Happy99.Worm Removal Tool
12/21/00W32.Navidad Fix
12/20/00Kak.Worm.B Fix
12/20/00W32.HLLW.QAZ.A Fix
12/20/00W32.Kriz Removal Tool
12/19/00BuddyList Removal Tool
12/15/00W95.MTX Fix Tool