Skip to content

Releases: guitarrapc/GraniResource

[Fix] Grani_Download Resource

29 Jun 19:47
Compare
Choose a tag to compare

Now TLS1.2 is available.

What Changed?

  • Update Grani_Download to support new TLS versions #84 (Thanks @rajbos )

How to install

Already published to PowerShell Gallery. Please use following to install latest.

Install-Module -Name GraniResource

[Added] Grani_ScriptOnOSVersion Resource

12 Mar 16:58
88ee4e9
Compare
Choose a tag to compare

Now you can handle Script execution with desired client OSVersion at run-time.

This release is specially recommended if you want to change script execution for each OSVersion.

What Changed?

  • [Added] Grani_ScriptOnOSVersion (cScriptOnOSVersion) resource. : #82
  • [Changed] Pester Tests project root is now changed from "Test" to "Tests".

How to install

Already published to PowerShell Gallery. Please use following to install latest.

Install-Module -Name GraniResource

Why Grani_ScriptOnOSVersion needed?

#83

Sample Usage

https://github.com/guitarrapc/GraniResource/blob/e7cf497fe0960b65ac64e426da02629215ce0ce3/DSCResources/Grani_ScriptOnOSVersion/README.md#sample

[Fix] cDotnetFramework broken issue

26 Feb 14:40
Compare
Choose a tag to compare
  1. Fixed cDotnetFramework. this happens with VSCode format code functionality with inline comment.

#80

How to install

Already published to PowerShell Gallery. Please use following to install 3.7.9.1 or latest.

Install-Module -Name GraniResource

[Add] Region support for cS3Content

14 Feb 07:06
Compare
Choose a tag to compare
  1. Add Region property to override cS3Content

#77

  1. Add Pester Unit Test to check regions.

How to install

Already published to PowerShell Gallery. Please use following to install 3.7.9.0 or latest.

Install-Module -Name GraniResource

[Fixed] fix cScheduledTask Win2012 R2 and lower issue

04 Jun 19:22
Compare
Choose a tag to compare
  1. Bug fix for Trigger issue happen since ver.3.7.8.3 (thanks to @Zuldan)

Defail : #73

  1. Fix Pester Unit Test for cScheduleTask

How to install

Already published to PowerShell Gallery. Please use following to install 3.7.8.4 or latest.

Install-Module -Name GraniResource

[Fixed] fix cScheduledTask Win2016 issue and Test-DscConfiguration Error

26 May 20:27
Compare
Choose a tag to compare
  1. bug fix for Windows Server 2016 with new limitation with Repetition Duration.

Detail : #71

  1. Fix Sporadic error after "Test-DscConfiguration"

This kind of error may happen because I did not add namespace for enums. Please make an issue if you experience this kind of issue.

Detail : #69

How to install

Already published to PowerShell Gallery. Please use following to install 3.7.8.3 or latest.

Install-Module -Name GraniResource

[Fixed] fix Fazzy Matching for cS3Content Get/Test.

17 Apr 06:26
Compare
Choose a tag to compare

Small bug for edge case.

Detail : #68

How to install

Already published to PowerShell Gallery. Please use following to install 3.6.8.2 or latest.

Install-Module -Name GraniResource

[Fixed] Grani_CredentialManager.schema.mof was missing

30 Jul 11:44
Compare
Choose a tag to compare

small bug fix

How to install

Already published to PowerShell Gallery. Please use following to install 3.6.8.1 or latest.

Install-Module -Name GraniResource

[BreakingChange]cCredentialManager Resource now support Same Target, Credential for Multiple Accounts

30 Jul 07:40
Compare
Choose a tag to compare

Now you can manage same Credential Manager entry for Multiple User account by PsDscRunAsCredential.

What Changed?

  • [Enhanced] Grani_CredentialManager (cCredentialManager) resource to support same target for multiple account. : #65 (PR : #64 )
  • [BreakingChange] Grani_CrednetialManager (cCredentialManager) introduce new Key property InstanceIdentifier and previous key Target is changed to Required. InstanceIdentifier is just an name to guarantee uniqueness of each resource and never effects to Cred Manager registration.

How to install

Already published to PowerShell Gallery. Please use following to install 3.6.8.0 or latest.

Install-Module -Name GraniResource

Sample Usage

  • Add same entry to both SYSTEM and Administrator.
configuration Present_MultpleSameTarget
{
    Import-DscResource -Modulename GraniResource
    Node localhost
    {
        cCredentialManager System
        {
            InstanceIdentifier = "Sytem"
            Ensure = $Node.Ensure
            Target = $Node.Target
            Credential = $Node.Credential
        }

        cCredentialManager User
        {
            InstanceIdentifier = "User"
            Ensure = $Node.Ensure
            Target = $Node.Target
            Credential = $Node.Credential
            PsDscRunAsCredential = $Node.PsDscRunAsCredential
        }
    }
}

$configurationData = @{
    AllNodes = @(
        @{
            NodeName = "localhost"
            PSDscAllowPlainTextPassword = $true
            Ensure = "Present"
            Target = "DesiredTargetName"
            Credential = New-Object PSCredential ("PesterTestDummy", ("PesterTestPassword" | ConvertTo-SecureString -Force -AsPlainText))
            PsDscRunAsCredential = New-Object PSCredential ("administrator", ("SuperExcellntPassword____????1111" | ConvertTo-SecureString -Force -AsPlainText))
        }
    )
}

Present_MultpleSameTarget -ConfigurationData $configurationData

[Added]cCredentialManager Resource

28 Jul 19:33
Compare
Choose a tag to compare

Now you can manage Credential Manager entry with PowerShell DSC.

This release is specially recommended to use WMF5 or higher version.

What Changed?

  • [Added] Grani_CredentialManager (cCredentialManager) resource. : #63 (PR : #64)
  • [Fixed] Cannot get ScheduleTask configuration : #62 thx @spawluk

How to install

Already published to PowerShell Gallery. Please use following to install latest.

Install-Module -Name GraniResource

Why cCredentialManager needed?

Windows have Credential Manager to manage user specific credential with highly encrepted, imagine Key Chain in Mac OSX. This feature is highly used for many application, like Git for Windows, Adobe, MicrosoftOffice, OneDrive and others.

However it's pretty hard to manage Credential Entry because sometimes entry will be disappear after reboot, or unexpectedly overwritten required credential by other application.

This resource will allow you manage and strongly keep credential entry with PowerShell DSC.

Sample Usage

  • Add entry as DemoEntry with Credential for user Administrator. You can control credential manager's user by passing user's login credential to PsDscRunAsCredential Property.
configuration Present_PsDscRunAsCredential
{
    Import-DscResource -Modulename GraniResource
    Node localhost
    {
        cCredentialManager Present
        {
            Ensure = $Node.Ensure
            Target = $Node.Target
            Credential = $Node.Credential
            PsDscRunAsCredential = $Node.PsDscRunAsCredential
        }
    }
}

$configurationData = @{
    AllNodes = @(
        @{
            NodeName = "localhost"
            PSDscAllowPlainTextPassword = $true
            Ensure = "Present"
            Target = "DemoEntry"
            Credential = New-Object PSCredential ("PesterTestDummy", ("PesterTestPassword" | ConvertTo-SecureString -Force -AsPlainText))
            PsDscRunAsCredential = New-Object PSCredential ("administrator", ("SuperExcellntPassword____????1111" | ConvertTo-SecureString -Force -AsPlainText))
        }
    )
}

Present_PsDscRunAsCredential -ConfigurationData $configurationData