Search found 187 matches

by ITEngineer
Mon Feb 03, 2020 8:38 pm
Forum: Windows PowerShell
Topic: Exporting non VMware computer from AD Online computer list as .CSV?
Replies: 8
Views: 745

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 5:10 pm
Forum: Windows PowerShell
Topic: Exporting non VMware computer from AD Online computer list as .CSV?
Replies: 8
Views: 745

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 10:47 pm
Forum: Windows PowerShell
Topic: Exporting non VMware computer from AD Online computer list as .CSV?
Replies: 8
Views: 745

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 8:25 pm
Forum: Windows PowerShell
Topic: Unable to show Windows Event Source & Username?
Replies: 4
Views: 988

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 6:17 pm
Forum: Windows PowerShell
Topic: Unable to show Windows Event Source & Username?
Replies: 4
Views: 988

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 4:03 pm
Forum: Windows PowerShell
Topic: Unable to show Windows Event Source & Username?
Replies: 4
Views: 988

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 4:53 am
Forum: Windows PowerShell
Topic: Executing Powershell for Exchange Online and MSOnline modules secured with MFA?
Replies: 4
Views: 2237

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...
by ITEngineer
Tue Nov 26, 2019 1:48 am
Forum: Windows PowerShell
Topic: Executing Powershell for Exchange Online and MSOnline modules secured with MFA?
Replies: 4
Views: 2237

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

I need some help and suggestion in how to run the Powershell for Exchange Online and MSOnline modules when the Admin account is secured with MFA via my phone? If (-not (Get-Module MSOnline) ) { Write-Host "No Microsoft Online PowerShell module installed" -WarningAction Try { Install-Module MSOnline ...
by ITEngineer
Sun Nov 24, 2019 10:25 pm
Forum: Windows PowerShell
Topic: Importing .CSV showing many NULL character?
Replies: 3
Views: 2041

Re: Importing .CSV showing many NULL character?

It is in Unicode and NP++ is not reading it correctly. This has nothing to do with scripting or PowerShell. If the BOM is missing then this can happen. You can try to read it correctly with "Get-Content" and specify "Unicode" as the encoding. You sir are correct :-) that is what has been missing so...
by ITEngineer
Sun Nov 24, 2019 9:41 pm
Forum: Windows PowerShell
Topic: Importing .CSV showing many NULL character?
Replies: 3
Views: 2041

Importing .CSV showing many NULL character?

People, I have just downloaded the .CSV from Office 365 with the content of Message Transport logs. However, the Notepad++ showing it as NULL typed content as per below screenshot: https://i.imgur.com/VUAEVvV.png How to correctly import this file so I can use it against the Powershell script correct...