Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home/ececpanel2/wolftech/tools/support/includes/GlobalFunctions.php on line 1955
Warning: session_name(): Session name cannot be changed after headers have already been sent in /home/ececpanel2/wolftech/tools/support/includes/Setup.php on line 712
Warning: Cannot modify header information - headers already sent by (output started at /home/ececpanel2/wolftech/tools/support/includes/GlobalFunctions.php:1955) in /home/ececpanel2/wolftech/tools/support/includes/changes/ChannelFeed.php on line 95
Warning: Cannot modify header information - headers already sent by (output started at /home/ececpanel2/wolftech/tools/support/includes/GlobalFunctions.php:1955) in /home/ececpanel2/wolftech/tools/support/includes/changes/ChannelFeed.php on line 100
Warning: Cannot modify header information - headers already sent by (output started at /home/ececpanel2/wolftech/tools/support/includes/GlobalFunctions.php:1955) in /home/ececpanel2/wolftech/tools/support/includes/WebResponse.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /home/ececpanel2/wolftech/tools/support/includes/GlobalFunctions.php:1955) in /home/ececpanel2/wolftech/tools/support/includes/WebResponse.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /home/ececpanel2/wolftech/tools/support/includes/GlobalFunctions.php:1955) in /home/ececpanel2/wolftech/tools/support/includes/WebResponse.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /home/ececpanel2/wolftech/tools/support/includes/GlobalFunctions.php:1955) in /home/ececpanel2/wolftech/tools/support/includes/WebResponse.php on line 74 https://tools.wolftech.ncsu.edu/support/index.php?action=history&feed=atom&title=PStoolsPStools - Revision history2025-02-18T08:12:49ZRevision history for this page on the wikiMediaWiki 1.35.4https://tools.wolftech.ncsu.edu/support/index.php?title=PStools&diff=7968&oldid=prevRdnorris: New page: PsExec is a software tool that allows you to remotely push out files and patches. The link to download PsExec is listed below. An Example of using PsExec is to remotely delete old Profile...2007-12-19T13:29:14Z<p>New page: PsExec is a software tool that allows you to remotely push out files and patches. The link to download PsExec is listed below. An Example of using PsExec is to remotely delete old Profile...</p>
<p><b>New page</b></p><div>PsExec is a software tool that allows you to remotely push out files and patches. The link to download PsExec is listed below. <br />
An Example of using PsExec is to remotely delete old Profiles. For this I needed to download Delprof.exe from Microsoft. I also profided the link below. I then copied the files to a Network Share. I then created a local .bat file called del.bat. Here is the line I used in the bat file. <br />
<br />
\\wolftech.ad.ncsu.edu\files\cnr\packages\cnr\Profiles\delprof /q /I /d:60<br />
<br />
I then saved a list of IPs in my labs to a txt file. You can use computer names too. In my example I used a file called biltmorelabs.txt. <br />
<br />
note: I copied the Psexec,del.bat and the txt files to a folder called profiles. <br />
<br />
Then from a cmd line I ran the following command to delete the old profiles. <br />
<br />
<br />
<br />
psexec @c:\profiles\biltmorelabs.txt -U wolftech\rdnorris.admin -c "c:\profiles\del.bat"<br />
<br />
After I hit enter I am prompted for my password. <br />
It should delete the profiles and give you an error code 0 if the running of the delprof.exe is successful.<br />
<br />
<br />
<br />
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx<br />
<br />
http://www.microsoft.com/downloads/details.aspx?familyid=901a9b95-6063-4462-8150-360394e98e1e&displaylang=en</div>Rdnorris