Setting Default Printer using a VBS script through a GPO

Home Forums Scripting General Scripting Setting Default Printer using a VBS script through a GPO

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    mbafmax
    Member
    #128459

    Hi All, I am trying to set a Default printer on a bunch of PCs in a lab using a VBS script through a GPO. I have tried several configs “putting the script in the Computer side, the User side of Logon and/or Start-Up scripts in the GPO. I can run the script from “run” command on the computers and it works fine, setting a certin printer as default, but nothing happens when it run through the GPO.. any help would be great..thanks…….m
    here is the script:
    Dim Net
    Dim WSHShell

    Set WSHShell = WScript.CreateObject(“WScript.Shell”)
    Set Net = CreateObject(“WScript.Network”)

    Net.SetDefaultPrinter “\sscsbackupDell LMC”

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.