+ 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
    417
    Thank Post
    43
    Thanked 10 Times in 9 Posts
    Rep Power
    12

    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
    896
    Blog Entries
    1
    Thank Post
    3
    Thanked 47 Times in 44 Posts
    Rep Power
    32

    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,271
    Blog Entries
    2
    Thank Post
    595
    Thanked 877 Times in 615 Posts
    Rep Power
    277

    Re: RM CC3 Startup Script

    Have you tried doing this using a VBScript instead?

  4. #4

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    1,836
    Thank Post
    58
    Thanked 244 Times in 191 Posts
    Rep Power
    77

    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
    417
    Thank Post
    43
    Thanked 10 Times in 9 Posts
    Rep Power
    12

    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, 11:20 AM
  4. Computer Startup Scripts
    By Spot in forum Windows
    Replies: 18
    Last Post: 17th November 2005, 12:06 AM
  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
  •