
wmmayms
Established Members-
Posts
324 -
Joined
-
Last visited
-
Days Won
7
Everything posted by wmmayms
-
try this: Dim WSHShell Set WSHShell = WScript.CreateObject("WScript.Shell") Dim MyShortcut, MyDesktop, DesktopPath DesktopPath = WSHShell.SpecialFolders("Desktop") Set MyShortcut = WSHShell.CreateShortcut(DesktopPath & "\Shortcut to notepad.lnk") MyShortcut.TargetPath = WSHShell.ExpandEnvironmentStrings("%windir%\notepad.exe") MyShortcut.WorkingDirectory = WSHShell.ExpandEnvironmentStrings("%windir%") MyShortcut.WindowStyle = 4 MyShortcut.IconLocation = WSHShell.ExpandEnvironmentStrings("%windir%\notepad.exe, 0") MyShortcut.Save
-
Gj Don´t forget to write it down
-
Other domain client software update agent issue
wmmayms replied to matthew.hu's question in How do I ?
look at this blog post =) http://blogs.technet.com/b/smsandmom/archive/2008/12/02/configmgr-2007-wuahandler-log-failed-to-add-update-source-for-wuagent-error-0x80040692.aspx -
If your ip settings look correct i would first try to ping the SCCM Site on its FQDN for example: testserver.testdomain.test If this succeeded i would look into the SMSTS.log at this stage the log should be found in the %temp% folder. Notice that you might have to cancel the TS before you can open the logfile.
-
If you have enabled F8 support in your boot image you can press F8 and check your network settings firstly..might be a DNS/DHCP failure..
-
Easiest way is to create a new adv each night. Doing anything diffrent would mean doing quite a few changes in the database. If you need to completly clear the data from an adv this means editing many diffrent tables..
-
Missing Selection Screen when PXE Booting
wmmayms replied to jimjams18's topic in Configuration Manager 2007
Find the advertisements advertised on your unknown computers collection. Then Click the tab "Schedule" and make sure that there are no mandatory assignment on any of them. -
Script for clearing last pxe advertisement in SCCM
wmmayms replied to wmmayms's question in Troubleshooting, Tools, Hints and Tips
It´s built from the SCCM SDK. It clears the PXE flag for a single computer in the same way that the console does it, only faster. When you launch the script you will get a prompt asking for a computername. Just write the computername of the computer you wish to clear, press OK and then try reinstalling it again =) It is also possible to modify the script to work on collection instead of computer objects. -
Managing security rights in sccm
wmmayms replied to alloa13's question in Troubleshooting, Tools, Hints and Tips
You need to set class rights for the collections instance rights = specific collections class rights = all nodes of a specific class If you set instance rights on all collections and then create a new one, then your administrators wont have any rights on this new collection.. -
Thought I would share this script with you guys. It´s a script for removing pxe advertisement from computers. All you need to do is to run the script and enter the computername you would like to clear. Much easier than going into the console, finding the correct collection, rightclicking... REM Code written by WMMAYMS - 2010 SiteServer = "<SITESERVERNAME>" provSiteCode = "<SITECODE>" strComputer = Inputbox("Enter Computer Name to the computer that you would like to reset","Reseting PXE") If Len(strComputer) = 0 Then 'do nothing Else Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objSMS = objLocator.ConnectServer(SiteServer , "root/sms/site_" & provSiteCode) 'get the resource ID of the computer intResourceID = GetResourceID(strComputer) end if Function GetResourceID(strComputerName) Set colResourceIDs = objSMS.ExecQuery _ ("select ResourceID from SMS_R_System where Name = '" & _ strComputer & "'") for each objResID in colResourceIDs GetResourceID = objResID.ResourceID next End Function 'Remove pxe adv from computer with intResourceID as resourceID set conexion = Connect(SiteServer, "", "") ClearPxeAdvertisementResource conexion, intResourceID Function Connect(server, userName, userPassword) On Error Resume Next Dim net Dim localConnection Dim swbemLocator Dim swbemServices Dim providerLoc Dim location Set swbemLocator = CreateObject("WbemScripting.SWbemLocator") swbemLocator.Security_.AuthenticationLevel = 6 'Packet Privacy ' If the server is local, don't supply credentials. Set net = CreateObject("WScript.NetWork") If UCase(net.ComputerName) = UCase(server) Then localConnection = true userName = "" userPassword = "" server = "." End If ' Connect to the server. Set swbemServices= swbemLocator.ConnectServer _ (server, "root\sms",userName,userPassword) If Err.Number<>0 Then Wscript.Echo "Couldn't connect: " + Err.Description Connect = null Exit Function End If ' Determine where the provider is and connect. Set providerLoc = swbemServices.InstancesOf("SMS_ProviderLocation") For Each location In providerLoc If location.ProviderForLocalSite = True Then Set swbemServices = swbemLocator.ConnectServer _ (location.Machine, "root\sms\site_" + _ location.SiteCode,userName,userPassword) If Err.Number<>0 Then Wscript.Echo "Couldn't connect:" + Err.Description Connect = Null Exit Function End If Set Connect = swbemServices Exit Function End If Next Set Connect = null ' Failed to connect. End Function Sub ClearPxeAdvertisementResource(connection,resourceID) On Error Resume Next Dim resources Dim InParams ' Set up the Resource array parameter. resources = Array(1) resources(0) = resourceID Set InParams = connection.Get("SMS_Collection").Methods_("ClearLastNBSAdvForMachines").InParameters.SpawnInstance_ InParams.ResourceIDs = resources connection.ExecMethod "SMS_Collection","ClearLastNBSAdvForMachines", InParams if Err.number <> 0 Then WScript.Echo "Failed to clear PXE advertisement for resource: " & resourceID Exit Sub End If End Sub Save everything in red as a .vbs file and then edit the first to lines "Siteserver" and "provSiteCode" to match your environment. Note that you still need the correct sccm permissions to be able to do this.. Cheers
-
Remote Tools not working
wmmayms replied to xstnc's question in Troubleshooting, Tools, Hints and Tips
Its easier when you know what the codes mean: 0x80004005= Access Denied. I would check the user permissions and then i would check the logfile called "RemoteControl.log" located here: "\\<COMPUTERNAME>\c$\WINDOWS\system32\CCM\Logs" for clues. -
Hi! Read through this post, will proberbly help you :-) http://social.technet.microsoft.com/Forums/en-US/configmgrsetup/thread/2923d7a9-e3ea-490e-9e02-249573e16bf2
-
Create collection based on software presence
wmmayms replied to birz's question in Deploy software, applications and drivers
Here is an example code: select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ResourceId not in (select SMS_R_System.ResourceId from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Mozilla Firefox (3.5.9)") Note i dident have IE 8 in my enviroment so you need to change the line i marked as red in my above example. GL -
Create collection based on software presence
wmmayms replied to birz's question in Deploy software, applications and drivers
If you do it like that you will recive all computers in that collection because they all have rows in the v_GS_ADD_REMOVE_PROGRAM view that are not = "Internet Explorer 8" To get around this you will have to use a subselect statement. -
These tools are found under Features in win2008. They are called "Remote Server Administration Tools" (RSAT). Just pick the ones you need and install them :-)
-
Hm do you mean that you want to view that DPs that the clients used the last time? And with the help of that find out where they are located.. This could be a bit of a struggle and your sccm env would have to be using protected DPs for it to work (no fallback). Maybe if you got the subnet of the client this would be enough? Or if this information is stored somewhere in the Active Directory (description?, OU?, AD Site?)? Maybe they are members of diffrent AD groups depending on location?
-
Managing WorkGroup computers in SCCM /SMS Environment
wmmayms replied to Eswar Koneti's topic in Configuration Manager 2007
And this tab can easily be managed with DHCP scope options. But still good workaround if its only a few machines. -
Managing WorkGroup computers in SCCM /SMS Environment
wmmayms replied to Eswar Koneti's topic in Configuration Manager 2007
Question: Doesent it work if you setup a SLP and publish this to the WINS server? Of course all computers need to use this wins server, but it would be faster if you have alot of workgroup computers. -
Are you deploying to a virtual machine?
-
this is very much depending on what you would like to acomplish and how your enviroment is setup. Either you create a package and add the batchfile to this package or you can achive the same functionallity by calling the batch/command lines from a "Run command line Step" from within your TS. The step should be implemented somewhere after you have applied your OS image.
-
Yes this is possible Easiest is to create a batchfile and fire that off from your TS. Here are some good commandlines that can be used in the batch file: net user jsmith Password1 /ADD /FULLNAME:"John Smith" /COMMENT:"This is a comment!" net group "Domain Users" jsmith /ADD
-
Yes dcpromo is the only thing you need to run to demote the DC. Before doing this though, make sure that all operations master are moved and that it is not the last global catalog server. What shares do you mean? Do you have fileshares on your DC2?
-
Determine Distribution Point for package deployment
wmmayms replied to SCCM4EVA's question in Deploy software, applications and drivers
Make you DPs protected and specify the local subnet, ip range or active directory site for each distrubution point. -
ADMT is for migrating objects. This tool will not help you preserve your domaincontroller hostnames. Why is it so important to keep the DC names? I guess you could move all roles to w2k3 dc1 and then demote w2k3 dc2. When this is done, extend the forestprep and domainprep on your remaining w2k3 dc1. Then install a w2k8 machine and promote it to a domaincontroller (give it the same name as w2k3 dc2 had..). Move all roles to your new w2k8 machine. Then demote your w2k3 dc1. Then install your second w2k8 machine and promote it to a domaincontroller. done.. Remeber though that it is never a good idea to have less then 2 domaincontrollers. backup backup backup
-
Here is another free prgm where you can add test, voice bubbles, arrows etc http://www.debugmode.com/wink/ everything is saved in flash.