Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sccm-ts-scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
engrit-epm
sccm-ts-scripts
Commits
1faccc40
Commit
1faccc40
authored
5 years ago
by
mseng3
Browse files
Options
Downloads
Patches
Plain Diff
Wait does indeed seem to hang the script on the 7400s. Removing it again.
parent
7b891a4a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smsts-post-action.ps1
+6
-4
6 additions, 4 deletions
smsts-post-action.ps1
with
6 additions
and
4 deletions
smsts-post-action.ps1
+
6
−
4
View file @
1faccc40
...
...
@@ -170,18 +170,20 @@ if($SCCMPolicyCheck) {
log
"------------------------------------------"
log
"Request Machine Assignments - (ConfigMgr Control Panel Applet - Machine Policy Retrieval & Evaluation Cycle)"
Invoke-WMIMethod
-Namespace
root\ccm
-Class
SMS_CLIENT
-Name
TriggerSchedule
-ArgumentList
'{00000000-0000-0000-0000-000000000021}'
-Verbose
2
>
&
1
log
"Waiting 5 minutes..."
#
log "Waiting 5 minutes..."
#Start-Sleep -Seconds 300
# Start-Sleep was hanging the script indefinitely on some systems (Latitude 7400)
ping
"127.0.0.1"
-n
300
|
Out-Null
#ping "127.0.0.1" -n 300 | Out-Null
# ping-based wait is still hanging the script on the Latitude 7400s
log
"------------------------------------------"
log
"Discovery Inventory - (ConfigMgr Control Panel Applet - Discovery Data Collection Cycle)"
Invoke-WMIMethod
-Namespace
root\ccm
-Class
SMS_CLIENT
-Name
TriggerSchedule
-ArgumentList
'{00000000-0000-0000-0000-000000000003}'
-Verbose
2
>
&
1
log
"Waiting 5 minutes..."
#
log "Waiting 5 minutes..."
#Start-Sleep -Seconds 300
# Start-Sleep was hanging the script indefinitely on some systems (Latitude 7400)
ping
"127.0.0.1"
-n
300
|
Out-Null
#ping "127.0.0.1" -n 300 | Out-Null
# ping-based wait is still hanging the script on the Latitude 7400s
log
"------------------------------------------"
log
"Application Manager Policy Action - (ConfigMgr Control Panel Applet - Application Deployment Evaluation Cycle)"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment