Windows




Truncate log files with PowerShell

It is a very common task to truncate log files. You don't notice them and they reach the limit size always not in the appropriate time. And when this moment occurs, it's much better to have a quick solution to decrease the size of log files. But even much better to clean logs automatically on the schedule.

(read more...)

Select and move files by mask with Windows command line

Figure 2. The result of command Get-SPLogEvent

During previous 5 years I have downloaded files from FTP server. Those were texts and images, that had been downloaded from FTP resources. During these 5 years its quantity became enormous – over 150 000 items in each folder. It worked automatically, that's why I hadn't paid attention to disc size and quantity of files. But once the space decreased too much.

(read more...)

Get PID of application pool (w3wp process) using AppCmd

Figure 5. IIS window

Application pool allows you to isolate your applications from one another in case if they are running on the same server. According to this, if there are errors in one application, they will not influence other web applications executing on the same server or the IIS server itself. But if your w3wp process has 100% CPU load, you must immediately find which process matches your application pool.

(read more...)


MarkiMarta.com. Notes of web-specialist
Since 2009
18+