Enroll PC in in-tune post joining to Azure AD
powershell -command "Start-Process -FilePath 'C:\Windows\system32\deviceenroller.exe' -ArgumentList '/c /AutoEnrollMDM'"
powershell -command "Start-Process -FilePath 'C:\Windows\system32\deviceenroller.exe' -ArgumentList '/c /AutoEnrollMDM'"
Rename-Computer -NewName "NEW-PC-NAME"
Powercfg /Change standby-timeout-ac 0
net user administrator /active:yes
net user administrator new-password
net user user /delete
netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request” protocol=icmpv4:8,any dir=in action=allow
Install-Module AzureAD
Install-Module MSOnline
Connect-MsolService
Get-MsolUser -all | select DisplayName,UserPrincipalName,@{N="MFA Status"; E={ if($_.StrongAuthenticationRequirements.Count -ne 0){ $_.StrongAuthenticationRequirements[0].State } else { 'Disabled'} } } | Export-CSV -Path C:\clientname.csv
Get-MsolUser | Select-Object * | Select DisplayName,UserPrincipalName,Licenses,WhenCreated | Export-CSV -Path C:\clientname.csv
Set-ExecutionPolicy RemoteSigned
Install-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName [email protected]
Get-Mailbox | Get-MailboxStatistics | select DisplayName,TotalItemSize | Export-CSV -Path C:\clientname.csv