Page 1 of 2 12 LastLast
Results 1 to 16 of 31

Thread: System Admin: Need help with Logon Scripts, Group Policy Etc...

  1. #1
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts

    System Admin: Need help with Logon Scripts, Group Policy Etc...

    I am a sysadm and am trying to setup a batch file (login script) that will change the background for Group Policy.

    At the moment, I have the script copy the wallpaper from the server to the local machine. That is as far as i am.

    Copy /Y "\\Server\Desktop Background.gif" "c:\windows"
    I am open to suggestions as to other ways round this.

    I have tried regedit /s wallpaper.reg in which the key is supposed to set the wallpaper to my specific image. However this fails to work.
    Last edited by Vini; 20-04-2006 at 02:29 PM.

  2. #2
    Will work for beer... nichomach's Avatar
    Join Date
    Jul 2003
    Location
    Preston, Lancs
    Posts
    6,137
    Thanks
    564
    Thanked
    139 times in 100 posts
    • nichomach's system
      • Motherboard:
      • Gigabyte GA-870A-UD3
      • CPU:
      • AMD Phenom II X6 1055T 95W
      • Memory:
      • 16GB DR3
      • Storage:
      • 1x250GB Maxtor SATAII, 1x 400GB Hitachi SATAII
      • Graphics card(s):
      • Zotac GTX 1060 3GB
      • PSU:
      • Coolermaster 500W
      • Case:
      • Coolermaster Elite 430
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 20" TFT
      • Internet:
      • Virgin Media Cable
    Assuming you have a GPO defined for all your domain users anyway, you should be able to set the wallpaper via User Configuration\Administrative Templates\Desktop\Active Desktop\ using the Active Desktop Wallpaper setting. Make sure you use the Enable Active Desktop setting as well, and under User Configuration\Administrative Templates\Control Panel\Display use the Prevent Changing Wallpaper setting.

  3. #3
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    385 times in 314 posts
    last time I did a GPO deployed background I put it in the netlogon share of the DC ( for the Desktops )

    its a little bit trickier for the laptops but you just need to deploy the file as part of the build
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  4. #4
    Will work for beer... nichomach's Avatar
    Join Date
    Jul 2003
    Location
    Preston, Lancs
    Posts
    6,137
    Thanks
    564
    Thanked
    139 times in 100 posts
    • nichomach's system
      • Motherboard:
      • Gigabyte GA-870A-UD3
      • CPU:
      • AMD Phenom II X6 1055T 95W
      • Memory:
      • 16GB DR3
      • Storage:
      • 1x250GB Maxtor SATAII, 1x 400GB Hitachi SATAII
      • Graphics card(s):
      • Zotac GTX 1060 3GB
      • PSU:
      • Coolermaster 500W
      • Case:
      • Coolermaster Elite 430
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 20" TFT
      • Internet:
      • Virgin Media Cable
    That's a good way of handling it, but if it's a small file, you could make copying it part of the logon script as Vini's done above too, which'd handle your laptop users nicely, and could make updates to the wallpaper easier to deploy as well?

  5. #5
    Time for Walkies... Atomic's Avatar
    Join Date
    Apr 2004
    Location
    Norfolk, UK
    Posts
    1,959
    Thanks
    0
    Thanked
    0 times in 0 posts
    Could make it easier on yourself by shortening the Backgrounds name too. Spaces in file names are no fun. Grippledesktop.gif?

  6. #6
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    385 times in 314 posts
    you are right there but dont policies run before login scripts are excecuted ?
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  7. #7
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    it doesnt have to be a policy, we dont want to clamp down on our users, our business runs on freedom and trust, so its more a case of standardising desktops what we're after, hence setting the background as our standard one, it is actually now just called GrippleBG.gif...

    thanks for all the help btw, much appreciated.

    when the wallpaper is copied to the local machine, i just need some way of it setting the background, surely it should be simple, would appear not tho.

  8. #8
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    385 times in 314 posts
    using a group policy to set the wall paper is the best way - if you want , you can let them change it afterwards , but as for giving users freedom , thats your funeral - will you be saying the same thing about your umpteenth spyware removal or rebuild " because the machine is running slow" ?
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  9. #9
    Will work for beer... nichomach's Avatar
    Join Date
    Jul 2003
    Location
    Preston, Lancs
    Posts
    6,137
    Thanks
    564
    Thanked
    139 times in 100 posts
    • nichomach's system
      • Motherboard:
      • Gigabyte GA-870A-UD3
      • CPU:
      • AMD Phenom II X6 1055T 95W
      • Memory:
      • 16GB DR3
      • Storage:
      • 1x250GB Maxtor SATAII, 1x 400GB Hitachi SATAII
      • Graphics card(s):
      • Zotac GTX 1060 3GB
      • PSU:
      • Coolermaster 500W
      • Case:
      • Coolermaster Elite 430
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 20" TFT
      • Internet:
      • Virgin Media Cable
    That's why you use a GPO. A GPO isn't an oppressive lack of trust thing, it's just the easiest way to get settings round a domain in short order.

    Moby - yes, they do, but that'd only be an issue for the first login, after that the file'd be there.

  10. #10
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    so i got a GPO that does what i want, this gpo is going to be machine specific and not on the domain, so is there any way i can export the settings and import them on another machine?

  11. #11
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    385 times in 314 posts
    group all the machines you want to apply this to into an OU within your AD

    apply the policy to that OU
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  12. #12
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    done and done, wicked

  13. #13
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    385 times in 314 posts
    such is the beauty of Active Directory
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  14. #14
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    so from what i gather, there is no way to block total access to IE or Media Player, so if i run a batch file

    Code:
    @echo off
    C:
    cd "\Program Files\Internet Explorer"
    if not exist IEXPLORE.EXE goto End
    if exist IEXPLORE.EX_ del IEXPLORE.EX_
    if not exist IEXPLORE.DIR md IEXPLORE.DIR
    if not exist IEXPLORE.DIR goto End
    attrib -r -h -s IEXPLORE.EXE
    ren IEXPLORE.EXE IEXPLORE.EX_
    if exist IEXPLORE.EXE goto End
    ren IEXPLORE.DIR IEXPLORE.EXE
    echo IE disabled.
    echo If prompted, click "Cancel" then "Yes" on File Protection restore.
    echo Run enable-ie.bat to allow IE to run again.
    :End
    as a script in the policy would that work (i.e. does the "script" bit allow batch fileS?)

  15. #15
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    setting it as a logon script didnt seem to work, how could i incorporate this into our GPO?

    the batch on its own works fine.

  16. #16
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    ideas?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Instance Walkthrough Guide
    By ERU in forum PC
    Replies: 1
    Last Post: 28-04-2005, 10:35 PM
  2. where are the logon scripts!
    By Crazy Fool in forum Help! Quick Relief From Tech Headaches
    Replies: 1
    Last Post: 17-01-2005, 07:13 PM
  3. Abit NF7-S revision 2 information
    By Lee H in forum SCAN.care@HEXUS
    Replies: 22
    Last Post: 30-10-2004, 07:13 PM
  4. Keeping your system healthy and secure
    By Paul Adams in forum Software
    Replies: 6
    Last Post: 12-10-2004, 09:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •