• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Snapin to delete files on client windows 7

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    7
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ccmiens
      last edited by

      Hi all,
      I want to delete files creating during a session of client windows 7. It was possible with XP… Is Snapin correct way to do that? If somebody wrote this script I am a client.
      Regards

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        It was alway possible with xp but was and is not operable on windows vista and higher. With the change and security implementation of UAC with Windows, it has become nearly impossible for the service to interact and/or delete files on the system. This, I suspect, is because services are not allowed to interact with the desktop and as such, they’re not allowed to delete files or directories. Your best bet, I think, would be to create a batch file that removes the files and/or directories you would like removed and push the batch files either as a gpo or logon script.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 1
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          Depending on what you want to delete, there are Group Policy settings built specifically for certain things.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • C
            ccmiens
            last edited by

            Hi all,
            Thanks for answers.
            I want to delete files uploaded on user desktop, user download directory on client during session. There is only one user with restricted rights and one admin for each pc.
            On windows 7 where is group policy settings?
            Thanks a lot for help.

            C 1 Reply Last reply Reply Quote 0
            • C
              ccmiens @ccmiens
              last edited by

              @ccmiens GPMC and GPO only work with AD DS.

              1 Reply Last reply Reply Quote 0
              • I
                ITSolutions Testers
                last edited by

                Windows 7 does have local Group policy settings that you can use without AD. You could also set a log in script that will remove all these files. you could use a simple script that will delete all files on the Desktop and Downloads file, and leave only public desktop icons. The script could be as simple as:

                Del %systemdrive%\users\%username%\Downloads\*.*
                Del %systemdrive%\users\%username%\Desktop\*.*
                

                You would save that as a batch file, like logon.bat. This will remove all files in the users downloads and desktop folders, but will leave public folders as is. You can set this as a log in script in the local Group policy manager, by typing gpedit.msc in the search box in windows 7. and then go to User Configuration>Windows Settings>Scripts(Logon/Logoff), Double click log on and add the script there. You can build this into your images, so that it just works every time. If you ever need to change the script and add more things, simply create a snap in to copy a new file and over write this script and the new script will run.

                There are other settings in Group policy that maybe able to accomplish this without scripts but not sure which ones work best for you. I would suggest looking around at it a little and see what is possible.

                C 1 Reply Last reply Reply Quote 1
                • C
                  ccmiens @ITSolutions
                  last edited by

                  @ITSolutions Hi all,
                  Thanks a lot for help and for this best software around the world to deploy.
                  Regards

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  205

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project