Connect to Exchange Online PowerShell
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.3.0 Import-Module ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName [email protected]
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.3.0 Import-Module ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName [email protected]
Open an elevated command prompt and type: netsh In order to view all network connections: interface ip show config In order to change the primary dns server: interface ip set dns name="Local Area Connection" static 8.8.8.8 For the secondary DNS … Continue reading
Find Public IP address (Invoke-RestMethod ipinfo.io/json).ip Traceroute tnc google.com -tr Check if a port is open tnc google.com -p 443 Check if a specific update is installed Get-Hotfix|Where-Object {$_.HotfixID -match "KB5018410"} Search for a specific file type in a directory … Continue reading
In order to create a pfx file we will need the certificate (crt file) and the private key file. We need to download and install OpenSSL for windows https://slproweb.com/products/Win32OpenSSL.html. The first step is to give the same filename to both … Continue reading
We will use the robocopy command in order to copy the folder and retain all the security permissions robocopy "D:\Data\FolderName" "G:\Data4\FolderName" /MIR /SEC /ZB /V /r:1 /w:2 /nfl /ndl In order to move the share permissions we have to open … Continue reading
$UserCredential = Get-Credential Enter the credentials $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<ServerFQDN>/PowerShell/ -Authentication Kerberos -Credential $UserCredential Import-PSSession $Session -DisableNameChecking In order to close the session: Remove-PSSession $Session
Get-ADUser -Filter {attribute -like 'Yes'} -Properties * | select attribute1, attribute2, attribute3, attribute4, attribute5, attribute5, attribute6 | Export-Csv -path 'd:\edu4.csv' -Encoding unicode The attributes after the select are exported in the csv file. If you want to find users with … Continue reading
In order to create a remote powershell session to 365, open Windows Powershell and run below commands: $UserCredential = Get-Credential and enter your 365 credentials when prompted. Then type: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic … Continue reading
usoclient StartScan
WinDirStat is a disk usage statistics viewer and cleanup tool for Microsoft Windows. Download Link can be found here .