So we migrated our fileshare to a DFS namespace and we started facing a lot of problems. One of the most annoying one was, no matter how we trust the source, the powershell scripts from the DFS namspaces were not able to run, as they give warning. Interestingly, problem was that the FQDN of the […]
Tag: windows
How to export services and their users into csv
I need to export the services and their ‘run as’ users in a number of servers. This is how I did it. #Ebin Issac 6/3/2018 #This will read a list of servers from a text file, and extract the services which are not run by localsystem, and save into a csv file. Need to be […]
How to export group memberships of Active Directory users into CSV format..
So I started a new job recently, and I am working on a as-is migration. I needed to export the list of AD users and their group memberships into human readable format. So this is how I did it. $users = Get-ADUser -Filter * foreach ($user in $users) { $Groups = (Get-ADPrincipalGroupMembership -Identity $user.SamAccountName | […]
How to export the last login details of all users in a Windows server using Powershell
So one of our clients want to get a monthly report on the last login details of all users in the Windows servers in our environment. So we came up with this powershell script which is scheduled to run end of every month. This will extract the data, and upload them to an S3 bucket. […]
How to display a pop up message in a remote computer using powershell
In my daily work, there are times which I need to contact a user who is using a particular PC, but they don’t respond. Mostly, I need to contact them to inform about something, or get them to reboot, or install something etc. There are some cases which it is not possible, such as : […]
How to remove UAC prompt for a software in Windows
[This was originally published in my another blog on July 2016.] Today I received a support request from a user who is facing issues while running a macro script. He was facing Run-time error 429 : ActiveX Component cannot create object. Though I have never written macro, I decided to give a try. When clicked […]