+ Post New Thread
Results 1 to 5 of 5
Windows Thread, RM CC3 Startup Script in Technical; Ok i'm having a bit of a problem deleting a file (LMHOSTS) from stations via startup script. This is what ...
  1. #1
    randle's Avatar
    Join Date
    Dec 2006
    Location
    Chelmsford, Essex
    Posts
    595
    Thank Post
    66
    Thanked 16 Times in 15 Posts
    Rep Power
    19

    RM CC3 Startup Script

    Ok i'm having a bit of a problem deleting a file (LMHOSTS) from stations via startup script. This is what i've done so far:

    1. Created a knew GPO with a startup script pointing to a batch file in \\serveripaddress\netlogon\ called deleteLMHOSTS.bat (command line of: del c:\windows\system32\drivers\etc\LMHOSTS /q)
    2. Allocated relevant groups to GPO and ticked "Apply GPO"
    3. Rebooted station

    When booting the station now says "Running Startup Scripts" but the file is still present on the station. If i log in and run from the run command \\serveripaddress\netlogon\deleteLMHOSTS.bat the file deletes fine so why doesn't it do this from startup script?

  2. #2
    nicholab's Avatar
    Join Date
    Nov 2006
    Location
    Birmingham
    Posts
    1,506
    Thank Post
    4
    Thanked 98 Times in 94 Posts
    Blog Entries
    1
    Rep Power
    52

    Re: RM CC3 Startup Script

    The RM system seems to stop certain scripts from working. I can get a log off script to work but not a log on. Create a test script that just copied a text file or something then you know it is working. It could be that the script does not have security privileges to carry out the operation. Scripting is advanced (for an RM system anyway) you are pushing at the edge of the RM system by the sounds of it.

  3. #3

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    640
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324

    Re: RM CC3 Startup Script

    Have you tried doing this using a VBScript instead?

  4. #4

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115

    Re: RM CC3 Startup Script

    It will run the command as nt authority\system so security shouldn't be an issue. If I'd done this I'd have:

    * Added the script to the existing 'Script Actions' GPO and left the permissions alone (has Authenticated Users read, apply).

    * Made the path \\schooldomain.internal\netlogon\somescript.bat

    * Used commands like this:

    echo Running my script > c:\logss.txt
    del /f /q "c:\windows\system32\drivers\etc\lmhosts" >>c:\logss.txt 2>&1


    This is no more advanced than anywhere else - CC3 has management apps, a lot of preconfiguration and uhh.. one or two bugs.. but it's still Windows!

  5. #5
    randle's Avatar
    Join Date
    Dec 2006
    Location
    Chelmsford, Essex
    Posts
    595
    Thank Post
    66
    Thanked 16 Times in 15 Posts
    Rep Power
    19

    Re: RM CC3 Startup Script

    Damn it it didn't think of using the FQDN. The stations could map via this i even tested it but didn't think to try it. I just tried it from it's netbios name and IP. I'm sure it would have worked aswell.

    Never mind, in the end i just recreated the old scope and rebooted all the stations. They then saw the startup script and ran it successfully. Once this was done i re-created the new scope and rebooted all clients again. All stations are now over to the new scope and working fine.

    @nicholab: I've never had any issues getting scripts running on CC3 other than this obviously but this was down to IP Scopes not the RM system

SHARE:
+ Post New Thread

Similar Threads

  1. Dreamweaver 8 startup Error
    By BKGarry in forum Educational Software
    Replies: 9
    Last Post: 26th June 2007, 01:33 PM
  2. Startup script time-out gotcha aargh!!
    By NetworkGeezer in forum Windows
    Replies: 7
    Last Post: 1st June 2006, 05:13 PM
  3. IE6 trys to run an ISP setup on startup
    By pmassingham in forum Windows
    Replies: 1
    Last Post: 23rd March 2006, 10:20 AM
  4. Computer Startup Scripts
    By Spot in forum Windows
    Replies: 18
    Last Post: 16th November 2005, 11:06 PM
  5. Loading .reg files in a startup script
    By Ric_ in forum Windows
    Replies: 7
    Last Post: 27th September 2005, 04:23 PM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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