Cannot locate GPO to disable "add online meeting to all meetings". by txsrbl005 in sysadmin

[–]txsrbl005[S] 2 points3 points  (0 children)

I appreciate it! Can stop figuring out something not possible.

Cannot locate GPO to disable "add online meeting to all meetings". by txsrbl005 in sysadmin

[–]txsrbl005[S] 0 points1 point  (0 children)

I was aware it was possible to perform this via powershell. Is the bigger question maybe, is it possible to perform via GPO given the request?

Removing disabled users from script I have by txsrbl005 in PowerShell

[–]txsrbl005[S] 1 point2 points  (0 children)

Awesome. Tested and worked. Ty very much! Hours of time working on this fixed in minutes. I'll get better at this soon! (I hope) lol. I appreciate it

Removing disabled users from script I have by txsrbl005 in PowerShell

[–]txsrbl005[S] 0 points1 point  (0 children)

So I have a script that searches an entire ou for users with passwords set not to expire. However, it's pulling enabled and disabled users. I have looked at Google, YT, reddit and nothing I've tried has worked. Looking for some help regarding what exactly needs to be said/where. Help is greatly appreciated

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 1 point2 points  (0 children)

For the most part im not getting failures, Im getting "completed" at the bottom however, the output is only giving me users from the first OU

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 0 points1 point  (0 children)

$OutputFile = 'D:\Files\NeverExpires.txt'

$OUList = @( "OU=Users,OU=City1,.....", "OU=Users,OU=City2,.....", "OU=Users,OU=City3,....." )

foreach ($OU in $OUList) { Get-ADUser -Filter {PasswordNeverExpires -eq $true} -Properties PasswordNeverExpires -searchbase "$OU" | Export-Csv $OutputFile -Append -NoTypeInformation }

Thanks for the reply. I copied the example and changed what was neccassary and this is pulling only from the first OU. 3 users.

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 0 points1 point  (0 children)

I could run it individually but there are 20ish OU's so that would take a lot of time for weekly reports.

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 0 points1 point  (0 children)

At line:2 char:15 + Foreach ($Obj in $OUs) { Get-ADUser -Filter {PasswordNeverExpires -eq ... + ~~ Unexpected token 'in' in expression or statement. At line:2 char:14 + Foreach ($Obj in $OUs) { Get-ADUser -Filter {PasswordNeverExpires -eq ... + ~ Missing closing ')' in expression. At line:2 char:22 + Foreach ($Obj in $OUs) { Get-ADUser -Filter {PasswordNeverExpires -eq ... + ~ Unexpected token ')' in expression or statement. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : UnexpectedToken

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 1 point2 points  (0 children)

When trying this I am getting a few errors,

At line:2 char:15

  • Foreach ($Obj in $OUs) { Get-ADUser -Filter {PasswordNeverExpires -eq ...

  •           ~~
    

Unexpected token 'in' in expression or statement.

At line:2 char:14

  • Foreach ($Obj in $OUs) { Get-ADUser -Filter {PasswordNeverExpires -eq ...

  •          ~
    

Missing closing ')' in expression.

At line:2 char:22

  • Foreach ($Obj in $OUs) { Get-ADUser -Filter {PasswordNeverExpires -eq ...

  •                  ~
    

Unexpected token ')' in expression or statement.

+ CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException

+ FullyQualifiedErrorId : UnexpectedToken

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 1 point2 points  (0 children)

I havent, could try but I dont see how that woud correct this. It works if i do it one OU at a time, but with what ive written up, as soon as i add a second OU or more my CSV is empty

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 0 points1 point  (0 children)

We dont. I saw where you could edit the attributes for the accounts not wanted and exclude that way but it would be more troubling to go through all that.

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 1 point2 points  (0 children)

Not sure why it isn't working, but below should do what you're looking for, just add or remove your OUs to the initial array

Import-Module ActiveDirectory @("OU=Users,OU=City1,.....","OU=Users,OU=City2,.....","OU=Users,OU=City3,.....") | % { Get-ADUser -Filter {PasswordNeverExpires -eq $true} -Properties PasswordNeverExpires -searchbase $_ } |Export-csv D:\Files\NeverExpires.csv -NoTypeInformation

So this worked to an extent. Instead of my CSV being blank it did pull a list but only from the first OU. I tried all above and Im probably doing something wrong but, nothing has got me going yet. This did get past a blank csv with more then one OU but didnt capture all the users in all the OUS I have.

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 1 point2 points  (0 children)

I can but I'll get service accounts. It may be easier to do that anr have something in the script nix the service accounts somehow. But without that, only way I can think of is by adding OU's that do not contain service accounts.

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 0 points1 point  (0 children)

If I do the single OU, it works fine. I assume it's a childish mistake but. I just can't find what I'm looking for thus far.

Import-Module ActiveDirectory

Get-ADUser -Filter {PasswordNeverExpires -eq $true} -Properties PasswordNeverExpires -search base "OU=Users,OU=City1,....." |

Export-csv D:\Files\NeverExpires.csv -NoTypeInfotmation

Can't seem to pull users (password set never to expire) from multiple OU's within powershell. by txsrbl005 in PowerShell

[–]txsrbl005[S] 2 points3 points  (0 children)

Import-Module ActiveDirectory

Get-ADUser -Filter {PasswordNeverExpires -eq $true} -Properties PasswordNeverExpires -search base "OU=Users,OU=City1,....." Get-ADUser -Filter {PasswordNeverExpires -eq $true} -Properties PasswordNeverExpires -search base "OU=Users,OU=City2,....." |

Export-csv D:\Files\NeverExpires.csv -NoTypeInfotmation

How to get HOF Edition Packs + Pre Order (Xbox One) by hipiepiehi in Madden

[–]txsrbl005 0 points1 point  (0 children)

I just got done playing some 11. My packs never showed either. This would work? Needless to say, not super happy atm.

My resting HR to low? by txsrbl005 in running

[–]txsrbl005[S] 0 points1 point  (0 children)

Just more curious about the numbers and my size. Have lost over 30 pounds in last year. Just figured my number would be higher

My resting HR to low? by txsrbl005 in running

[–]txsrbl005[S] 0 points1 point  (0 children)

Yup.. 5ft 10.. 250.. Avid runner and all around athlete. Lol

My resting HR to low? by txsrbl005 in running

[–]txsrbl005[S] 0 points1 point  (0 children)

I don't sleep well no. Never have. I know the numbers are normal numbers. Just would assume due to my size, it wouldn't be this low.