$class = cimclass MSFT_TaskEventTrigger root/Microsoft/Windows/TaskScheduler $trigger = New-ScheduledTaskTrigger -AtLogOn Remove everything below that point and add the following.$trigger = New-ScheduledTaskTrigger -AtLogOn Edit the powershell script, near the bottom you will see the following line.Follow the onscreen options to add/remove mapped drives as needed.We will then be adding a few lines of code to also have it map on any network changes. We are going to create a script that we deploy via intune, which in turn will create a scheduled task to map the network drives at login. Creating the scriptīefore we get started let me explain how this process works. This guide is part of a video series companion guide on setting up mapped drives on Intune devices – you can watch the video here S02E18 – How to Map Network Drives on Microsoft Intune Devices – (I.T) – YouTube! This is rather simple but I will be adding some useful bits of code for people who do not have an always on VPN solution for all those Work From Home scenarios.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |