Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

Config Manager PowerShell Provider fails to pass network objects

$
0
0

I am trying to run the import-CMTaskSequence SCCM 2012 SP1 Powershell cmdlet to import my previously exported OS Task Sequence.

I have created a network share, and imported the correct powershell module, and started the x86 instance of Powershell, however when I change the path to the SCCM Site Powershell drive path ( in my case the site is CHQ ), I am no longer able to access files over the network.

C:\Windows\system32>dir \\cm1\exports$\CM_win8TS.zip
 Volume in drive \\cm1\exports$ is Hydration
 Volume Serial Number is 040E-7232

 Directory of \\cm1\exports$

05/14/2013  02:18 PM           293,217 CM_win8TS.zip
               1 File(s)        293,217 bytes
               0 Dir(s)   8,848,117,760 bytes free

C:\Windows\system32>c:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
Windows PowerShell
Copyright (C) 2012 Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> dir \\cm1\exports$\CM_win8TS.zip


    Directory: \\cm1\exports$


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---         5/14/2013   2:18 PM     293217 CM_win8TS.zip


PS C:\Windows\system32> import-module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\Configura
tionManager.psd1'
PS C:\Windows\system32> dir \\cm1\exports$\CM_win8TS.zip


    Directory: \\cm1\exports$


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---         5/14/2013   2:18 PM     293217 CM_win8TS.zip


PS C:\Windows\system32> cd chq:
PS CHQ:\> dir \\cm1\exports$\CM_win8TS.zip
dir : Value cannot be null.
Parameter name: The drive information was not found. Verify the drive exists and try again.
At line:1 char:1+ dir \\cm1\exports$\CM_win8TS.zip+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : InvalidArgument: (:) [Get-ChildItem], ArgumentNullException+ FullyQualifiedErrorId : Arguments,Microsoft.PowerShell.Commands.GetChildItemCommand

dir : Cannot find path '\\cm1\exports$\CM_win8TS.zip' because it does not exist.
At line:1 char:1
+ dir \\cm1\exports$\CM_win8TS.zip+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : ObjectNotFound: (\\cm1\exports$\CM_win8TS.zip:String) [Get-ChildItem], ItemNotFoundExcep
   tion+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

I went and evaluated the log file at: "c:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\AdminUILog\CMSitePSProvider.log" and I see the following:

5/14/2013 10:25:06 PM: CMSitePowerShellProvider Verbose: 1 : Checking if item \\cm1.corp.contoso.com\exports$\CM_win8TS.zip exists.
5/14/2013 10:25:06 PM: CMSitePowerShellProvider Error: 1 : Drive information not found.

This seems like a chicken and the egg problem.

Import-CMTaskSequence requires that I import from a network share while called from the PSDrive of the Site, however the PSDrive Provider of the site, doesn't know how to parse network shares when passed in.

Anyone else know how this works, or is it just my Configuration?

Thanks in advance, Keith


Keith Garner - Microsoft PM


Viewing all articles
Browse latest Browse all 9126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>