Search found 167 matches

by ITEngineer
Wed Jun 06, 2018 5:54 pm
Forum: Windows PowerShell
Topic: Exchange PowerShell Unable to export list to CSV ?
Replies: 15
Views: 1853

Re: Exchange PowerShell Unable to export list to CSV ?

Then add one line at a time until you have found the issue. Time to learn how to debug a script … eh? Yes, I ahve removed the line Export-CSV $resultFile -NoTypeInformation from the original script and the result is displayed on the console. But how to export it to the respective .CSV file ? hence ...
by ITEngineer
Wed Jun 06, 2018 5:29 pm
Forum: Windows PowerShell
Topic: Exchange PowerShell Unable to export list to CSV ?
Replies: 15
Views: 1853

Re: Exchange PowerShell Unable to export list to CSV ?

Run as follows to be sure you are getting any results. foreach ($email in (Import-Csv $inputFile)) { Write-host "Email address: $($email.email)" Get-TransportService | ForEach-Object { Get-Messagetrackinglog -Server $_.Name @trackparams -Recipients $email.email } } Yes, Mr. Vierra, I got lots of co...
by ITEngineer
Wed Jun 06, 2018 5:11 pm
Forum: Windows PowerShell
Topic: Exchange PowerShell Unable to export list to CSV ?
Replies: 15
Views: 1853

Exchange PowerShell Unable to export list to CSV ?

Hi, I have modified this script to take multiple inputs from trackingemail.csv to count the statistics for the external email that was delivered in the past 1 day. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://PRODMAIL01-VM/PowerShell/ -Authentication Kerberos ...
by ITEngineer
Mon Jun 04, 2018 4:08 am
Forum: Windows PowerShell
Topic: Exporting the Get-EventLog to .CSV ?
Replies: 3
Views: 1112

Re: Exporting the Get-EventLog to .CSV ?

Start with:' ]b]help Get-WinEvent -online[/b] Read the Examples very carefully. OK, I then come up with the below modified script: Get-ADComputer -LDAPFilter "(&(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=8192))" | ForEach-Object { "Processing $($_.DNSHostName) ..." | Write...
by ITEngineer
Mon Jun 04, 2018 12:41 am
Forum: Windows PowerShell
Topic: Exporting the Get-EventLog to .CSV ?
Replies: 3
Views: 1112

Exporting the Get-EventLog to .CSV ?

People, I need some assistance here to modify the below PowerShell script to pull some information from the Security EventLog ID 4624, 4625, 4723 and 4724... using the below PowerShell script: Get-ADComputer -LDAPFilter "(&(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=8192))" ...
by ITEngineer
Wed May 30, 2018 1:46 am
Forum: Windows PowerShell
Topic: Exporting the ResolveDNS to CSV ?
Replies: 5
Views: 1058

Re: Exporting the ResolveDNS to CSV ?

Is this what you are trying to ask? $fqdn = 'bing.com' Resolve-DnsName -Name $fqdn -Type NS -DnsOnl| Where{$_.Address} | select @{n='DomainName';e={$fqdn}},@{n='PublicIP';e={$_.IpAddress}},@{n='DNSServer';e={$_.Name}} Yes, exactly, so the input will be the CSV file containing 55 domains.
by ITEngineer
Tue May 29, 2018 10:02 pm
Forum: Windows PowerShell
Topic: Exporting the ResolveDNS to CSV ?
Replies: 5
Views: 1058

Re: Exporting the ResolveDNS to CSV ?

Yes, that does make sense guys.

I will try to create the object and repost here if I need some scripting help again.

Thanks,
by ITEngineer
Tue May 29, 2018 6:28 am
Forum: Windows PowerShell
Topic: Exporting the ResolveDNS to CSV ?
Replies: 5
Views: 1058

Exporting the ResolveDNS to CSV ?

Resolve-DNS-Export.PS1 Hi All, Based on the built-in PowerShell command Resolve-DnsName -Name bing.com -Type NS -DnsOnl I need some help in fixing or modifying my PowerShell script below to perform: 1. Get the public IP address of the domain names in the .TXT file (or .CSV) 2. Get the DNS server re...
by ITEngineer
Mon May 28, 2018 12:15 am
Forum: Windows PowerShell
Topic: Need some help in debugging the PowerShell code to set email signature ?
Replies: 8
Views: 1171

Re: Need some help in debugging the PowerShell code to set email signature ?

Mr. Vierra,

Yes, that does make sense.
Thanks for the sharing and the reply on this thread, I appreciate it muchly. :)
by ITEngineer
Fri May 25, 2018 8:30 am
Forum: Windows PowerShell
Topic: Need some help in debugging the PowerShell code to set email signature ?
Replies: 8
Views: 1171

Re: Need some help in debugging the PowerShell code to set email signature ?

When posting large bits of code please post as an attached file. I have given you the correct answer for this task twice now. Why do you keep going back to the old Office method that was never correct to begin with? the attached method is working except that little annoying bit which display the em...