Announcement

Collapse
No announcement yet.

Desktop Icons

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Desktop Icons

    We are in the process of moving from Novell over to server 2003. We currently have all XP client machines. Have over 250 offices connected through a 512 and up wan link. We have one domain and a member server at each office. 50% off our users are laptops and move from office to office. I have two questions.. We have written a program trhat would do all the dirty work for use but how do we add icons on the desktop for standard apps?? Is it throught the login sript. My second question is that is their a way to restict users from maping any resources when they are not physically at that location.

  • #2
    i haven't the place for testing it,

    but you can have a look at this VBScript:

    Code:
    Dim oFileSystem,oshell,NetworkPathShortcut,Desktop
    
    
    Set oFileSystem = CreateObject ("Scripting.FileSystemobject")
    Set oshell = CreateObject ("wscript.shell")
    
    Desktop = oshell.SpecialFolders ("Desktop")
    
    NetworkPathShortcut = "\\server\share\file.lnk"
    
    If oFileSystem.FileExists (desktop &"\file.lnk") Then
    	'file already exists
    	WScript.Quit (0)
    Else
    	oFileSystem.CopyFile NetworkPathShortcut, Desktop
    End If
    'cleaning up....
    set ofilesytem = nothing
    Set oShell = nothing
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment


    • #3
      uhhh i tested scrip but it didnt work.. do you have any other suggestions

      Comment


      • #4
        this script works:

        Code:
        Dim oFileSystem,oshell,NetworkPathShortcut,Desktop 
        
        
        Set oFileSystem = CreateObject ("Scripting.FileSystemobject") 
        Set oshell = CreateObject ("wscript.shell") 
        
        Desktop = oshell.SpecialFolders ("Desktop") 
        
        NetworkPathShortcut = "\\server\share\file.lnk" 
        
        If oFileSystem.FileExists (desktop &"\file.lnk") Then 
           'file already exists 
           WScript.Quit (0) 
        Else 
           oFileSystem.CopyFile NetworkPathShortcut,Desktop & "\"
           
        End If 
        'cleaning up.... 
        set ofilesytem = nothing 
        Set oShell = nothing
        just adjust the NetworkPathShortcut to you're server, share and filename
        and adjust in this line (desktop &"\file.lnk") only the file.lnk to you're filename and you're finished.
        Marcel
        Technical Consultant
        Netherlands
        http://www.phetios.com
        http://blog.nessus.nl

        MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
        "No matter how secure, there is always the human factor."

        "Enjoy life today, tomorrow may never come."
        "If you're going through hell, keep going. ~Winston Churchill"

        Comment


        • #5
          Thanks Marcel.. looks like it worked.. i forgot to add the .lnk ext.. .. hey if i would like to add more than one do i just add the additional lines.. Sorry, im just lerning VB

          Comment


          • #6
            you can just add addional lines..
            also, there is a possibility the read out an etire directory and copy the files from the directory to another
            Marcel
            Technical Consultant
            Netherlands
            http://www.phetios.com
            http://blog.nessus.nl

            MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
            "No matter how secure, there is always the human factor."

            "Enjoy life today, tomorrow may never come."
            "If you're going through hell, keep going. ~Winston Churchill"

            Comment


            • #7
              how would the script look to copy the entire directory context to the desktop

              Comment


              • #8
                well, do you want to check for file existance before coping the file?
                Marcel
                Technical Consultant
                Netherlands
                http://www.phetios.com
                http://blog.nessus.nl

                MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
                "No matter how secure, there is always the human factor."

                "Enjoy life today, tomorrow may never come."
                "If you're going through hell, keep going. ~Winston Churchill"

                Comment


                • #9
                  Yes, I would like to check for files.. I would like to keep a standard desktop for my remote branch offices..

                  Comment


                  • #10
                    maybe is mandatory profiles a better idea?
                    Marcel
                    Technical Consultant
                    Netherlands
                    http://www.phetios.com
                    http://blog.nessus.nl

                    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
                    "No matter how secure, there is always the human factor."

                    "Enjoy life today, tomorrow may never come."
                    "If you're going through hell, keep going. ~Winston Churchill"

                    Comment

                    Working...
                    X