filmov
tv
PowerShell in Intune - Run Scripts (Create a Scheduled Task) (2/3)
Показать описание
In this video, we will run a PowerShell script that creates a Scheduled Task that will run System File Checker every Wednesday at 5am.
We will run the PowerShell script with Intune's built-in Script runner.
Script:
### Create Scheduled Task to run SFC /Scannow each Wednesday 5am
### Author: John Bryntze
### Date: 20th October 2022
## Set Trigger, Task, Settings
$JBNTrigger = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Wednesday -At 5:00am
$JBNAction = New-ScheduledTaskAction -Execute "SFC" -Argument "/Scannow"
$JBNSetting = New-ScheduledTaskSettingsSet -Compatibility Win8 -AllowStartIfOnBatteries -StartWhenAvailable -DontStopIfGoingOnBatteries
$JBNTask = New-ScheduledTask -Trigger $JBNTrigger -Action $JBNAction -Settings $JBNSetting -Description "System File Checker weekly Wednesday run at 5am"
## Create/Register Scheduled Task
Register-ScheduledTask -TaskPath \JBN\ -TaskName "System File Checker weekly Wednesday run at 5am" -InputObject $JBNTask -User "NT AUTHORITY\SYSTEM"
We will run the PowerShell script with Intune's built-in Script runner.
Script:
### Create Scheduled Task to run SFC /Scannow each Wednesday 5am
### Author: John Bryntze
### Date: 20th October 2022
## Set Trigger, Task, Settings
$JBNTrigger = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Wednesday -At 5:00am
$JBNAction = New-ScheduledTaskAction -Execute "SFC" -Argument "/Scannow"
$JBNSetting = New-ScheduledTaskSettingsSet -Compatibility Win8 -AllowStartIfOnBatteries -StartWhenAvailable -DontStopIfGoingOnBatteries
$JBNTask = New-ScheduledTask -Trigger $JBNTrigger -Action $JBNAction -Settings $JBNSetting -Description "System File Checker weekly Wednesday run at 5am"
## Create/Register Scheduled Task
Register-ScheduledTask -TaskPath \JBN\ -TaskName "System File Checker weekly Wednesday run at 5am" -InputObject $JBNTask -User "NT AUTHORITY\SYSTEM"
30. How to Deploy PowerShell Script using Microsoft Intune
PowerShell in Intune - Run Scripts (Create a Scheduled Task) (2/3)
Intune Tutorial 20 -How to Deploy PowerShell Script in Intune
PowerShell App Deployment Toolkit with Microsoft Intune
S01E18 - Intune PowerShell Scripts - Re-Running Failed Scripts - (I.T)
Deploy PowerShell script using Intune: Streamline Script Deployment
Perform Operation in Intune Using Graph API, How to Connect From Powershell, Part -1
S01E12 - How to Deploy PowerShell Scripts using Microsoft Intune - (I.T)
Intune Powershell Runbook
Using PowerShell with Microsoft Endpoint Manager
PowerShell in Intune - How to Copy file(s) (1/3)
How to Deploy PowerShell Script using Intune into Windows 365 PCs
MS63 - Push the PowerShell Scripts to Windows Devices via Intune MDM
S01E17 - Intune PowerShell Scripts - Debugging and Troubleshooting - (I.T)
Run PowerShell GUI script from Autopilot OOBE screen
Intune Win32 App Dependency Report with PowerShell Script
Intune Proactive Remediation Script Package and PowerShell Script Decoded
PowerShell in Intune - Proactive Remediation Scripts (3/3)
Here's how Windows Autopilot works with Microsoft Intune
Windows Autopilot - Part 1 Export & Import Hardware Hash into Microsoft Intune
Device configuration PowerShell scripts - Microsoft Intune Training Series video No#73
BiteSize: Map a drive using PowerShell with Intune
Backup & Restore your Intune Configuration using PowerShell- Part 2
Deploying Powershell scripts through Intune -1
Комментарии