Jump to content


anyweb

Root Admin
  • Posts

    9260
  • Joined

  • Last visited

  • Days Won

    371

Everything posted by anyweb

  1. ok well i'm on gmail too anyweb @ ...
  2. what about this one ? '©2008 Rick Bennett {rick-bennett@uiowa.edu} 'DISCLAIMER: This script is provided "as is" with all faults. The author cannot be held liable for any indirect, special, incidental, consequential, or exemplary damages arising out of or in any way relating to the use of this script, including without limitation damages for loss of goodwill, work stoppage, lost profits, loss of data, and computer failure or malfunction. You bear the entire risk as to the quality and performance of this script. '~$~----------------------------------------~$~ Option Explicit Dim objWshShell, strSiteCode, strSCCMServerFQDN, strUserName, strPassword Dim objLocator, objSMS, returnValue, strMessage, StartProcess Dim Collection, objCollection, strCollectionCheck, newCollection, strCollectionID, newCollectionRelation, Token, objNewCollection, objNewRight Dim strParentCollectionID, strNewCollectionName, strCollectionComment, strSecurityUserName, intSecurityPermissions, intHourlyMembershipRefreshTime Set objWshShell = WScript.CreateObject("WScript.Shell") ' Provide the needed configuration information here. strSiteCode = "XXX" :'Site code for the SCCM environment strSCCMServerFQDN = "XXXXXXX.XXXXX.XXXX.XXX" :'Name of the SCCM server strNewCollectionName = "XXXXXXXXXX" : 'Name of the collection to be created strCollectionComment = "XXXXXXXXXXXXXXXXX" : 'Comment field shown in the collection strParentCollectionID = "XXXXXXX" : 'ID of the collection to contain the collection to be created strSecurityUserName = "YourDomain\XXXXXXXX" : 'Name of the domain group or user to be granted access intSecurityPermissions = "6887" : 'Permission setting to be granted to the domain group or user intHourlyMembershipRefreshTime = "2" :'Amount of time in hours that the collection should update its membership strUserName = "XXXXXXXXXXXXXXXXXXXXXXX" :'Domain user account that has rights to the SCCM environment strPassword = "XXXXXXXXXXXXXXXXXXXXXXXX" :'Accompanying password to the domain user account strMessage = "This script will attempt to create the " & strNewCollectionName & " collection with the information provided within the script." + (Chr(13)& Chr(13)& Chr(13)) + "Do you wish to continue with this process now?" StartProcess=objWshShell.Popup(strMessage,, "SCCM Collection Creation Script . . .", 4 + 32) If StartProcess = 7 Then ' Clicked the NO button. Wscript.Quit End If ' Attempts to connect to the SCCM environment. returnValue = ConnectToSCCM If returnValue = "NoAccess" Then wscript.echo "Unable to connect to the SCCM provider. Either the user credentials entered are incorrect, or else this account does not have the needed rights and permissions to access the SCCM environment." End If ' Attempts to check if the collection already exists. Set Collection = objSMS.ExecQuery ("select * from SMS_Collection where Name='" & strNewCollectionName & "'") For Each objCollection in Collection strCollectionCheck = "This collection already appears to exist with the collection ID of: " & objCollection.CollectionID Wscript.Echo strCollectionCheck Next If strCollectionCheck = "" Then ' Attempts to create the new collection Set newCollection = objSMS.Get("SMS_Collection").SpawnInstance_() newCollection.Name = strNewCollectionName newCollection.OwnedByThisSite = True newCollection.Comment = strCollectionComment newCollection.Put_ Else Wscript.Quit End If ' Attempts to obtain the collection ID of the newly created collection. Set Collection = objSMS.ExecQuery ("select * from SMS_Collection where Name='" & strNewCollectionName & "'") For each objCollection in Collection strCollectionID=objCollection.CollectionID Next If strCollectionID = "" Then Wscript.Echo "Unable to obtian a collection ID for the newly created collection." Else ' Attempts to move the newly created collection into the desired parent collection. Set newCollectionRelation = objSMS.Get("SMS_CollectToSubCollect").SpawnInstance_() newCollectionRelation.parentCollectionID = strParentCollectionID newCollectionRelation.subCollectionID = strCollectionID newCollectionRelation.Put_ ' Attempts to set the membership update schedule on the collection. Set Token = objSMS.Get("SMS_ST_RecurInterval") Token.HourSpan = intHourlyMembershipRefreshTime Token.StartTime = ConvertToWMIdate(Now()) Set objNewCollection = objSMS.Get ("SMS_Collection.CollectionID='" & strCollectionID & "'") objNewCollection.RefreshSchedule = Array(Token) objNewCollection.RefreshType = 2 objNewCollection.Put_ ' Attempts to set the needed security permissions on the newly created collection. Set objNewRight = objSMS.Get ("SMS_UserInstancePermissions").SpawnInstance_() objNewRight.UserName = strSecurityUserName objNewRight.ObjectKey = 1 objNewRight.InstanceKey = strCollectionID objNewRight.InstancePermissions = intSecurityPermissions objNewRight.Put_ End If Wscript.Echo "Finished creating the " & strNewCollectionName & " collection. Please use the Configuration Manager console and create any needed membership queries that may be required." Wscript.Quit ' ~$~----------------------------------------~$~ ' FUNCTIONS & SUBROUTINES ' ~$~----------------------------------------~$~ Function ConnectToSCCM ' Attempts to use the provided information to connect to the SCCM environment. On Error Resume Next Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objSMS = objLocator.ConnectServer(strSCCMServerFQDN, "root\sms\site_" & strSiteCode, strUserName, strPassword) If Err then Err.Clear ConnectToSCCM = "NoAccess" Exit Function End If objSMS.Security_.ImpersonationLevel = 3 objSMS.Security_.AuthenticationLevel = 6 ConnectToSCCM = "Accessed" End Function ' ~$~----------------------------------------~$~ Function ConvertToWMIdate(strDate) ' Attempts to convert the date into a WMI date-time. Dim strYear, strMonth, strDay, strHour, strMinute strYear=year(strDate) strMonth=month(strDate) strDay=day(strDate) strHour=hour(strDate) strMinute=minute(strDate) If len(strMonth) = 1 Then strMonth = "0" & strMonth End If If len(strDay) = 1 Then strDay = "0" & strDay End If If len(strHour) = 1 Then strHour = "0" & strHour End If If len(strMinute) = 1 Then strMinute = "0" & strMinute End If ConvertToWMIdate = strYear & strMonth & strDay & strHour & strMinute & "00.000000+***" End Function tell me what are you busy with (i'm on office communicator if you want to chat) cheers niall
  3. System Center Configuration Manager 2007 SP1, SP2 and R2 now support Microsoft SQL Server 2008 SP2 as a Configuration Manager 2007 site database. The site system role of Reporting Services Point and the client status reporting feature of System Center Configuration Manager 2007 R2 are supported. No software updates are required. --Harini Muralidharan This posting is provided "AS IS" with no warranties, and confers no rights. via > http://blogs.technet.com/b/configmgrteam/archive/2010/12/08/configuration-manager-support-announcements-for-november-2010.aspx
  4. as Eswar says, plus see > http://www.microsoft.com/downloads/details.aspx?FamilyID=b9fb478a-ec98-47f2-b31e-57443a8ae88f in addition to testing out what is covered in the SCCM guides here Interviewrs will want to gauge how much you know about SCCM and some areas that you should have good knowledge on would include:- Collections Operating System Deployment Software Distribution Software Updates Reporting good luck ! cheers niall
  5. It’s always telling to hear what Charles Songhurst, Micrsosoft’s General Manager of Corporate Strategy, is focused on. Songhurst, an eight-year Microsoft veteran, has held various strategy and mergers and acquisitions posts at Microsoft. According to his bio, Songhurst was instrumental in helping to kill the acquisition of Yahoo, saving the company $48 billion, and subsequently negotiating the Microsoft-Yahoo search partnership. These days, Songhurst is spending most of his time on two areas — the economics of the cloud and piracy — he told attendees of the NASDAQ OMX Investor Program on December 7. (I listened to the Webcast.) Microsoft recently issued a white paper entitled “The Economics of the Cloud,” which Microsoft envisioned as “help(ing) build a framework that allows IT leaders to plan for the cloud transition. (My ZDNet colleague Larry Dignan wrote about Microsoft cloud economics paper last month.) Among the takeaways: Larger clouds save users more money than smaller clouds. Songhurst talked up the economies of scale that can be realized via day-parting to drive up server utilization and other ways of taking advantage of both supply-side and demand-side factors. He noted (not surprisingly) that second-tier, non-mission-critical apps are what’s going to the cloud first. And he claimed that Microsoft wouldn’t cannibalize its business by moving more and more to the cloud because moving enterprise IT does not “somehow turn (things) into a simple, homogeneous mass.” The one new tidbit Songhurst shared was a connection I hadn’t made before. He said that Microsoft is counting on the movement of more of its assets to the cloud as helping to reduce piracy. “As products become services, piracy naturally disappears,” Songhurst said. “It is hard to pirate when the experience is coming from a server.” Songhurst said piracy reduction due to the cloud was a long-term phenomenon, which might not have much impact until the next decade, but that it was “a very positive trend.” One other question from an attendee of the NASDAQ event which I thought was interesting was how Microsoft could be both a good consumer and good enterprise company. Songhurst acknowledged that it was very hard to do both well, but the “rewards” of managing to were “very high.” Like CEO Steve Ballmer has said recently, Songhurst claimed that the synergies between the two parts of the business are tightly intertwined and interdependent. He didn’t say much else on the topic. Songhurst also declined to answer a quesetion about when and if Microsoft would port Windows to ARM, noting “we don’t talk about anything about Windows beyond official announcements.” He also deflected questions about what’s coming next on the Office front and how/when Kinect-like capabilities might come to PCs. Still, I found it interesting just how much attention (and at what levels) the company is paying to the economics around the cloud these days…. via > http://www.zdnet.com/blog/microsoft/microsoft-moving-more-assets-to-the-cloud-may-curb-piracy/8139?tag=mantle_skin;content
  6. Microsoft is introducing a new feature, “Tracking Protection,” to Internet Explorer (IE) 9 “to help consumers be in control of potential online tracking as they move around the Web,” according to company officials. Microsoft officials said to expect the new feature to be part of the Release Candidate (RC) test build of IE 9, which is due out in early 2011. Microsoft execs have not said when to expect the final version of IE 9 to be released, but I continue to hear April 2011 is the internal target. Tracking Protection will be an opt-in mechanism. Microsoft officials said “Tracking Protection Lists” will enable consumers to control what third-party site content can track them when they’re online. The new feature is meant to complement other privacy features in IE, including InPrivate Browsing, a k a porn mode. From the IE Blog, here’s an explanation of how those lists will work: Microsoft has posted some slides and videos detailing how the Tracking Protection feature will work. Microsoft announced its plans to add Tracking Protection to IE on December 7, the same day (and the same time) that Google is holding a webcast on its Chrome 9 browser and is expected to announce more details of its Chrome OS operating system for netbooks. via > http://www.zdnet.com/blog/microsoft/microsoft-to-add-privacy-tracking-to-ie-9-test-build-in-2011/8142
  7. is this a question ? can you be more specific please..
  8. can you run the program on a virtual machine using PSEXEC as system account and tell me what the output error says
  9. use a frontend HTA to set the required variables, that's how i do it, then your task sequence checks for the presence of same and carries out actions accordingly
  10. error 1 usually means 'incorrect function' can you post the log file of this install ? if the program installs in windows then it's user based and when being installed via osd it's being installed as SYSTEM (system context) that could be the cause of the failure, if so, you'll have to edit the script to take account of this,
  11. anyweb

    PXE Boot help

    it will get far enough, if you see the sccm screen that is WinPe. you have to enable F8 command support in your boot wim, read the previous post to see how cheers niall
  12. This hotfix addresses a known issue in v.Next Beta 1 (build 7470) which can cause SMSEXEC to crash while handling deployment of certain software updates. This crash will occur if there are more than 1100 references in a bundle / update list (this is the combination of direct and indirect references) targeted to collections. Installation Instructions: 1) Install the hotfix on CAS and primary site servers MSFT internal reference: SMS: 243539 SMSSE:6578 via > http://myitforum.com/cs2/blogs/brandonlinton/archive/2010/10/30/configmgr-v-next-beta-1-hotfix-kb2448871.aspx
  13. Problem: The client agent cannot be published to the software update point for software update client deployment. Issue: When enabling software update based client deployment, Windows Server Update Services does not properly register the Configuration Manager client agent. Workaround: Download the software update from the MS Connect site for Configuration Manager and deploy the update to all software update point site system roles. Software Update-Based Client Installation Fails When you enable software update-based client deployment, the Configuration Manager client does not publish to the software update point. The following error is logged in WCM.log: ERROR: Failed to publish sms client to WSUS, error = 0x80131622 Workaround: Download the software update from the MS Connect site and install this software update on all software update point site system roles. https://connect.microsoft.com/ConfigurationManagervnext/Downloads/DownloadDetails.aspx?DownloadID=29497 via > http://myitforum.com/cs2/blogs/brandonlinton/archive/2010/10/30/configmgr-v-next-beta-1-hotfix-kb131665.aspx
  14. anyweb

    PXE Boot help

    sounds like network drivers are missing in your boot.wim., to test, when winPE starts, press F8 (after enabling command line mode) and type ipconfig do you get an ip address ?
  15. anyweb

    New Job

    hi back, did you want to say something about IT Jobs ?
  16. here's how (thanks to Michael in Denmark) http://osdeploy.wordpress.com/2009/11/23/capture-none-syspreped-image-using-sccm-running-imagex-from-a-ts/
  17. capture the WIM on a virtual machine (hyperv or vmware) then have a driver group which has steps in it, each step is based on a wmi query to detect for some hardware model, if found then an apply driver package is initiated, if not it's ignored see these posts for ideas how can I target applications (and drivers) to specific hardware? target hardware How can I create a driver package
  18. if the MP is on a child site, then you'll need to create the boot media on that site
  19. on the site server that you are attempting to create boot media, is there a MP ?
  20. Step 6. Create a new hyperV virtual machine Follow these steps to create a new HyperV virtual machine, called Windows 7 Client #2. Once created, start the VM and PXE boot it at the welcome to Task Sequence wizard click next and select our Deploy Windows 7 X64 Enterprise Task Sequence from the menu and click next the deployment begins formatting the disc takes a while (we'll fix that later) and now we see our captured image is getting applied to our VM applies drivers then we see the setup windows and configmgr step (involves a reboot) and after the reboot Setup is updating ... after another reboot... the Setup and Windows and configmgr step continues and installs the configmgr client.. and now our Install Software Updates step takes over and then we are done
  21. did you look for the smsts.log on the client ? instructions to find it are here
  22. i wouldn't advise you to set such aggressive discovery times as the sql server will be inundated and never keep up with itself, instead, upgrade to R3 and utilise the delta discovery methods it has, or set more realistic expectations amongst your users (within 3 hours or so) for software
  23. it's a workflow to fix problems etc, for example using easy to use drag and drop you can create a sequence of events, such as if a file of version X exists in a folder then do some action, or whatever you want !
  24. it sounds like he's using Computer Association to import the machines details into a collection. although why he's using 'blank for staging' is beyond me, as that's a BLANK collection where you never put computers into, to be used for the software update templates.... so perhaps Finamore can explain ?
  25. Step 5. Deploy (advertise) the Task Sequence to the Unknown Computers Collection Highlight our newly created Deploy task sequence, right click and choose Deploy when the wizard appears, browse for the All Unknown Computers collection, and make sure to place a checkmark in Make this task sequence available to boot media and PXE leave the schedule as it is (optional), click next, set the distribution point settings as follows click next through Interaction, Summary, review the progress and finally click close at the confirmation.
×
×
  • 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.