IaC Practice
CtrlK
Powershell
Powershell
  • Introduction
    • History
    • Design
    • Using Powershell
    • Execution Policy
    • PowerShell Gallery
  • Install PowerShell 7
    • Visual Studio Code
    • Tests
    • Finally
  • Coding in PowerShell
    • Creating a module
    • Variables
      • Example
    • Types
    • Conditional Branching
      • if and elseif
      • Switch
    • Loops
      • For loop
      • ForEach
      • While
      • Do Until
    • Piping Commands
  • Remote Control
    • Remoting
    • Build
      • DHCP
    • Creating Users
  • Configuration at Scale
    • Desired State Configuration
    • DSC Example
    • MOF File
    • Apply the Configuration
    • Testing
    • Remove the Configuration
    • Finally
Powered by GitBook
On this page
  1. Configuration at Scale

Testing

Despite the warning, PowerShell created the folder C:\Temp and the file HelloWorld.txt To verify, run the command

Get-Content C:\Temp\HelloWorld.txt

To check the DSC Configuration Store, run the command

Get-DscConfiguration
PreviousApply the ConfigurationNextRemove the Configuration

Last updated 1 year ago