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 …

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 …

Disable session printers in Citrix ICA sessions

Whenever administrator logs on to server, he can see all printers created from all the sessions running from server. Sometime there are application(published through Xenapp) users who gets printers from othere users in thir sessions. In order to stop printers from other sessions mapping into your administrative session, one registry tweak needs to be done. Location: HKEY_LOCAL_MACHINE\Software\Citrix\Ica\PrintingSettings REG_DWORD: AdminsCanManageClientPrinters Value: 0 This will disable connections of Session Printers during logon and reconnection. This registry can have different values depending upon various requirements. You can find other values and their impact here. Earlier in…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 …

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 …

Close a handle to a locked file or folder

Yesterday I came along an issue in which I was not able to reset user’s profile. I was getting below error. The action can't be completed because the folder or a file in it is open in another program. The reason I was getting below error was because there were some files opened from user’s profile which were used by some other processes. To overcome this I found this utility by Microsoft called Handle. Handle is a utility that displays information about open handles for any process in the system. You can use…Read more …