0
votes
0answers
118 views

Powershell script to add user to active directory and set static IP

I have seen other similar questions but I am looking to fully automate the process and all of the examples I have found up until now are missing pieces that I need. Also, this is the first poweshell ...
0
votes
0answers
50 views

Powershell - Test user credentials in AD, with password reset

I can successfully use Powershell to tell if a user authenticates in Active Directory: Function Test-ADAuthentication { param($username,$password) (new-object directoryservices.directoryentry ...
0
votes
1answer
116 views

Windows 2012 Domain Controller NETLOGON error

We have Sonicwall firewall user authentication System active since last two months. We have Windows 2012 Active directory server setup with around 1400 user account created. These accounts were ...
0
votes
1answer
158 views

Piping with PowerShell in Office 365 Exchange and on-premises AD

We have a local AD domain synced with Exchange Online in Office 365. I am trying to use PowerShell to get information that I need but keep getting an error and can’t seem to get the commands to work ...
0
votes
1answer
117 views

PowerShell - IF statement case insensitive?

I am trying to write a PowerShell script that will cycle through the ProxyAddresses for all of my AD user objects. If a user has a SMTP address with USER@DOMAIN.LOCAL, I want it to check if they also ...
0
votes
1answer
322 views

PowerShell – Remove specific SMTP addresses from proxyAddresses array

I have been trying to figure this out how to modify the proxyAddresses of some of my users in AD using PowerShell. My basic goal is to use Get-ADObject to query AD for a specific set of users and ...
2
votes
1answer
211 views

Powershell: how to get logged-in users list in active directory?

I need to generate this table: Computer | User | last log in date(never) This one asks for username for each user account and returns only ad server name against which the user was last ...
1
vote
1answer
207 views

Active Directory 2008 R2, c#

I am using C# and trying to check if a group exists or not in active directory I am doing this string cmd = "New-Object DirectoryServices.DirectoryEntry \"LDAP://cn=" + groupname + " " + LdapDef + ...
1
vote
1answer
1k views

How to add full username to a list returned by get-acl?

I want to prepare a list of persons having access to a given folder. The list should also contain the level of access granted. I figured out the following powershell command: Get-Acl ...
2
votes
2answers
2k views

Querying against Active Directory

I'm the "script guy" at my work, which is a blessing and a curse... I've been tasked with generating a script of: Can you create a script to pull all users that have a proxy address that is not ...
1
vote
2answers
2k views

Using powershell to manage Active Directory running on Windows Server 2003?

I would like to create a script that can use the ActiveDirectory module in powershell (from a remote machine). From what I understand I need to have Active Directory Web Services (ADWS) installed for ...
1
vote
2answers
4k views

Using Active Directory commands in Powershell

How can I use Active Directory commands in a Powershell script?