Windows 10: Creating a startup script to set application defaults without Admin access

Discus and support Creating a startup script to set application defaults without Admin access in Windows 10 Customization to solve the problem; Hi, My company computer uses DISM to change my default apps against my will whenever it feels like it and I was wondering if I could write a script... Discussion in 'Windows 10 Customization' started by Adam.of.Canada, Jul 6, 2020.

  1. Creating a startup script to set application defaults without Admin access


    Hi,


    My company computer uses DISM to change my default apps against my will whenever it feels like it and I was wondering if I could write a script that would just switch them back to what I prefer when I log in. I don't have admin rights so please don't provide solutions that require that.

    :)
     
    Adam.of.Canada, Jul 6, 2020
    #1

  2. 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, Jul 6, 2020
    #2
  3. Setting Default Printer via Startup Script

    I'm ready to admit defeat on this one. I recently took over a school network and have been working to migrate them away from a 3rd party application known as Desktop Authority. It's basically an alternative to Group Policy from what I have gathered.

    Part of this process involves re-configuring the way that our Printers are deployed, and which one is the default. Here is where it gets tricky, I can't select a printer for a USER, I need the printer to be set for the COMPUTER (Kids and teachers move around). Simple enough, configure Deployed Printers in the GPO and go on our merry way. The problem comes when a teacher, or a classroom needs to have their default printer changed. These machines are "Frozen" with Faronics DeepFreeze and so any changes made would revert upon a restart. Sure, we could go to each machine and re-configure the default printer... but with 3200 computers that will take some time.

    Ideally I would like to use a STARTUP script to map the default printer. However, I've tried just about everything on the web with no success. VB Scripts, BAT Files, etc. WMIC Printer Where name... Rundll32... and nothing. The default printer stays the same. I've verified the scripts are running, and when run manually they work fine. I feel like during the boot process it's to soon to select the printer. Permissions and everything are fine as well.

    Either way, I'm hoping that someone has some experience with something similar or at least a type of workaround.

    Thanks for any help!
     
    Wastedslayer, Jul 6, 2020
    #3
  4. RCoon Win User

    Creating a startup script to set application defaults without Admin access

    Setting Default Printer via Startup Script

    I do it with VB logon scripts


    "Dim ps0 [<------ our printer server the printers are added/managed on]
    Dim printer

    ps0 = "\\ps0\"
    printer = "S14 - Oki ES4140" [<------- the name of the printer as it is shown on the server]

    Set wshNetwork = CreateObject("WScript.Network")
    on Error Resume Next

    'Deletes all network printers
    Set clPrinters = wshNetwork.EnumPrinterConnections
    On Error Resume Next
    For i = 0 to clPrinters.Count - 1 Step 2
    wshNetwork.RemovePrinterConnection clPrinters.Item(i+1), true
    Next

    'Add Network printer
    wshNetwork.AddWindowsPrinterConnection ps0 & printer

    'Set Default Printer
    wshNetwork.SetDefaultPrinter ps0 & printer" [<------ this bit sets it as default (note: this must be applied as the first policy before any other printers policies, otherwise it deletes them)]


    Creating a startup script to set application defaults without Admin access Printerscrupt.png
     
    RCoon, Jul 6, 2020
    #4
Thema:

Creating a startup script to set application defaults without Admin access

Loading...
  1. Creating a startup script to set application defaults without Admin access - Similar Threads - Creating startup script

  2. Stuck in selective startup with no admin access

    in Windows 10 Gaming
    Stuck in selective startup with no admin access: So basically I was trying to fix a system task using high cpu and tried a selective startup. Now I can’t login to admin because the pin and fingerprint aren’t working.I only have access to a account.There is also no wifi access.I have no idea what to do and I am stuck outside...
  3. Stuck in selective startup with no admin access

    in Windows 10 Software and Apps
    Stuck in selective startup with no admin access: So basically I was trying to fix a system task using high cpu and tried a selective startup. Now I can’t login to admin because the pin and fingerprint aren’t working.I only have access to a account.There is also no wifi access.I have no idea what to do and I am stuck outside...
  4. Stuck in selective startup with no admin access

    in Windows Hello & Lockscreen
    Stuck in selective startup with no admin access: So basically I was trying to fix a system task using high cpu and tried a selective startup. Now I can’t login to admin because the pin and fingerprint aren’t working.I only have access to a account.There is also no wifi address.I have no idea what to do and I am stuck...
  5. Create Admin account without Admin privileges

    in Windows 10 Ask Insider
    Create Admin account without Admin privileges: I purchased a laptop from my high school because i need it for homework at home as a personal computer but i cant do much with the laptop because i dont have access to the administrator account, i checked and there is no administrator account on it, it hasnt been disabled...
  6. Settings / applications on startup / suspicious application

    in Windows 10 BSOD Crashes and Debugging
    Settings / applications on startup / suspicious application: Hi I wonder why my computer run slow and why my Disc is often 100%. I found out app with suspitious name in application on startup - a turned it off but i wonder what is it. Thank you for your reply. [ATTACH]...
  7. Open application without admin?

    in Windows 10 Network and Sharing
    Open application without admin?: Im trying to open an application I downloaded in my downloads folder, I need to enter an administrator username and password, that I don't have, to run the app. Can someone help me. This needs to be done without logging onto the administrator user. (P.S I'm not trying to hack...
  8. Default applications: Create an association

    in Windows 10 Gaming
    Default applications: Create an association: Default applications: Create an association Default applications: Create an association.Windows 10 Hello, im Mar, I want help with something that has happened with my computer, here's what happened :Okay, since like 4 days, my computer lagged so I decided to turn it off, I...
  9. Default applications: Create an association

    in Windows 10 Gaming
    Default applications: Create an association: Default applications: Create an association.Windows 10 Hello, im Mar, I want help with something that has happened with my computer, here's what happened :Okay, since like 4 days, my computer lagged so I decided to turn it off, I turned it on, and I went to play Roblox. When...
  10. Default applications: Create an association

    in Windows 10 Network and Sharing
    Default applications: Create an association: Default applications: Create an association Default applications: Create an association.Windows 10 Hello, im Mar, I want help with something that has happened with my computer, here's what happened :Okay, since like 4 days, my computer lagged so I decided to turn it off, I...