Search found 210 matches

by ITEngineer
Wed Feb 05, 2020 8:28 pm
Forum: PowerShell
Topic: Displaying AD groups where a user account is member of?
Replies: 7
Views: 3138

Displaying AD groups where a user account is member of?

People, I need someone to assist in fixing the logic in my current script below where it should show MemberOf = Yes or True for specific name patterns that is Member of specific sets of AD groups: function Get-CanonicalName ([string[]]$DistinguishedName) { foreach ($dn in $DistinguishedName) { $d = ...
by ITEngineer
Mon Feb 03, 2020 7:56 pm
Forum: PowerShell
Topic: Exporting non VMware computer from AD Online computer list as .CSV?
Replies: 8
Views: 3028

Re: Exporting non VMware computer from AD Online computer list as .CSV?

Add them to the properties of the select. Already change it like this: $adprops = @( 'IPv4Address', 'OperatingSystem', 'OperatingSystemVersion', 'lastLogondate' ) $properties = @( 'Name', 'OperatingSystem', 'OperatingSystemVersion', 'LastLogonDate', 'Ipv4Address' ) $filter = { (Enabled -eq $true) -...
by ITEngineer
Mon Feb 03, 2020 7:38 pm
Forum: PowerShell
Topic: Exporting non VMware computer from AD Online computer list as .CSV?
Replies: 8
Views: 3028

Re: Exporting non VMware computer from AD Online computer list as .CSV?

Mr Vierra, thank you for the pointer in this matter. How do I include the column to show the ComputerModel & the LoggedOn user account? $adprops = @( 'IPv4Address', 'OperatingSystem', 'OperatingSystemVersion', 'lastLogondate' ) $properties = @( 'Name', 'OperatingSystem', 'OperatingSystemVersion', 'L...
by ITEngineer
Mon Feb 03, 2020 4:10 pm
Forum: PowerShell
Topic: Exporting non VMware computer from AD Online computer list as .CSV?
Replies: 8
Views: 3028

Re: Exporting non VMware computer from AD Online computer list as .CSV?

Yes, that does make sense. Now I got some results by modifying and tidying the script like below: $servers = Get-ADComputer -Properties OperatingSystem, OperatingSystemVersion, lastLogonTimestamp, lastLogon -Filter {Enabled -eq $True -and OperatingSystem -like "*Server*"} -SearchBase "DC=Domain,DC=c...
by ITEngineer
Sun Feb 02, 2020 9:47 pm
Forum: PowerShell
Topic: Exporting non VMware computer from AD Online computer list as .CSV?
Replies: 8
Views: 3028

Exporting non VMware computer from AD Online computer list as .CSV?

Hello All, I'm trying to get all Physical server using Powershell but somehow it is not returning any result as .CSV using my script below: Get-ADComputer -Properties OperatingSystem, OperatingSystemVersion, lastLogonTimestamp, lastLogon -Filter {Enabled -eq $True -and OperatingSystem -like "*Server...
by ITEngineer
Thu Jan 09, 2020 7:25 pm
Forum: PowerShell
Topic: Unable to show Windows Event Source & Username?
Replies: 4
Views: 2623

Re: Unable to show Windows Event Source & Username?

The server is part of the record. Just add it. It is called "MachineName". Yes I know the levels. They exist in every record. Level < 4 means show all level that are less than 4. "User" is not part of every event's system properties. I think you really want "ProviderName" and "UserId" The following...
by ITEngineer
Thu Jan 09, 2020 5:17 pm
Forum: PowerShell
Topic: Unable to show Windows Event Source & Username?
Replies: 4
Views: 2623

Re: Unable to show Windows Event Source & Username?

Mr. Vierra, AFAIK, The filter System/Level<4 means to show any event log with the type of Warning, Error and Critical. Verbose = 5 Informational = 4 Warning = 3 Error = 2 Critical = 1 LogAlways = 0 Does it mean that it is not possible to add an additional column to shows which service/source of the ...
by ITEngineer
Thu Jan 09, 2020 3:03 pm
Forum: PowerShell
Topic: Unable to show Windows Event Source & Username?
Replies: 4
Views: 2623

Unable to show Windows Event Source & Username?

Hi All, I need some help in displaying the Event source & User from the below script to show the summary of Windows Event logs in the past X day. The below script working fine, it is just the two additional attribute value that is not showing. $HtmlHead = @" <style> body { font-family: Arial; } tabl...
by ITEngineer
Tue Nov 26, 2019 3:53 am
Forum: PowerShell
Topic: Executing Powershell for Exchange Online and MSOnline modules secured with MFA?
Replies: 4
Views: 3684

Re: Executing Powershell for Exchange Online and MSOnline modules secured with MFA?

You can connect to Exchange using this newer module: https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/mfa-connect-to-exchange-online-powershell?view=exchange-ps OK, so is there any steps I can follow so the IDE (Powershell ISE, Sapien, VS co...