Get Windows Server Edition using PowerShell and Export to CSV

Being a user friendly and easy to maintenance, most of the giant companies prefer Microsoft products and services. If we talk alone about Windows Servers, Microsoft has already introduced Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, and Windows Server 2012, Windows Server 2012 R2 with various editions like Standard, Essentials, Enterprise and Datacenter on their own prospective. This year Microsoft has launched its new Windows Server 2016 which is advancement of various features and services of previous versions. Microsoft also provides support for these servers except Windows Server 2003. In this post we will try to find out the different Windows Server editions using its own automation tool known as PowerShell.
Get Windows Server Edition using PowerShell and Export to CSV

Insert, Update and Delete Operations via jQuery & Ajax in PHP + MySQL (Wall Script)

In the previous post, we went through the CRUD Operation i.e. Insert, Read, Update and Delete using PHP and MySQL and had built a small wall script. In this post, we will be doing a quite same thing but totally in a different way. If you remember in the last post, our data were getting refreshed each time whenever we performed any activity whether it may be a new post, editing data or deleting it. That means, for any small changes we were displaying the whole data, again and again, resulting in the loss of time, internet data and web page performance. To get rid of these problems, a new web technology for client side called AJAX was developed. With the help of AJAX, our web apps can send and receive the data to the servers in the background without interfering the already existing web page.
Insert, Update and Delete Operations via jQuery & Ajax in PHP + MySQL (Wall Script)

Insert, Update and Delete Operations using PHP + MySQL

Today, we are going to talk about CRUD Operation which means CREATE, READ, UPDATE and DELETE. It is the very first and basic thing which we need to deal with if we are thinking to create any application which will save users data into database. So, we will be using PHP as a server side scripting language and an open source database as MySQL for storing our data. By integrating both we will write a code that will perform the CRUD Operations. Before starting I am hoping that you are familiar with PHP and MySQL.
Insert, Update and Delete Operations using PHP + MySQL

Count Files in Directory using PowerShell Script

You might be thinking, why we need any script for counting files in the directory as it is just an easy job. Yes I do agree, you can manage to count files on one computer but just think how about if you need to find no. of files under directory on several no. of servers. You have no idea how much time you need to spend to get the entire information for those servers. But the good news is that we can make this task much easier with PowerShell. Yes, we can order “Hey PS, I have a bunch of servers where I need to count files for these directories. Can you do it for me and I am sure it will not refuse to do this. So, the question is how? That’s what the post is about.
Count Files in Directory using PowerShell Script

Checking Windows Time Service on Servers using PowerShell Script

In this Post, We will be talking about Windows Time Service or you can also call W32Time which is implemented in a dynamic link library called W32Time.dll and installed by default in “C:\Windows\System32” folder while installation of Operating System like windows 2008. The purpose for developing W32Time is to synchronize the date and time for all computers running in an AD DS domain. That means, the windows network using AD alias of Active Directory require that every machine clocks within in a specific domain should be almost synchronized so the machine can log on the domain using Kerberos Authentication.
Checking Windows Time Service on Servers using PowerShell Script

Clean Windows Junk Files using PowerShell Script

Junk Files! Sounds unhealthy, but unfortunately that is not the case. If you ask your tech expert, even they will suggest you to delete it regularly. You have no idea, at what extent the temporary files created. So, why to keep such files in your computer which can increase the risk for sort of problem and can decrease the performance in the terms of utilizing unnecessary disk space. Although you have huge storage system but that doesn’t make sense. It definitely makes your computer slow to operate or sometimes your computer can go unresponsive.
Clean Windows Junk Files using PowerShell Script

Delete Windows Event Logs With PowerShell Script

The event logs capture the events that happen on your computer by tracing the activities done by program or user. Windows server logs consist of Windows logs and Applications and Services logs with .evtx or .evt file extension. If this log is configured properly, you can manage the logs more efficiently and can use that information effectively. But the condition can go even worse if it not. It can impact your server performance by occupying a huge space in Gigs on the disk. Sometimes, your system C drive can run out of the disk and can result in slowness. In that case, you will have to delete the logs file which is older and not important to your system
Delete Windows Event Logs With PowerShell Script

How to fix The User Profile Service service failed the logon issue ?

If you are working in an infrastructure that deals with Windows, you have probably fallen in the situation where you tried to log on the windows and have faced error like "The User Profile Service service failed the logon". That means, the default profile, stored in C:\Users\Default, has incorrect permissions or is corrupt in some way. In this case, Logon is not possible, if the default profile’s NTUSER.DAT file is no existing or somehow got corrupted and then simultaneously user profile service logs an event with ID 1508 and source User Profile Service in the application event log under Event Viewer.
How to fix The User Profile Service service failed the logon issue ?
Rohit Sharma

Hi There! My name is Rohit and I am working in the one of MNC as Web Apps developer. I have been in this tech industry for last 3.6 years. This blog is just a part of my career journey.
Ready to make new mistakes without repeating the previous ones.

"All life is an experiment. The more experiments you make the better"


© 2020 WriteSomeCode. All Right Reserved. A Rohit Sharma Blog. Creative Commons License licensed under a Creative Commons Attribution 4.0 International License