Windows 10: Logon batch or Startup script in 365

Discus and support Logon batch or Startup script in 365 in Windows 10 Gaming to solve the problem; Hello, Microsoft Community,I am experiencing an issue with deploying a batch file to the Startup folder on multiple devices using Intune, and I'm... Discussion in 'Windows 10 Gaming' started by Steve Gwynne, Sep 13, 2024.

  1. Logon batch or Startup script in 365


    Hello, Microsoft Community,I am experiencing an issue with deploying a batch file to the Startup folder on multiple devices using Intune, and I'm seeking some guidance on how to resolve it.Background: I manage an environment with 365 devices, all integrated into Microsoft 365 with Intune. My goal is to deploy a batch file that performs routine cleanups to the Startup folder of each device so that it runs upon user login.What I Have Tried:Manual Copy: When I manually copy the batch file to the Startup folder C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\, it

    :)
     
    Steve Gwynne, Sep 13, 2024
    #1
  2. sbello Win User

    Logon script runs at startup and not at user logon

    I have 3 PCs, and my logon script in my Group Policy (C:\WINDOWS\System32\GroupPolicy\User\Scripts\Logon) runs as expected at user logon in all 3 PCs. However, in my fourth PC, the logon script runs at startup prior to a user logging onto this PC. I cannot seem to figure out the reason; can anyone please help me?
     
    sbello, Sep 13, 2024
    #2
  3. roy111 Win User
    Logon script runs at startup and not at user logon

    Try to disable the setting below (if active)


    Logon batch or Startup script in 365 234424d1558368635t-logon-script-runs-startup-not-user-logon-accesso.png
     
    roy111, Sep 13, 2024
    #3
  4. Logon batch or Startup script in 365

    Setting Default Printer via Startup Script

    This looks like a good solution, and similar to some of the VB scripts I tried.. but it is a logon script. I would need something that works as a startup script. We are not mapping printers to users as they move around too much, but rather mapping to each computer.

    The Link that W1ZZARD posted is good information. Sadly however, I have tried utilizing most of the commands that are available. The /c command is indeed interesting, but we are trying to map them when a computer starts up (prior to logon screen) versus just mapping them remotely. The purpose would be if we had a lab that needed the default printer changed, sure we could just send the remote command to each machine, or even remote into them ourselves and manually do it, but I was looking for a smoother alternative.

    It seems like its just something that will have to be done manually and with user education.

    Thanks for all the suggestions though.
     
    Wastedslayer, Sep 13, 2024
    #4
Thema:

Logon batch or Startup script in 365

Loading...
  1. Logon batch or Startup script in 365 - Similar Threads - Logon batch Startup

  2. Logon batch or Startup script in 365

    in Windows 10 Software and Apps
    Logon batch or Startup script in 365: Hello, Microsoft Community,I am experiencing an issue with deploying a batch file to the Startup folder on multiple devices using Intune, and I'm seeking some guidance on how to resolve it.Background: I manage an environment with 365 devices, all integrated into Microsoft 365...
  3. Batch scripting

    in Windows 10 Software and Apps
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:Code and result:Code:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press...
  4. Batch scripting

    in Windows 10 Gaming
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:Code and result:Code:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press...
  5. Batch scripting

    in Windows 10 Network and Sharing
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press any key. echo Before...
  6. Windows 10 Startup Batch Script stopped working

    in Windows 10 Support
    Windows 10 Startup Batch Script stopped working: Hi all, Quite a while ago I have created a startup script that does some basic file copying. It's nothing fancy: it runs after I log on to Windows and copies a few files. The batch file is in my "Documents" folder, I placed a shortcut to it in the "Startup" folder using...
  7. PageFile.sys batch script

    in Windows 10 Virtualization
    PageFile.sys batch script: Hello, I need help writing a batch script that would configure Windows Virtual Memory based on the amount of RAM installed If you have 4 GB of RAM, set virtual memory to 8 GB (Custom size: set both initial and maximum size to 8192) If you have 8 GB of RAM, set virtual memory...
  8. Batch Scripts / Programs.

    in Windows 10 Performance & Maintenance
    Batch Scripts / Programs.: The members and quests who use this forum know how professional, informative and helpful it is! In order to help members solve their problems/issues we often ask them to run certain programs and perform certain tasks and then upload [ post ] the results to the forum for us...
  9. Logon script runs at startup and not at user logon

    in Windows 10 Support
    Logon script runs at startup and not at user logon: I have 3 PCs, and my logon script in my Group Policy (C:\WINDOWS\System32\GroupPolicy\User\Scripts\Logon) runs as expected at user logon in all 3 PCs. However, in my fourth PC, the logon script runs at startup prior to a user logging onto this PC. I cannot seem to figure out...
  10. Batch script question

    in Windows 10 Support
    Batch script question: Hello, I want make a batch script to delete a spefic folder on the C disk, but how can I get only that spefic folder? I got this: Code: FOR /D %%p IN ("C:\USERS\%USERNAME%\Downloads\*.*") DO rmdir "%%p" /s /q cd C:\USERS\%USERNAME%\Downloads\ del *.* /q /s timeout /t 5...