Advanced Search
Search Results
26 total results found
Download Files from a Web URL
Download a file from the internet to your harddrive using Powershell. Invoke-WebRequest -Uri https://<path-to-internet-file> -OutFile <path-to-local-file>
Install Microsoft Office
Create a deployment package. If the files are publicly available, you can download from a web URL. Download the setup files according to the deployment config. ./setup-file.exe /download config-file.xml Install the applications according to the deploym...
Azure Dynamic Groups
Azure Dynamic Group Membership Rules Rule Syntax to add group members based on the criteria Account is active Primary Email Address is at domain example.com (user.accountEnabled -eq true) -and (user.mail -contains "@example.com") Licen...
Add user to Azure AD Application
Azure applications are used for Single Sign On, among other things. To use SSO, the user has to have access to the application. First, login to the Microsoft Admin Portal then go to Azure Active Directory (or skip this step and go directly to Azure Active D...
Reset a Windows Device
Prepare Device for Reprovisioning Navigate to the Intune Admin Portal https://intune.microsoft.com/ > Devices > All Devices and select the device. Select Autopilot Reset and then confirm. This will return the device an IT approved state and make it ready ...
Search Content in Microsoft Purview
Use Case: If an email was sent in error or a malicious email has been sent to a large number of recipients, one can find and remove that data using Microsoft 365 Security and Compliance Powershell. First, Connect to Microsoft 365 Exchange Online ...
Show Mailbox Rules for a Mailbox
Prerequisites: Connect to Exchange Powershell Get the rules for a mailbox Get-InboxRule -Mailbox "name@example.com"
Connect to Exchange Powershell
Prerequisites: Install Exchange Powershell To connect to Exchange Powershell with Multi-Factor Authentication, in a Microsoft Powershell windo, run the following command. Connect-ExchangeOnline This will open a new login window. After login, the window wil...
Grant Purview Export Permission
When exporting the results of a Microsoft Purview Content Search, the user must have the permission. This permission cannot be granted by the same user to which it is being granted. First, Connect to the Security and Compliance Powershell Add eDiscovery Ma...
Connect to Security and Compliance Powershell
To connect to the Microsoft 365 Security and Compliance Powershell: Open a Powershell Window Type the following command, where <UPN> is the admin username Connect-IPPSSession -UserPrincipalName <UPN>
Connect to Sharepoint
Connect to the Sharepoint Powershell Connect-SPOService -Url https://example-admin.sharepoint.com -credential admin@example.com
Get Last Bootup Time
Get the last bootup time in Windows Powershell. Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime
Exchange Mailbox Statistics
Get size, date or FolderId for folders in an Exchange Mailbox. Get-MailboxFolderStatistics -Identity <mailbox-identity> To see folders outside of the IPM Subtree, add the -FolderScope flag. -FolderScope NonIPMRoot Export Results to a CSV Get-MailboxF...
Redirect Email
In the case email should be redirected from the original recipient to another mailbox, you can use redirect rules. This is useful if email should be delivered to multiple recipients or, for offboarding, a departed employee's email should be redirected to their...
Find Data in Cell
This document is in development SEARCH finds "text value" in cell A1. IF result of SEARCH is that the data is found, result returns TRUE. Else, FALSE. =IF(SEARCH("text value",A1,1),TRUE,FALSE)
Count Unique Values in Spreadsheet
This document is in development UNIQUE finds the unique values in a spreadsheet row or column. COUNTA counts the results of UNIQUE, result returns a numeric value. =COUNTA(UNIQUE(A1:B100))
Reset IE to Defaults
Symptoms: OneDrive stuck at Signing in. OneDrive sign-in gives Proxy Authentication Error [2606] Outlook continually asks for password. Solution: RunDll32.exe InetCpl.cpl,ResetIEtoDefaults Source
Create .pkg to deploy files and apps
Create a directory named Contents and another named Scripts. Put the app contents in the Contents directory. Put the script in the Scripts directory and name it postinstall, with no extension and give it executable rights. Run this command to create the ...
Manually Sync macOS Device with Intune
In Company Portal, click the ellipses and Check Status or press command+option+S. To trigger a sync form the CLI, force close the Intune Agent process. Use ps to list running processes; the -A flag specifies all running processes. Pipe the output to the g...
Check For Running Process
Check for a running process. If the process is not running, start it. #CHECK RUNNING PROCESS $Check = (Get-Service -Name <ServiceName> -ErrorAction SilentlyContinue -ErrorVariable ProcessError) Invoke-Command -ScriptBlock{ if($Check -eq $null) { W...