It would seem that the default install of Jenkins uses SystemService but PSDesiredStateConfiguration is not avalible as SystemService.
As SystemService
Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 1.0.0.0 ActiveDirectory {Add-ADCentralAcce... Manifest 2.0.0.0 AppLocker {Get-AppLockerFile... Manifest 2.0.0.0 Appx {Add-AppxPackage, ... Manifest 1.0.0.0 BitsTransfer {Add-BitsFile, Com... Manifest 1.0.0.0 BranchCache {Add-BCDataCacheEx... Manifest 1.0.0.0 CimCmdlets {Get-CimAssociated... Manifest 2.0.0.0 DhcpServer {Add-DhcpServerInD... Manifest 1.0.0.0 DirectAccessClientComponents {Disable-DAManualE... Script 3.0 Dism {Add-AppxProvision... Manifest 1.0.0.0 DnsClient {Resolve-DnsName, ... Manifest 2.0.0.0 DnsServer {Add-DnsServerCond... Manifest 1.0.0.0 GroupPolicy {Backup-GPO, Block... Binary 1.1 Hyper-V {Add-VMDvdDrive, A... Manifest 2.0.0.0 International {Get-WinDefaultInp... Manifest 2.0.0.0 IpamServer {Get-IpamDhcpConfi... Manifest 1.0.0.0 iSCSI {Get-IscsiTargetPo... Manifest 2.0.0.0 IscsiTarget {Add-ClusteriSCSIT... Script 1.0.0.0 ISE {New-IseSnippet, I... Manifest 1.0.0.0 Kds {Add-KdsRootKey, G... Manifest 3.0.0.0 Microsoft.PowerShell.Diagnostics {Get-WinEvent, Get... Manifest 3.0.0.0 Microsoft.PowerShell.Host {Start-Transcript,... Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Content, Clea... Manifest 3.0.0.0 Microsoft.PowerShell.Security {Get-Acl, Set-Acl,... Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Format-List, Form... Manifest 3.0.0.0 Microsoft.WSMan.Management {Disable-WSManCred... Manifest 1.0.0.0 MsDtc {New-DtcDiagnostic... Manifest 2.0.0.0 NetAdapter {Disable-NetAdapte... Manifest 1.0.0.0 NetConnection {Get-NetConnection... Manifest 2.0.0.0 NetLbfo {Add-NetLbfoTeamMe... Manifest 1.0.0.0 NetNat {Get-NetNat, Get-N... Manifest 2.0.0.0 NetQos {Get-NetQosPolicy,... Manifest 2.0.0.0 NetSecurity {Get-DAPolicyChang... Manifest 1.0.0.0 NetSwitchTeam {New-NetSwitchTeam... Manifest 1.0.0.0 NetTCPIP {Get-NetIPAddress,... Manifest 1.0.0.0 NetWNV {Get-NetVirtualiza... Manifest 1.0.0.0 NetworkConnectivityStatus {Get-DAConnectionS... Manifest 1.0.0.0 NetworkTransition {Add-NetIPHttpsCer... Manifest 1.0.0.0 PKI {Add-CertificateEn... Manifest 1.1 PrintManagement {Add-Printer, Add-... Script 1.0.0.0 PSDiagnostics {Disable-PSTrace, ... Binary 1.1.0.0 PSScheduledJob {New-JobTrigger, A... Manifest 2.0.0.0 RemoteAccess {Add-DAAppServer, ... Manifest 1.0.0.0 ScheduledTasks {Get-ScheduledTask... Manifest 2.0.0.0 SecureBoot {Confirm-SecureBoo... Manifest 2.0.0.0 Storage {Add-InitiatorIdTo... Manifest 2.0.0.0 TLS {New-TlsSessionTic... Manifest 1.0.0.0 TroubleshootingPack {Get-Troubleshooti... Manifest 2.0.0.0 TrustedPlatformModule {Get-Tpm, Initiali... Manifest 2.0.0.0 UpdateServices {Add-WsusComputer,... Manifest 2.0.0.0 VpnClient {Add-VpnConnection... Manifest 1.0.0.0 Wdac {Get-OdbcDriver, S... Manifest 1.0.0.0 WindowsDeveloperLicense {Get-WindowsDevelo... Script 1.0 WindowsErrorReporting {Enable-WindowsErr...
As local administrator
Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 1.0.0.0 ActiveDirectory {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount,... Manifest 1.0.0.0 AppBackgroundTask {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTa... Manifest 2.0.0.0 AppLocker {Get-AppLockerFileInformation, Get-AppLockerPolicy, New-AppLock... Manifest 2.0.0.0 Appx {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Rem... Script 1.0.0.0 AssignedAccess {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess} Manifest 1.0 BestPractices {Get-BpaModel, Get-BpaResult, Invoke-BpaModel, Set-BpaResult} Manifest 1.0.0.0 BitLocker {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-... Manifest 1.0.0.0 BitsTransfer {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-... Manifest 1.0.0.0 BranchCache {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-B... Manifest 1.0.0.0 CimCmdlets {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-... Binary 2.0.0.0 ClusterAwareUpdating {Get-CauPlugin, Register-CauPlugin, Unregister-CauPlugin, Invok... Manifest 1.0 Defender {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-M... Manifest 1.0 DFSN {Get-DfsnRoot, Remove-DfsnRoot, Set-DfsnRoot, New-DfsnRoot...} Binary 1.0 DFSR {New-DfsReplicationGroup, Get-DfsReplicationGroup, Set-DfsRepli... Manifest 2.0.0.0 DhcpServer {Add-DhcpServerInDC, Add-DhcpServerv4Class, Add-DhcpServerv4Exc... Manifest 1.0.0.0 DirectAccessClientComponents {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPoint... Script 3.0 Dism {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsImag... Manifest 1.0.0.0 DnsClient {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsC... Manifest 2.0.0.0 DnsServer {Add-DnsServerConditionalForwarderZone, Add-DnsServerDirectoryP... Manifest 2.0.0.0 FailoverClusters {Add-ClusterCheckpoint, Add-ClusterDisk, Add-ClusterFileServerR... Manifest 1.0.0.0 GroupPolicy {Backup-GPO, Block-GPInheritance, Copy-GPO, Get-GPInheritance...} Binary 1.1 Hyper-V {Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMHardDiskDrive, Ad... Manifest 2.0.0.0 International {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOv... Manifest 2.0.0.0 IpamServer {Get-IpamDhcpConfigurationEvent, Remove-IpamDhcpConfigurationEv... Manifest 1.0.0.0 iSCSI {Get-IscsiTargetPortal, New-IscsiTargetPortal, Remove-IscsiTarg... Manifest 2.0.0.0 IscsiTarget {Add-ClusteriSCSITargetServerRole, Add-IscsiVirtualDiskTargetMa... Script 1.0.0.0 ISE {New-IseSnippet, Import-IseSnippet, Get-IseSnippet} Manifest 1.0.0.0 Kds {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfig... Manifest 3.0.0.0 Microsoft.PowerShell.Diagnostics {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...} Manifest 3.0.0.0 Microsoft.PowerShell.Host {Start-Transcript, Stop-Transcript} Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...} Manifest 3.0.0.0 Microsoft.PowerShell.Security {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...} Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Format-List, Format-Custom, Format-Table, Format-Wide...} Manifest 3.0.0.0 Microsoft.WSMan.Management {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, S... Manifest 1.0 MMAgent {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent...} Manifest 1.0.0.0 MsDtc {New-DtcDiagnosticTransaction, Complete-DtcDiagnosticTransactio... Manifest 2.0.0.0 NetAdapter {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdap... Manifest 1.0.0.0 NetConnection {Get-NetConnectionProfile, Set-NetConnectionProfile} Manifest 1.0.0.0 NetEventPacketCapture {New-NetEventSession, Remove-NetEventSession, Get-NetEventSessi... Manifest 2.0.0.0 NetLbfo {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Ge... Manifest 1.0.0.0 NetNat {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping... Manifest 2.0.0.0 NetQos {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-N... Manifest 2.0.0.0 NetSecurity {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMain... Manifest 1.0.0.0 NetSwitchTeam {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Re... Manifest 1.0.0.0 NetTCPIP {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get... Manifest 1.0.0.0 NetWNV {Get-NetVirtualizationProviderAddress, Get-NetVirtualizationGlo... Manifest 1.0.0.0 NetworkConnectivityStatus {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCS... Manifest 2.0.0.0 NetworkLoadBalancingClusters {Add-NlbClusterNode, Add-NlbClusterNodeDip, Add-NlbClusterPortR... Manifest 1.0.0.0 NetworkTransition {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfigurati... Manifest 1.0 NFS {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStor... Manifest 1.0.0.0 PcsvDevice {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-Pcs... Manifest 1.0.0.0 PKI {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Exp... Manifest 1.1 PrintManagement {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConf... Binary 1.0 PSDesiredStateConfiguration {Set-DscLocalConfigurationManager, Start-DscConfiguration, Conf... Script 1.0.0.0 PSDiagnostics {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTr... Binary 1.1.0.0 PSScheduledJob {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTrig... Manifest 2.0.0.0 PSWorkflow {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn} Manifest 1.0.0.0 PSWorkflowUtility Invoke-AsWorkflow Manifest 2.0.0.0 RemoteAccess {Add-DAAppServer, Add-DAClient, Add-DAClientDnsConfiguration, A... Manifest 2.0.0.0 RemoteDesktop {Get-RDCertificate, Set-RDCertificate, New-RDCertificate, New-R... Manifest 1.0.0.0 ScheduledTasks {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, ... Manifest 2.0.0.0 SecureBoot {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI... Script 2.0.0.0 ServerManager {Get-WindowsFeature, Install-WindowsFeature, Uninstall-WindowsF... Cim 1.0.0.0 ServerManagerTasks {Get-SMCounterSample, Get-SMPerformanceCollector, Start-SMPerfo... Manifest 2.0.0.0 SmbShare {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAcc... Manifest 2.0.0.0 SmbWitness {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw...} Manifest 1.0.0.0 StartScreen {Export-StartLayout, Import-StartLayout, Get-StartApps} Manifest 2.0.0.0 Storage {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-Phys... Manifest 2.0.0.0 TLS {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-T... Manifest 1.0.0.0 TroubleshootingPack {Get-TroubleshootingPack, Invoke-TroubleshootingPack} Manifest 2.0.0.0 TrustedPlatformModule {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm...} Manifest 2.0.0.0 UpdateServices {Add-WsusComputer, Approve-WsusUpdate, Deny-WsusUpdate, Get-Wsu... Manifest 2.0.0.0 VpnClient {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Ge... Manifest 1.0.0.0 Wdac {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn...} Manifest 1.0.0.0 WindowsDeveloperLicense {Get-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseRegis... Script 1.0 WindowsErrorReporting {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, G... Manifest 1.0.0.0 WindowsSearch {Get-WindowsSearchSetting, Set-WindowsSearchSetting}