Posted On March 31, 2019

Windows-clean-up.cmd

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Windows-clean-up.cmd

——————————
Clear out TEMP files on a regular basis – this is best done at startup when no applications are running. To delete all files in all subfolders of C:\temp\ but leave the folder structure intact:
DEL /F /S /Q %TEMP%
——————-

shutdown.cmd
—————————————————
net stop “Microsoft Exchange Internet Mail Service”
net stop “Microsoft FTP Service”
net stop “Some other Service”
SHUTDOWN /t:25 /r
—————————————————-

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Maintain Windows Services Remotely via WinRM

# maintainServices.ps1 # FQDN of each computer name (required) $computerList=@' testWindows.intranet.kimconnect.com testWindows.dmz.dragoncoin.com '@ $serviceNames=@( 'windows_exporter',…

How To Quickly Search a User in Active Directory by Matching Email

This one liner would do the trick: Get-ADUser -Filter {EmailAddress -eq '[email protected]'} PS C:\Windows\system32> Get-ADUser…

How to Add Windows Server 2012 into 2003 Network

Back up Domain Controller:   Login to your domain controller, and perform the following steps:…
Other project: DragonCoin.com