You can use the snippet below to list all of the systems in an organizational unit, OU, and below. The output lists the name of the server and the os version.
Several years ago, I was tasked with putting together a script to output a list of all users and groups on a server. Additionally, management wanted to know the membership of the local groups. If the groups contained other groups, the contents of those groups should be listed as well. Continue reading Use ADSI and Powershell to Monitor Group Access
I am sure I am not the only one that has been working on something only to get weird error messages about access denied, only to realize that my password had expired.
When you want to determine the last time a system rebooted, it can be a real pain. You can remote to the server and check the sysinfo utility, or you can peruse the logs and make the determination. But if you just want to get the last boot time, you can use this little powershell command.
There are times when I need to look at a list of groups to which a user belongs. To make this an easier proposition, you can use the cmdlet below to produce the list, you can specify a single user or a list of comma separated users.
This powershell script lists information about when a user was added to a given group.
Get-ADPrincipalGroupMembership -Identity <user> | select Name
(Get-ADPrincipalGroupMembership -Identity <user> | select Name).Count
Access is denied.
I recently had a single citrix user who began receiving this error when attempting to run an streamed application from one of my citrix farms.
I began researching the error and, as per the norm, the citrix user forums were less than helpful. They included the norms of "Install hotfix X from citrix, service pack Y from Microsoft" and the like.
I tell ya, I wish I had a dollar for every hotfix citrix said to install that in the end did not solve the issue... but I digress. 🙁
At any rate, I began looking at another application and noticed it was running without issue. Diffing further, I noticed that the successful application was setup to run on only one server. I configured the failing application to run on that server as well and, wow, it worked.
All of my servers are configured the same, so this was perplexing until I ran across a thread that mentioned corrupt profiles.
I deleted the users profile on the servers where the application was failing and everything began working properly.
This was odd as the issue was occurring for a while and I reboot the servers nightly and purge all user profiles so I would have thought that it would have cleared on its own.
If you run into this situation, I would highly recommend that you delete the users profile, it may save you lots of time in the citrix forums
Recently, one of our vendors needed the ability to Remote Desktop, RDP, to a specific system in our environment. The vendor connects via Citrix and we only want them to be able to RDP to the one system.
Today when I logged into my pc, I was greeted with an email from the Information Security group telling me that they were notified that I attempted to unlock a users account.