Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

80 total results found

Lock Windows Workstation

Workstations Microsoft Windows

In command prompt, run: Rundll32.exe user32.dll,LockWorkStation

APP
CMD
OS
Windows10/11
INTERFACE
CLI

Create a Scheduled Task

Workstations Microsoft Windows

To create a scheduled task in Windows Powershell that executes a Powershell Script. CREATE SCHEDULED TASK $action = New-ScheduledTaskAction -Execute "cd C:\path\to\script\location; ./script.ps1" $trigger = New-ScheduledTaskTrigger -At "8:15 pm" -Daily $pri...

OS
Windows10/11
INTERFACE
CLI
APP
WindowsPowershell

Check For Running Process

Workstations Microsoft Windows

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...

APP
WindowsPowershell
OS
Windows10/11
INTERFACE
CLI

Change Intune macOS Personal Ownership to Company

Microsoft 365 Powershell

  Get-MgDeviceManagementManagedDevice -All | Where-Object {$_.ManagedDeviceOwnerType -eq "unknown" -and $_.OperatingSystem -like "macOS"} | % { Update-MgDeviceManagementManagedDevice -ManagedDeviceId $_.Id -ManagedDeviceOwnerType company }  

CMDLET
MgGraph
SERVICE
Microsoft365
APP
365Powershell
INTERFACE
CLI

macOS Login Window - show username and password box

Workstations Mac OS

Press the following keys simultaneously. CONTROL+OPTION+COMMAND+SHIFT+DOWN ARROW+ENTER

OS
macOS
INTERFACE
GUI

Prevent Spoofing of Executives

Microsoft 365 Exchange

To add a disclaimer for incoming emails that bear the name of an executive, go to the Exchange Transport Rules and create a rule. https://admin.exchange.microsoft.com/#/transportrules Rule Conditions: The Message Header From Contains executive names AND T...

INTERFACE
GUI
APP
Exchange
SERVICE
Microsoft365

Get GUID of installed program and remove it

Workstations Microsoft Windows

Powershell: Find GUID of program to uninstall. get-wmiobject Win32_Product | Sort-Object -Property Name | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize Uninstall a program using MsiExec - quietly msiexec.exe /x "{588A9A11-1E20-4B91-8817-2D...

OS
Windows10/11
INTERFACE
CLI
APP
WindowsPowershell

Get Powershell version

Workstations Microsoft Windows

Powershell: Find powershell version $PSVersionTable.PSVersion

OS
Windows10/11
INTERFACE
CLI
APP
WindowsPowershell

Restrict Application Access

Microsoft 365 Powershell

Use Case: An application uses OAuth 2.0 to connect and send mail as a user. This requires that you Grant Admin Consent, but that allows the application to send as any user. To prevent abuse, you want to restrict which users the app can send-as. First,...

SERVICE
Microsoft365
CMDLET
ExchangePowershell
APP
365Powershell