-
Hello, Thank you for the reply. I need to: 1. Get-Date - it can be the exact time 2. Query an OU & All Sub-OUs for accounts that have a date/time set in the attribute that is either "now - the time the script is running" and any date/time prior to the time the script is running. This would...
Posted to
PowerShell for Active Directory
(Forum)
by
virtuallynothere
on
12-12-2012
Filed under: Active Directory, AD, Quest, ad account expiration, AD Disable Update Description, Get-QADUser, IncludeAllProperties, foreach, power shell, User, Active Directory Management
-
Hi all, i have a new question :) i wish to return all the groups in a domain that have disabled members. I've looked at doing this via Get-Qadgroup | Get-Qadgroupmember but i couldn't get it to work. So i ended up doing it this way instead: get-qaduser this sort of works in that I get a list...
-
Hi Folks: I am trying to find a way to query AD for user accounts that are set to expire, but that's the easy part. I need to run a scheduled task that ties into a Quest system we use that does a whole "disabling" process on user accounts. The task will be this script I'm trying to...
Posted to
PowerShell for Active Directory
(Forum)
by
virtuallynothere
on
12-07-2012
Filed under: AD, Quest, powershell, ad account expiration, AD Disable Update Description, Get-QADUser, IncludeAllProperties, foreach, AD Auditing using PowerShell, power shell, User, Active Directory Management
-
Hi, I'm trying to make a PowerShell script that counts the number of users in a specific OU in our Domain. This OU has 104 child OU's and 1.600 users. The script is supposed to count the users and then export the results to an excel file. My problem is the number of users I think. Because when...
-
Need Help i have an account creation script and i am auditing/validating the account creation at the end. The script creates multip users i have the following so far. foreach ($user in $Users) { Get-QADUser -Identity $user.saMaccountname -IncludeAllProperties | Select displayname,samaccountname,employeeid...
-
What happens? The Script: $x = Read-Host "Please type First Name, Last Name, Display Name, saMAccountName, ..." Get-QADUser $x -IncludeAllProperties | fl DisplayName, SamAccountName,hsg*Template* gives me back: DisplayName : Thomas Koeppel SamAccountName : TKoeppel hsgIsTemplate : False hsgMemberOfTemplates...
-
Hello, I am trying to find a way to modify this script so that it will accept a list of usernames and then delete the home folders for the users. The home folders exist on numerous file servers and I can put the user names in a text or csv file. Can anyone help me out and thanks in advance! $psSession...
-
I am trying to find a way to delete home folders for a list of users that I can put into a csv file or text file. I found a script that deletes the home folders for a single user, but how can I get this to do this for users specified in a file, and can I add something to have the script delete the user...
-
How can I import AD users into child or parent domain sitting from a Terminal Server. I'm able to use dsa.msc to connect to any domain I want to connect to add users to their respective Domains and OUs. A brief note on what needs to be done and a command would be appreciated. Thanks
-
Hi All, we have a script that should create a number of Universal Security Groups given a CSV file as input. We have 2 issues! First one, this part of the script gives me an error: ---------------------------------------- $domainName = ([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain...