Jump to content


Chm0d

Established Members
  • Posts

    3
  • Joined

  • Last visited

Chm0d's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. Yes, but Powershell execution policy is set in client settings to bypass. In any case I have deployed several powershell scripts without any problems so far. I would just like to find a much easier way to deploy 18 applications to 42 school sites LOL. I have only been doing this for 3 years and I learn something new everyday. It is never ending. I am being sent to a 5 day boot camp for SCCM 2012 next week then I will take the exam. I don't know why I love this so much..... Rich
  2. I work for a school district and I have 42 school sites that each have their own Distribution Point. The SCCM folder structure is laid out that each school site have their own folders. Within the folder of course are the collections. We do remediation and have about 18 applications that get remediated to the student computers collection. Twice a year I update the image as well as the applications that are being remediated. It has gotten tremendously tedious to do the deployments by hand on 42 sites at about 18 apps per site. I know there is a powershell way to accomplish this and I have been messing with it the past few weeks. I have unfortunately been unable to get it to work. In my powershell script the first thing I do is import the config module and set my location and all that seems to work fine. When it goes to Start-CMApplicationDeployment I get an error A positional parameter cannot be found that accepts argument 'â€CollectionName 'New Nov Image Testing' â€Name', but if I type the exact command in powershell it goes through without any issues at all. I am confused. My powershell is this: #Load Configuration Manager PowerShell Module Import-module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1') #Get SiteCode $SiteCode = Get-PSDrive -PSProvider CMSITE Set-location $SiteCode":" Start-CMApplicationDeployment –CollectionName 'New Nov Image Testing' -Name 'Adobe AIR 19' –DeployAction Install –DeployPurpose Required –UserNotification HideAll –RebootOutsideServiceWindow 1 Any help would be greatly appreciated or even if you have another way of doing this just point me in the right direction and off I will go :-). Rich
  3. GarthMJ, I may be more of a NOOB than the person who posted this question. All day today I have been trying to figure out how to be prompted for a collection. I understand created the extra dataset and adding a parameter to point to that dataset. What I am not understanding is how to tie all this in to the Original Query. My original Query basically looks at "All Systems" and tells me the OS that is installed. I have 42 different collections I would like to be able to select from instead of getting a report of All Systems. Here is my query: select all SMS_R_SYSTEM.ItemKey,SMS_R_SYSTEM.DiscArchKey,SMS_R_SYSTEM.Name0,SMS_R_SYSTEM.SMS_Unique_Identifier0,SMS_R_SYSTEM.Resource_Domain_OR_Workgr0,SMS_R_SYSTEM.Client0 from vSMS_R_System AS SMS_R_System INNER JOIN Operating_System_DATA AS SMS_G_System_OPERATING_SYSTEM ON SMS_G_System_OPERATING_SYSTEM.MachineID = SMS_R_System.ItemKey INNER JOIN _RES_COLL_SCS00235 AS SMS_CM_RES_COLL_SCS00235 ON SMS_CM_RES_COLL_SCS00235.MachineID = SMS_R_System.ItemKey where SMS_G_System_OPERATING_SYSTEM.Caption00 = N'Microsoft Windows 7 Professional' How do I join the other dataset to this to prompt me to choose a collection? I apologize for the dumb question. I have spent all day on google and tried so many different things with no luck. I know this can't be that difficult. Would appreciate any assistance. Rich
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.