• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.2k
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 Nov 24, 2015, 10:28 AM

    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
    • T
      Tom Elliott
      last edited by Nov 24, 2015, 12:04 PM

      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
      • W
        Wayne Workman
        last edited by Nov 24, 2015, 5:01 PM

        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 Nov 25, 2015, 9:46 AM

          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 Nov 25, 2015, 9:54 AM Reply Quote 0
          • C
            ccmiens @ccmiens
            last edited by Nov 25, 2015, 9:54 AM

            @ccmiens GPMC and GPO only work with AD DS.

            1 Reply Last reply Reply Quote 0
            • I
              ITSolutions Testers
              last edited by Nov 25, 2015, 3:48 PM

              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 Nov 27, 2015, 9:37 AM Reply Quote 1
              • C
                ccmiens @ITSolutions
                last edited by Nov 27, 2015, 9:37 AM

                @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
                1 / 1
                • First post
                  1/7
                  Last post

                158

                Online

                12.1k

                Users

                17.3k

                Topics

                155.3k

                Posts
                Copyright © 2012-2024 FOG Project