Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Working with registry information

$
0
0

Hi, All

Because I'm exhausted (we're coming out the other end of a full Office 365 migration just 2 days ago!), I'm reaching out to you for help with a powershell script I need to write...

This is to add a reg entry, but while I'm slowly getting to grips with powershell, I've not had to do anything with registry entries yet.

So, first thing I need to do is figure out if they are running Office 2010 or 2013... This should be used to populate the '$Ver' variable (Can I use something like?:

Powershell
$Ver=Start-Job-ScriptBlock{Get-ChildItemHKLM:\SOFTWARE\Microsoft\office\1[4-5]\}

Next, I want to create a new registry key, called:

$Ver\Outlook\Autodiscover

Except I don't know how to create new keys in Powershell?

Finally, under that key, I want to create a DWORD entry, that reads:

ExcludeScpLookup

With a value of 1.

I started to write it... and...


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>