Extract Mircrosoft Active Directory GPO report via PowerShell

Extract Mircrosoft Active Directory GPO report via PowerShell

Greetings! Domain policy management is one of critical task. We divide polices into multiple GPO depending upon our requirement. PowerShell is one of the powerful tool we have now. In this article we will see how we can create reports for our GPO using PowerShell. First step you need GroupPolicy available on your machine. It is part of Group Policy Management tools which is available as feature on our Windows Server. Once you have installed this feature you have all cmdlets available which are required to manage GPO using PowerShell. You can check…Read more …
Re-execute User Data script for windows instance in AWS

Re-execute User Data script for windows instance in AWS

User data is one of the cool feature of AWS. You can define the code which want to execute immediately after instance is created. But once it is executed the feature is immediately disabled. If you will execute the user data changes want apply. If you want to execute code using user data in later, you need to make changes to “config.xml”. You can use below script to enable user data feature. Example, from the documentation: $EC2SettingsFile="C:\Program Files\Amazon\Ec2ConfigService\Settings\Config.xml" $xml = [xml](get-content $EC2SettingsFile) $xmlElement = $xml.get_DocumentElement() $xmlElementToModify = $xmlElement.Plugins foreach ($element in $xmlElementToModify.Plugin)  …Read more …

Add windows machine to domain using PowerShell

Greetings !! Domains make management of machines are users very easy. Managing domains using PowerShell is like being a magician. Let us add windows machine to domain using PowerShell. Basic requirement for adding a machine to domain is domain controller should be reachable. To check that just try to ping domain from machine whic is to be added to domain. If you are not able to receive ping packets then you need to make changes to you DNS entries. Add you domain controller IP to your DNS. Once done, try to ping your…Read more …

Powershell script to fetch Citrix Xenapp server sessions information

There are different kind of sessions created on Citrix servers. we can get various information regarding sessions either from access management console or Powershell. In this article I am sharing a script I created to get session information for couple of servers. The command I user for session information is Get-XAsession. It would give information the sessions with various details. Below script fetches Sessiontype(ICA, RDP or console), server name and user's ID. add-pssnapin Citrix.* $report = Get-XASession -ServerName Server1 | Select sessionname, servername,accountname $report += Get-XASession -ServerName Server2 | Select sessionname, servername,accountname $a = "<style>"…Read more …

Extract Citrix webinterface settings information using powershell for multiple servers

Recently Citrix replaced Citrix websites with Citrix storefront. Till 6.x we use Citrix websites to access Citrix applications. There are various settings which needs to be in place for Citrix website to work. In this article we would write a small script to get settings data for multiple Citrix websites. Citrix website settings are save in a configuration file(inetpub\wwwroot\(website)\Conf\WebInterface.conf). Most of the settings can be found here. Below script check for authentication type for all websites created on servers mentioned in Web-servers.csv(The heading for column should be servers) $servers = import-csv "C:\test\Web-servers.csv" [string]$a…Read more …

Copy administrative privileges among users using Powershell for Citrix Xenapp

In this article we would copy administrative privileges of one user to another. It is very tedious task to manage custom privileges using access management console. Let us assume we have a new person joining in team and he needs to be provided custom privileges as other team mates. The shortest and easy way to do this is using Powershell. First we need to create administrator with custom which you can do by using information from my previous article. Now we have custom user. Let us assume the name of user joining is…Read more …

Administrators Management using Powershell for Citrix Xenapp 6.5

Managing administrators using Powershell is critical task. One of the major advantage of Powershell is you don't need to run discovery to fetch or modify data. You just need some knowledge and confidence on you knowledge. In this article we would be managing Citrix administrators for Xenapp 6.5 using Powershell. You can create an administrator using below command.(Don't forget to add Citrix snappin) New-XaAdministrator domain\username After you create a new administrator you would get below output AdministratorName : domain\username AdministratorId : xyz AdministratorType : ViewOnly Enabled : True FarmPrivileges : FolderPrivileges : MachineName…Read more …

Monitoring Kerberos authentication property for website using Powershell

In last couple of years, Powershell has changed IT a lot. We are doing most of tasks using Powershell now. It requires little extra effort to automate any task. For last few weeks we are having issue with our IIS web sites. We are have trouble with website authentication. We are still working on permanent solution. In IIS there is website property called Authentication. Authentication helps you confirm the identity of clients who request access to your sites and applications. IIS 7 supports Anonymous and Integrated Windows authentication by default. Below script helps…Read more …

Powershell Tool for Server utilization information remotely

One of the important tasks while managing servers is Server resource utilization. We have different monitoring tools which monitor the resources and generate alerts in form email or incident in whatever tool we are using. Lot of time it happens that the alerts are fake or we can see the problem was temporary which got resolved by itself. By using this script you can check resource utilization from your desktop. You need to run you script as an administrator which access to servers. You would be prompted for Server name when you would…Read more …