Search found 216 matches

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

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: PowerShell
Topic: Unable to query remote registry using PowerShell script
Replies: 12
Views: 4162

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: PowerShell
Topic: Unable to query remote registry using PowerShell script
Replies: 12
Views: 4162

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: PowerShell
Topic: Unable to query remote registry using PowerShell script
Replies: 12
Views: 4162

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-O...
by ITEngineer
Wed Aug 08, 2018 3:56 pm
Forum: PowerShell
Topic: How to get the value of currently installed MS Word version using PowerShell?
Replies: 3
Views: 1777

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: PowerShell
Topic: How to get the value of currently installed MS Word version using PowerShell?
Replies: 3
Views: 1777

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: PowerShell
Topic: Execute Exchange Server 2013 Powershell remotely as Scheduled task in server with no Exchange Management Shell installed
Replies: 1
Views: 1185

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: PowerShell
Topic: SMTP-Addresses Exchange
Replies: 9
Views: 3270

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={$_.Em...
by ITEngineer
Wed Jul 25, 2018 5:20 pm
Forum: PowerShell
Topic: SMTP-Addresses Exchange
Replies: 9
Views: 3270

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, ...
by ITEngineer
Wed Jul 25, 2018 12:39 am
Forum: PowerShell
Topic: Executing Exchange PowerShell command in multiple servers and send the result to email?
Replies: 1
Views: 1327

Executing Exchange PowerShell command in multiple servers and send the result to email?

How can this code below modified so it can be run or executed for all Exchange servers rather than the current run session only? $session = New-PSSession -Configurationname Microsoft.Exchange -ConnectionURI http://PRDMAIL01-VM/PowerShell/ -Authentication Kerberos [void] (Import-PSSession $session -A...