The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2

I can't comment yet, but I agree with Ryan Boldger. I did find someone who wrote a module to do just this, but it's quite old. Here's the link if you want to look: https://stackoverflow.com/questions/27069043/how-to-get-effective-permissions-with-powershell-for-an-attribute-on-the-ad-user It would be far easier to use something like: try { Add-...


1

You're probably going to want to look at Get-Acl and Set-Acl. There are a couple of variables that could determine your method: Are the permissions on the specific object always explicit and not inherited? (affects code) Are you an administrator of each of the servers? If yes, how is each server accessible on the network? (affects deployment method) ...


1

You need to use the describe-spot-fleet-instances command: aws ec2 describe-spot-fleet-instances --spot-fleet-request-id <value> For more info read the aws-cli help: aws ec2 describe-spot-fleet-instances help


1

Without access to the ActiveDirectory module (as noted in your thread on the other forum), to achieve what you are seeking, you would need to do this by using the tools available in the Exchange Management Shell (or its implicit remoting equivalent). Specifically, replace this line of your script: %{get-adobject -filter{samaccountname -eq $_}} | ?{$_....


1

Get-ADUser -Filter {(msTSManagingLS -like '*' -and msTSLicenseVersion -like '*') -or (terminalServer -like '*')} ` -Properties DisplayName, MemberOf | Where-Object {$_.Enabled -like "true"} ` | Select-Object -Property DisplayName, @{n='MemberOf'; e= { ( $_.MemberOf | % { (Get-ADObject $_).Name }) -Join "|" }} ` | Sort-Object -Property DisplayName | ...


1

Why apply individual ACEs for each user? Create a security group, grant that group access to the object in question, and the required users to the group and then you're done - and its future proofed.


Only top voted, non community-wiki answers of a minimum length are eligible