How do I automate the removal of accumulating user profiles by age? Announcing the arrival of...

How can I use the Python library networkx from Mathematica?

Significance of Cersei's obsession with elephants?

Why are there no cargo aircraft with "flying wing" design?

How do I find out the mythology and history of my Fortress?

Using et al. for a last / senior author rather than for a first author

What does the "x" in "x86" represent?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

Why didn't Eitri join the fight?

Is it fair for a professor to grade us on the possession of past papers?

How to react to hostile behavior from a senior developer?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

What's the meaning of "fortified infraction restraint"?

First console to have temporary backward compatibility

What is the meaning of the new sigil in Game of Thrones Season 8 intro?

Is this homebrew Lady of Pain warlock patron balanced?

Circuit to "zoom in" on mV fluctuations of a DC signal?

Why are both D and D# fitting into my E minor key?

What do you call the main part of a joke?

How to compare two different files line by line in unix?

What causes the direction of lightning flashes?

Chinese Seal on silk painting - what does it mean?

Can a party unilaterally change candidates in preparation for a General election?

Can a new player join a group only when a new campaign starts?

Is CEO the profession with the most psychopaths?



How do I automate the removal of accumulating user profiles by age?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How do I disable roaming profiles on WinXP?Roaming profiles using vault credentials (instead of user credentials)A particular app (Visual Studio 2013) has lost write access to particular directoriesWindows 7 logon failure- User ID and password appears to expire over weekendHow can I keep user account settings across multiple computers?Windows 10 - Admin woes on attempting to elevate any applicationKeyboard profile confused between user profilesMy windows has 2 user profilesRoaming Profiles - How it works?Windows 10 Start Menu on Domain Computers





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















At an organization we support, we run into drive space issues after a year or so due to the build-up of user profiles that have logged into the computer over time. With a few hundred common computers, it is unreasonable to remove them by hand every year when a space issue comes up. These are roaming profiles so none of the information in the profiles need to be kept, however, admin profiles and local profiles should not be removed.



How would I set up an automated removal process in a managed environment?










share|improve this question































    0















    At an organization we support, we run into drive space issues after a year or so due to the build-up of user profiles that have logged into the computer over time. With a few hundred common computers, it is unreasonable to remove them by hand every year when a space issue comes up. These are roaming profiles so none of the information in the profiles need to be kept, however, admin profiles and local profiles should not be removed.



    How would I set up an automated removal process in a managed environment?










    share|improve this question



























      0












      0








      0








      At an organization we support, we run into drive space issues after a year or so due to the build-up of user profiles that have logged into the computer over time. With a few hundred common computers, it is unreasonable to remove them by hand every year when a space issue comes up. These are roaming profiles so none of the information in the profiles need to be kept, however, admin profiles and local profiles should not be removed.



      How would I set up an automated removal process in a managed environment?










      share|improve this question
















      At an organization we support, we run into drive space issues after a year or so due to the build-up of user profiles that have logged into the computer over time. With a few hundred common computers, it is unreasonable to remove them by hand every year when a space issue comes up. These are roaming profiles so none of the information in the profiles need to be kept, however, admin profiles and local profiles should not be removed.



      How would I set up an automated removal process in a managed environment?







      windows-10 roaming-profiles






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 15 hours ago







      naps1saps

















      asked yesterday









      naps1sapsnaps1saps

      558




      558






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You can accomplish this fairly easily with PowerShell and WMI. Here is a link to an article that covers the core of what you need. You can build a custom script that can be run manually, or from a scheduled task.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1426265%2fhow-do-i-automate-the-removal-of-accumulating-user-profiles-by-age%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You can accomplish this fairly easily with PowerShell and WMI. Here is a link to an article that covers the core of what you need. You can build a custom script that can be run manually, or from a scheduled task.






            share|improve this answer




























              0














              You can accomplish this fairly easily with PowerShell and WMI. Here is a link to an article that covers the core of what you need. You can build a custom script that can be run manually, or from a scheduled task.






              share|improve this answer


























                0












                0








                0







                You can accomplish this fairly easily with PowerShell and WMI. Here is a link to an article that covers the core of what you need. You can build a custom script that can be run manually, or from a scheduled task.






                share|improve this answer













                You can accomplish this fairly easily with PowerShell and WMI. Here is a link to an article that covers the core of what you need. You can build a custom script that can be run manually, or from a scheduled task.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 15 hours ago









                KeltariKeltari

                51.8k18119171




                51.8k18119171






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1426265%2fhow-do-i-automate-the-removal-of-accumulating-user-profiles-by-age%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                    Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

                    looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...