PowerShell. Check if file or directory exists
If you need to know whether file is, you should use “Test-Path” cmdlet in PowerShell. It returns “True” if the file or directory exists and returns “False” in other case. Read more»
If you need to know whether file is, you should use “Test-Path” cmdlet in PowerShell. It returns “True” if the file or directory exists and returns “False” in other case. Read more»
PowerShell is a very flexible tool for Windows and Windows-software administrators. You can do a lot of things with it. Sometimes you start to think of how to execute powershell scripts from Task Scheduler. It’s not enough just to add a PS-file in scheduler, you need to do something more. Read more»
If you are an administrator of several servers, I don’t think you want to execute PowerShell script on each server manually, especially if you have 20 or more servers. Since PowerShell 2.0 you can execute commands on remote computers using PowerShell via WinRM (Windows Remote Management) service. Read more»
The PowerShell script below extracts one file from zip-archive which contains several files. I use code like this to get files with financial references from zip-archives and update SharePoint lists from them. So there’s a lot of things where this sctipt can be used. Read more»
Last time my server bases on Debian was several times attacked by bad guys bia linnuux viruses on malware. To fight with them there’s an utility Linux Malware Detect (LMD). So I copypaste some info not to search it but just open the page. Read more»
According to one of Windows 8 interface developers Jacob Miller, metro-interface was made not for advanced users but for housewives who use PC only to set “Like” in popular social network. But advanced users don’t think the same as Jacob. Read more»
No so long ago I decided to create FTP site for my home local area network. I wanted to read and write files not via file sharing but via File Transfer Protocol (FTP). I had Windows 8 Home Edition on my PC. So this PC became server for my FTP site. Read more»
When I first started Putty on my Windows 8.1 x64, connected to my server and ran Midnight Commander, I saw picture like this (see drawing 1). Instead of separating lines there were unreadable characters. It wasn’t what I expected to see and the first thing came in my mind is to fix it. Read more»
When you work in Excel with large tables, for example, price list, sometimes while scrolling you forget what columns you are watching. To make more comfortable work with tables you can fix position of cells (row or column) so that other cells to be scrolled and the cells with names are fixed. Read more»
Search engines don’t like some versions of site URL, even if it’s the same domain with and without "www". Sometimes search engines can ban your site because of the same content on several domains. So, if you want your site to be without "www", you need to add some rules to a web-server. For example, […] Read more»