Skip to content

Commit 67f6824

Browse files
committed
Adds a new Clear-FullSyncWarning cmdlet
1 parent 957c56b commit 67f6824

File tree

6 files changed

+69
-6
lines changed

6 files changed

+69
-6
lines changed

src/Lithnet.Miiserver.Automation.Setup/Product.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Product Id="*"
55
Name="Lithnet FIM/MIM Synchronization Service PowerShell Module"
66
Language="1033"
7-
Version="1.0.5980"
7+
Version="1.0.6005"
88
Manufacturer="Lithnet"
99
UpgradeCode="4F84B139-DDA7-4234-A698-934450462DB3">
1010
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Management.Automation;
6+
using Lithnet.Miiserver.Client;
7+
8+
namespace Lithnet.Miiserver.Automation
9+
{
10+
[Cmdlet(VerbsCommon.Clear, "FullSyncWarning")]
11+
public class ClearFullSyncWarning : MATargetCmdlet
12+
{
13+
protected override void ProcessRecord()
14+
{
15+
this.MAInstance.SuppressFullSyncWarning();
16+
}
17+
}
18+
}

src/Lithnet.Miiserver.Automation/Lithnet.Miiserver.Automation.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
<Prefer32Bit>false</Prefer32Bit>
3636
</PropertyGroup>
3737
<ItemGroup>
38-
<Reference Include="Lithnet.Miiserver.Client, Version=1.0.5980.21339, Culture=neutral, processorArchitecture=MSIL">
39-
<HintPath>..\packages\Lithnet.Miiserver.Client.1.0.5980.21339\lib\net45\Lithnet.Miiserver.Client.dll</HintPath>
38+
<Reference Include="Lithnet.Miiserver.Client, Version=1.0.6004.24563, Culture=neutral, processorArchitecture=MSIL">
39+
<HintPath>..\packages\Lithnet.Miiserver.Client.1.0.6004.24563\lib\net45\Lithnet.Miiserver.Client.dll</HintPath>
4040
<Private>True</Private>
4141
</Reference>
4242
<Reference Include="System" />
@@ -81,6 +81,7 @@
8181
<Compile Include="Get-Disconnectors.cs" />
8282
<Compile Include="MAWaitingCmdlet.cs" />
8383
<Compile Include="Join-CSObject.cs" />
84+
<Compile Include="Clear-FullSyncWarning.cs" />
8485
<Compile Include="Wait-ManagementAgent.cs" />
8586
<Compile Include="Sync-CSObject.cs" />
8687
<Compile Include="Export-ManagementAgent.cs" />

src/Lithnet.Miiserver.Automation/LithnetMIISAutomation.Help.pshproj

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<ModuleObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" fVersion="1.1" type="Manifest" mclass="Module" useSupports="false">
33
<Name>LithnetMIISAutomation</Name>
4-
<Version>1.0</Version>
4+
<Version>1.0.6005</Version>
55
<Description>Lithnet PowerShell Module for FIM Synchronization Service</Description>
66
<HasManifest>true</HasManifest>
77
<Provider>
@@ -2665,5 +2665,49 @@ foreach($item in $items)
26652665
<SupportInformation ad="false" rsat="false" ps2="false" ps3="false" ps4="false" ps5="false" wxp="false" wv="false" w7="false" w8="false" w81="false" w2k3s="false" w2k3e="false" w2k3d="false" w2k8s="false" w2k8e="false" w2k8d="false" w2k8r2s="false" w2k8r2e="false" w2k8r2d="false" w2k12s="false" w2k12d="false" w2k12r2s="false" w2k12r2d="false" />
26662666
<Publish>false</Publish>
26672667
</CmdletObject>
2668+
<CmdletObject verb="Clear" noun="FullSyncWarning">
2669+
<Name>Clear-FullSyncWarning</Name>
2670+
<GeneralHelp>
2671+
<Synopsis>Suppresses the 'full synchronization required' message for a management agent
2672+
</Synopsis>
2673+
<Description>Suppresses the warning message logged in the event log and shown in the UI that indicates the configuration has changed and a full sync should be run.</Description>
2674+
<Notes />
2675+
<InputType />
2676+
<InputUrl />
2677+
<InputTypeDescription />
2678+
<ReturnType />
2679+
<ReturnUrl />
2680+
<ReturnTypeDescription />
2681+
</GeneralHelp>
2682+
<ParamSets>
2683+
<CommandParameterSetInfo2 Name="__AllParameterSets" Params="MA Verbose Debug ErrorAction WarningAction ErrorVariable WarningVariable OutVariable OutBuffer PipelineVariable" />
2684+
</ParamSets>
2685+
<Syntax>
2686+
<string>Clear-FullSyncWarning [-MA] &lt;String&gt;</string>
2687+
</Syntax>
2688+
<Parameters>
2689+
<ParameterDescription type="String" varLen="false" required="true" dynamic="false" pipeRemaining="false" pipe="false" pipeProp="false" isPos="true" pos="1" globbing="false">
2690+
<Name>MA</Name>
2691+
<Attributes>
2692+
<string>System.Management.Automation.ParameterAttribute</string>
2693+
<string>System.Management.Automation.ValidateNotNullOrEmptyAttribute</string>
2694+
</Attributes>
2695+
<Aliases />
2696+
<Description>The name of the management agent</Description>
2697+
<DefaultValue />
2698+
</ParameterDescription>
2699+
</Parameters>
2700+
<Examples>
2701+
<Example>
2702+
<Name>Suppress the warning on a management agent</Name>
2703+
<Cmd>Clear-FullSyncWarning -MA ADMA</Cmd>
2704+
<Description />
2705+
<Output />
2706+
</Example>
2707+
</Examples>
2708+
<RelatedLinks />
2709+
<SupportInformation ad="false" rsat="false" ps2="false" ps3="false" ps4="false" ps5="false" wxp="false" wv="false" w7="false" w8="false" w81="false" w2k3s="false" w2k3e="false" w2k3d="false" w2k8s="false" w2k8e="false" w2k8d="false" w2k8r2s="false" w2k8r2e="false" w2k8r2d="false" w2k12s="false" w2k12d="false" w2k12r2s="false" w2k12r2d="false" />
2710+
<Publish>false</Publish>
2711+
</CmdletObject>
26682712
</Cmdlets>
26692713
</ModuleObject>

src/Lithnet.Miiserver.Automation/LithnetMiisAutomation.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@{
1010

1111
# Version number of this module.
12-
ModuleVersion = '1.0.5980'
12+
ModuleVersion = '1.0.6005'
1313

1414
# ID used to uniquely identify this module
1515
GUID = '0b36101d-43c9-41c6-b9d2-7209623829a3'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Lithnet.Miiserver.Client" version="1.0.5980.21339" targetFramework="net45" />
3+
<package id="Lithnet.Miiserver.Client" version="1.0.6004.24563" targetFramework="net45" />
44
</packages>

0 commit comments

Comments
 (0)