Notification

Icon
Error

Solid State Disk Detector - Script that reads MSFT_PhysicalDisk class MediaType

Posted: Tuesday, May 3, 2016 1:16:44 PM(UTC)
ict-user

ict-user

Member Original PosterPosts: 38
0
Like
1. Deployment checks for the needed powershell script.

2.The deployment tries to remove old ssd.txt file that are writen before.

3.The PowerShell Scripts tries to read the WMI class MediaType
See MSFT_PhysicalDisk class:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh830532(v=vs.85).aspx
The scripts writes a file ssd.txt to the c:\ drive if it finds a mediatype=4 (SSD)

After the deployment the assets are rescanned.
After the rescan you can create a report with the file scanning option in the scanning menu.

Handles attachments
SSDScan.zip (1kb) downloaded 345 time(s).
Script - Detect SSDDownload Package
DescriptionDetects SSD with Mediatype=4

See MSFT_PhysicalDisk class:

https://msdn.microsoft.com/en-us/library/windows/desktop/hh830532(v=vs.85).aspx
Final ActionNothing
Max. Duration30 min(s), 0 hour(s)
RescanYes
Steps
1. Check for script
TypeCondition
SuccessGo To Step 2
FailureStop (Failure)
Conditions
File {PackageShare}\Scripts SSDScan.ps1 Exists
2. Remove SSD.txt
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Step 3
FailureGo To Step 3
Command del c:\ssd.txt
3. Call script
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command powershell -executionpolicy bypass -File "{PackageShare}\Scripts\SSDScan.ps1"
lmf
#1lmf Member Posts: 7  
posted: 9/29/2016 3:10:45 AM(UTC)
Please note that this (specifically the provider) is not available before Windows 8 or Windows Server 2012. May want to update the OP.

See: https://msdn.microsoft.com/en-us/library/windows/desktop/hh830613(v=vs.85).aspx

Active Discussions

Lansweeper Laptop warranty include users from active directory filtered by OU
by  Iyad   Go to last post Go to first unread
Last post: Yesterday at 11:09:27 PM(UTC)
Lansweeper Exclude Search
by  pryan67  
Go to last post Go to first unread
Last post: Yesterday at 4:01:43 PM(UTC)
Lansweeper Report: All Apple Mac devices with Memory RAM asset
by  gabrielo   Go to last post Go to first unread
Last post: Yesterday at 3:17:24 PM(UTC)
Lansweeper Does technical support for LS really respond?
by  tosch  
Go to last post Go to first unread
Last post: Yesterday at 12:48:50 PM(UTC)
Lansweeper Deployment packages using lsagent
by  CyberCitizen   Go to last post Go to first unread
Last post: 6/15/2021 11:44:33 PM(UTC)
Lansweeper INFO DateTimeService time refresh
by  ZachO21  
Go to last post Go to first unread
Last post: 6/15/2021 4:23:15 PM(UTC)
Lansweeper Helpdesk tabs always regenarated
by  Carla   Go to last post Go to first unread
Last post: 6/14/2021 9:49:27 PM(UTC)
Lansweeper Importing with user relations
by  teddyh2o  
Go to last post Go to first unread
Last post: 6/14/2021 6:05:46 PM(UTC)