How to restart Windows at Any Scheduled time with Powershell

As a system administrator, there are times when you need to schedule a restart for server maintenance. While PowerShell’s Restart-Computer cmdlet is handy, it doesn’t offer a built-in parameter for timing the shutdown. This means you’d typically need to combine it with New-ScheduledTask, which is only available in PowerShell 3.0 and later.

But let’s keep it simple. Instead of relying on newer PowerShell features, you can use the built-in shutdown.exe utility. By combining shutdown.exe with a PowerShell command, you can easily schedule a restart.

Continue reading “How to restart Windows at Any Scheduled time with Powershell”

The Magic of FTP with user isolation and how to automate the setup with Powershell (with Domain Users)

Unlike a normal FTP server, the magic of FTP with user isolation is that every user
is jailed in this own directory and the user cannot see or write to other users’ directories, as well as changing to the parent root directory. In linux, it is similar to “chroot” option after the user has logged into his home directory.
Today, I will show you how to make ftp with user isolation in IIS 8.5 (also tested on server 2008R2 with IIS 7.5) with Domain user accounts in graphical Mode. Also, I have made a good powershell script to automate this ftp setup process for thousand of users ;P. Continue reading “The Magic of FTP with user isolation and how to automate the setup with Powershell (with Domain Users)”

High Memory Usage with w3wp.exe in Exchange Server

w3wp.exe process is an IIS web application process to handle the client request for the application pool. Exchange server services heavily utilized w3wp process not only to handle users request from external but themselves make web service requests among Exchange server members using virtual directories (Owa, OAB & Powershell etc) and respective App pools. Unless you have not configured periodic recycling for Application Pool, you may need to do manual recycle to avoid memory leaks. Microsoft Technet states that: Continue reading “High Memory Usage with w3wp.exe in Exchange Server”