Is there any way to run Out-GridView with pre-defined criteria?
I have three columns:
Computer, Source Role and Assignee.
Basically, I'm searching by Computers to see which access group (Assignee column) will give access to the server, but often we're getting requests to give access to many servers at once.
So I'm trying to achieve something like this:
But without the need to specify it manually in the GridView.
Thanks for all the help!
Related
I have a PROD and DEV farms using the same AD domain.
A query using _api/search/query?querytext='Office:Chicago'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'
Brings Lots of results from the PROD farm but nothing from the DEV farm and no errors are showing. search on the UI of DEV does find people. but not using 'Office:Chicago'.
What can I do to fix it?
Make sure you can get results using the query in the UI first. Since you can't get results, make sure of some things:
The column's indexed managed property name is correct and the mapping exists
Enough time has passed to be indexed
Do a full index if its been recently added
Items with the tagging exist, and have been crawled
Here are names for OOTB properties: https://technet.microsoft.com/en-us/library/jj219630.aspx
Basically, I've created a 400+ and growing AD tool with a GUI. I've given them the option to search using many filters with get-aduser and wild cards fill the rest. This company is large so when I search for a common name like kyle or john, it takes along time to pull the information because the search was not specific.
Is there a way to stop them from doing such a general search or limit the number of entries can be in an array, or stop the search if there's too much information.
Edit: I have a solution using a variable to count wild cards but that only works if the form is completely blank. If i set the number any different they won't be able to look someone up by ID number
Looking to gather information from Computers in an OU regarding mailboxes that were manually added and not added manually.
I'm pretty sure that the hive I need to target is:
HKCU:\Software\Microsoft\Office\15.0\Outlook\Profiles\Outlook
I'm looking for a value of:
#example.example.edu
If that value is present I'd like it to output that value to a log file along with the user name it's attached to. If it's not present I'd like that outputted to a log file also.
Is test-registry value the right way to go?
How would you get the values for the computers in an OU?
Sorry for all the questions - still learning.
I've been looking for a solution but cannot find anything easy enough or reliable, so please excuse for bringing this up again.
In a typical AD environment, what I want to get is a monitoring report that would say something in the lines that "user X has logged in YYYY times in the past ZZ period".
The lastlogon date on get-aduser in PS is the only thing I can find, as that changes with each login, but cannot be easily scripted in a scheduled run to generate a report for eg.
Has anyone implemented this or use any tools that can track this?
There's only one reliable way to do what you want: collect and parse the audit logs from all Domain Controllers.
If you have a few users that you want to keep track of over time, an alternative could be monitoring the sum of the logonCount values for that user. Since the logonCount attribute is not replicated, you will have to collect it from each DC per user, then calculate the difference.
You can probably check the AD replication logs for replication of changes to the lastlogontimestamp property.
This script will do what you want for a particular user - closest I've managed to come so far.
I'm aware that it's very easy to use Get-MailboxStatistics to sum ItemCount and sizes and so on, but can anyone tell me how to do this selectively?
So an example here would be that I want to use e-mail item properties (fields) to selectively count. Imagine a scenario where I'm saying "okay, what's the item count in this persons mailbox where the "Follow Up Flag" is set, or what's the count of mail items that have an "Importance" flag.
Essentially I suppose I'm trying to make the equivalent of a search folder, but server side script, so the fields that I could use within Outlook to create a search folder based on e-mail fields I'd like to be able to "count" as part of a cmdlet.
Does that make sense? Can it be done?
There's nothing in the Exchange management cmdlets that reaches that far into the mailbox items. I think your best bet is going to be the EWS Managed API.
I'd start here:
http://gsexdev.blogspot.com/#!/2012/01/ews-managed-api-and-powershell-how-to.html