Solved

Powershell-PowerGui View list of servers user can logon to

Posted on 2014-01-21
3
292 Views
Last Modified: 2014-04-01
1) I have various service accounts that I have to change the passwords for in AD.

1) They run SQL services on various SQL servers.

3) Is there a way to list the servers the account as the "logon" rights to?

I thought it was in the "TSAllowLogon" setting  by using Powergui and "get-qaduser". However the entry is blank.

The process I have to go through now is to search for the ID in ADUC -> view properties of the ID -> clck on the "Account" tab -> click on the "LogOnto" tab and then write down the list of servers.

LogOnto picture
I'd like to automate this. I'm limited to PowerShell V2 and the use of the "Quest.ActiveRoles.ADManagement" PSSnappin.

Any help would be greatly appreciated.
0
Comment
Question by:Lobsterguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Joe Klimis earned 500 total points
ID: 39915270
HI

I dont have the Quest addon

but i think this may help

get-qaduser svc*@yourdomain.com -dontusedefaultincludedproperties -objectattributes @{userWorkstation='*'} | format-list LogonName,userWorkstation

Open in new window

0
 

Author Comment

by:Lobsterguy
ID: 39970434
I came up with basically the same thing back in February.

Get-QADUser $user -IncludedProperties userWorkstations | Select-Object userWorkstations

Open in new window

0
 

Author Closing Comment

by:Lobsterguy
ID: 39970438
Aside from how long it took for someone to respond, this method works as well and points are awarded.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
A procedure for exporting installed hotfix details of remote computers using powershell
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question