To sync the time on a computer with Windows OS you can run the command in console:
w32tm /resync /force
(read more...)To sync the time on a computer with Windows OS you can run the command in console:
w32tm /resync /force
(read more...)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...)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.
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.
You can easily copy files from one directory to another. You can easily create cmd-file with the command XCOPY and it's keys and make copies of files.
(read more...)
You can initialize and fill multidimension hashes (arrays) in powershell this way:
This is an manual how to work with arrays in PowerShell - how to create them, fill and read.
You can initialize array this way:
When you execute load test in Visual Studio, you may want to see previous results or to move results to another machine if you need to make report. I had to spend some time to look for the buttons to manage results of Load test in Visual Studio 2013.
There are at least 2 ways to find physical path of shared folder in Windows (server or client OS – not important) – from command line console or from Snap-In "Shared Folders" in MMC.
In PowerShell you can use a lot of modules and classes of your machine. Built-in system class "System.Environment" allows you to get a lot of useful information about your machine. Its syntax is like this [System.Environment]::class_property or [System.Environment]::class_method.