powershell-config | Powershell Configuration | Command Line Interface library
kandi X-RAY | powershell-config Summary
kandi X-RAY | powershell-config Summary
A humble PowerShell configuration.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of powershell-config
powershell-config Key Features
powershell-config Examples and Code Snippets
Community Discussions
Trending Discussions on powershell-config
QUESTION
Let's say I run:
Get-CMDeployment -CollectionName "gar25*" | select CollectionName, ApplicationName, PackageID, DeploymentTime, EnforcementDeadline | out-gridview
This gives me all the info I need on multiple deployments associated to a user, but the value "EnforcementDeadline" is blank, which i'm guessing is a lazy property. How would I retrieve it? I have found this article:
but i'm really struggling to adapt the code.
Thanks a lot for your time.
...ANSWER
Answered 2017-Nov-23 at 13:03EnforcementDeadline
is a property for application deployments. You're trying to read it from a package deployment where it doesn't exist because they can have multiple assigned schedules which can be both one time or recurring (ex. daily). If you use Get-CMApplicationDeployment
and Get-CMPackageDeployment
you will get the right type of objects so you can access the values.
I've included a sample that will detect if the deployment is for a package and retrieve the StartTime
-values for it's schedules (I assume they are non-reccuring).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install powershell-config
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page