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

26 total results found

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

INTERFACE
CLI
OS
Windows10/11
APP
WindowsPowershell

Change Drive Letter in Powershell

Workstations Microsoft Windows

Sourceshttps://devblogs.microsoft.com/powershell-community/changing-drive-letters-and-labels-via-powershell/https://chindara.medium.com/windows-10-powershell-to-assign-drive-letters-2dcb840191bb List all the disks. Get-Disk List all partitions for a specifi...

APP
WindowsPowershell
INTERFACE
CLI

Lock Windows Workstation

Workstations Microsoft Windows

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

APP
CMD
OS
Windows10/11
INTERFACE
CLI

Find and Replace with Regex

Code and Data Manipulation

Regex to find date and time. Option 1: ([\d]{1,2})/([\d]{1,2})/([\d]{4}) in format mm/dd/yyyy Option 2: [0-9]{4}-[0-9]{2}-[0-9]{2}T in format yyyy-mm-dd Option 3: ([0-1]?[0-9]|2[0-3]):[0-5][0-9] in format HH:mm In Sublime Text Find and Replace (CMD+OPT+F) ...

APP
SUBLIME
INTERFACE
GUI

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

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