rename and move to subfolder
This commit is contained in:
parent
7ac7bbf1a0
commit
51638f3752
34
windows/outlook/enable-meeting-copy.ps1
Normal file
34
windows/outlook/enable-meeting-copy.ps1
Normal file
@ -0,0 +1,34 @@
|
||||
$ErrorActionPreference = "Continue"
|
||||
try {
|
||||
$checkIfExist = New-ItemProperty HKCU:\Software\Microsoft\Office\16.0\Outlook\Options\Calendar\ EnableMeetingCopy -ErrorAction "Stop"
|
||||
echo "Return value of New property:" $chekIfExist
|
||||
}
|
||||
catch {
|
||||
echo "Property already exist check value"
|
||||
$ret = Get-ItemPropertyValue HKCU:\Software\Microsoft\Office\16.0\Outlook\Options\Calendar\ EnableMeetingCopy
|
||||
echo $ret
|
||||
if($ret -eq 1)
|
||||
{
|
||||
echo "[NOCHANGE]setting is correct"
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Attempt to write registry to 1..."
|
||||
Set-ItemProperty HKCU:\Software\Microsoft\Office\16.0\Outlook\Options\Calendar\ EnableMeetingCopy 1
|
||||
echo "check for result..."
|
||||
$ret2 = Get-ItemProperyValue HKCU:\Software\Microsoft\Office\16.0\Outlook\Options\Calendar\ EnableMeetingCopy
|
||||
if($ret2 == 1)
|
||||
{
|
||||
echo "success value set, restart outlook"
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "[error] could not set or invalid value returned"
|
||||
echo $ret2
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
echo "done"
|
Loading…
x
Reference in New Issue
Block a user