locked
How to check network path with WQL RRS feed

  • Question

  • Hello 

    I'm planning to deploy a Task Sequence in SCCM 2012.
    I met with problem in adding a condition to TS. The only way to set the appropriate condition is WMI/WQL Query. 

    The point is that before install package I should check if network path exists. There's a department with computer names like "Dev-01", "Dev-02", "Dev-0x". Network folder (not shared folder) exists only on Dev-01 (\\Dev-01\d$\MyDirName\MyFileName). 

    The first problem is when I try to use Win32_Share class I get Name like 'D$', it shows only share name so I cannot use it in path like "%computername%\D$\MyPathName\MyFileName".

    The second problem is that I should extract substring from %computername% to get a network path. In CMD it's like "%computername~0,4%01" to extract the first computer name from other computer's names.

    Is it possible to set this condition with WQL at all?

    Thanks in advance.
    • Edited by Yuliya_A Friday, March 21, 2014 6:53 AM
    Friday, March 21, 2014 6:51 AM

Answers

All replies