Tag: PowerShell

Service stopped? Restart it with PowerShell

In a previous article, I discussed changing a Windows Service Log On Account information using the Set-Service PowerShell cmdlet. Just as the Set-Service cmdlet modifies the properties of a Windows Service, the Get-Service cmdlet gets a Windows Service properties.   Running the Get-Service cmdlet without any parameters will list the Status,  Name, and DisplayName of …

Continue reading

Permanent link to this article: https://www.dvlprlife.com/2022/08/service-stopped-restart-it-with-powershell/

Set A Windows Service Log On Account and Password with PowerShell

Repeatability is important! Right alongside that, in my opinion, is efficiency. A recent task required me to set up several Application Services setups, including setting the log on account and password. I could have done all of these manually; however, I found it more efficient and repeatable to set up a script to handle the …

Continue reading

Permanent link to this article: https://www.dvlprlife.com/2022/06/set-a-windows-service-log-on-account-and-password-with-powershell/

Delete files within subfolders older than a certain period using PowerShell

Delete Key In Blue

In keeping true to the concept of this blog, “Follow the life of an ERP developer, one post at a time,” this post allows you to “follow” something that I needed to crush – deleting files older than a specific number of days or hours including subfolders. Many moons ago, I created an application that …

Continue reading

Permanent link to this article: https://www.dvlprlife.com/2022/05/delete-files-within-subfolders-older-than-a-certain-period-using-powershell/