Search found 187 matches

by ITEngineer
Wed Aug 08, 2018 11:52 pm
Forum: Windows PowerShell
Topic: Unable to query remote registry using PowerShell script
Replies: 12
Views: 1627

Re: Unable to query remote registry using PowerShell script

You cannot use the DN for most commands. Test-Connection cannot use the DN. The registry cannot use the DN. OK, I have now updated the script with $_.Name , somehow I got this error: Else : The term 'Else' is not recognized as the name of a cmdlet, function, script file, or operable program. Check ...
by ITEngineer
Wed Aug 08, 2018 11:13 pm
Forum: Windows PowerShell
Topic: Unable to query remote registry using PowerShell script
Replies: 12
Views: 1627

Re: Unable to query remote registry using PowerShell script

What is the output from this line? Write-Host "Processing $($_) ..." The Distinguished name of the laptops: Processing CN=WS001234,OU=Laptop Users,DC=MyDomain,DC=com ... Processing CN=WS003454,OU=Laptop Users,DC=MyDomain,DC=com ... Processing CN=WS004241,OU=Laptop Users,DC=MyDomain,DC=com ... ....
by ITEngineer
Wed Aug 08, 2018 10:07 pm
Forum: Windows PowerShell
Topic: Unable to query remote registry using PowerShell script
Replies: 12
Views: 1627

Re: Unable to query remote registry using PowerShell script

jvierra wrote:
Wed Aug 08, 2018 10:03 pm
You need to fix it everywhere.

Run in the debugger and check all lines to see your mistakes.
There is no error in compiling the script, but somehow the result is not shown.
I need some help hence I post in this forum :cry:
by ITEngineer
Wed Aug 08, 2018 8:46 pm
Forum: Windows PowerShell
Topic: Unable to query remote registry using PowerShell script
Replies: 12
Views: 1627

Re: Unable to query remote registry using PowerShell script

jvierra wrote:
Wed Aug 08, 2018 7:22 pm
In your code "$_" is an object and not a name.
OK, I have amended into $result.ComputerName = $_.Name

However, the result is still blank?
by ITEngineer
Wed Aug 08, 2018 6:57 pm
Forum: Windows PowerShell
Topic: Unable to query remote registry using PowerShell script
Replies: 12
Views: 1627

Unable to query remote registry using PowerShell script

People, I need some help in fixing the below PowerShell script to collect the MS Word version in the few select PC in certain OU: Get-ADComputer -Filter {Enabled -eq $True} -SearchBase "OU=Laptop Users,DC=MyDomain,DC=com" | Where-Object {Test-Connection $_.Name -Count 1 -Quiet} | ForEach-Object { Wr...
by ITEngineer
Wed Aug 08, 2018 3:56 pm
Forum: Windows PowerShell
Topic: How to get the value of currently installed MS Word version using PowerShell?
Replies: 3
Views: 767

Re: How to get the value of currently installed MS Word version using PowerShell?

jvierra wrote:
Wed Aug 08, 2018 4:34 am
(Get-ItemProperty HKLM:Software\Classes\Word.Application\CurVer).'(default)'
Cool, many thanks for the assistance in this matter Mr. Vierra. :D
by ITEngineer
Wed Aug 08, 2018 12:34 am
Forum: Windows PowerShell
Topic: How to get the value of currently installed MS Word version using PowerShell?
Replies: 3
Views: 767

How to get the value of currently installed MS Word version using PowerShell?

Hi People, I tried to get the value of the registry entry Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.Application\CurVer (Default) with this command: Get-ItemProperty -Path 'HKLM:Software\Classes\Word.Application\CurVer'.(default) But not sure how to get the returned value? (default) : Word.Ap...
by ITEngineer
Sun Aug 05, 2018 7:02 am
Forum: Windows PowerShell
Topic: Execute Exchange Server 2013 Powershell remotely as Scheduled task in server with no Exchange Management Shell installed
Replies: 1
Views: 505

Execute Exchange Server 2013 Powershell remotely as Scheduled task in server with no Exchange Management Shell installed

Hi People, As per this KB article, it is not working since my Exchange server is 2013: https://support.microsoft.com/en-au/help/2928514/free-busy-lookups-stop-working-in-a-cross-premises-environment-or-in-a Can anyone here please share some tips and the steps to execute the below one line of PowerSh...
by ITEngineer
Thu Jul 26, 2018 7:21 am
Forum: Windows PowerShell
Topic: SMTP-Addresses Exchange
Replies: 9
Views: 1357

Re: SMTP-Addresses Exchange

Yes it's possible. But i dont know which code you use... If you use my last posted code you will recive the EmailAddresses with "," separated instand of "|" Use this: Get-Mailbox $selectedUser.SamAccountName | select PrimarySmtpAddress, @{Name='EmailAddresses'; Expression={$_.EmailAddresses.Where({...
by ITEngineer
Wed Jul 25, 2018 5:20 pm
Forum: Windows PowerShell
Topic: SMTP-Addresses Exchange
Replies: 9
Views: 1357

Re: SMTP-Addresses Exchange

Thanks for posting such great script :)
So is it possible to put comma "," in the EmailAddresses column result?

EmailAddresses
Email1@domain.com, Email2@domain.com, Email3@domain.com, ...