Skip to content

scripting

need to script something ? do it here

  1. Started by Moggis,

    Hi is there any easy way to change the server for "Imap"Incoming mail server and Outgoing mail server, with a Script? i have to change it on around 200 clients... tryied to find resulotion but not... (the company is using LDAP, IMAP) //Morgan

    • 2 replies
    • 5.2k views
  2. Started by jamitupya,

    Im trying to output the content from from a tracert command to excel however i am unsure how i can output this in an excel cell.... any ideas? Set WshShell = WScript.CreateObject("WScript.Shell") Ping = WshShell.Run("ping -n 2 -a " & HostName, 0, True) tracert = WshShell.Run("tracert -4 " & HostName, 0, True) objExcel.Cells(intRow, 1).Value = UCase(HostName) Select Case Ping Case 0 objExcel.Cells(intRow, 2).Value = "OK" Case 1 objExcel.Cells(intRow, 2).Value = "NG" End Select Select Case tracert Case 0 objExcel.Cells(intRow, 3).Value = "OK" Case 1 objExcel.Cells(intRow, 3).Value = "NG" End Select Basically PING is OK and NG and works per…

    • 0 replies
    • 5.2k views
  3. I've just spent ages working through various methods for deploying Open Office 3.3 silently using SCCM 2007. I finally have a working solution so I thought I should share it. You need the Open Office 3.3 installer from OO's website and the DisableFirstStartWizard.oxt file, also available on their site. This particular install routine disables the first run wizard (leaves the user name fields blank), disables any on-line checking for updates and leaves the default file save as type as open document format. Extract the set-up file into an install folder and copy the oxt file into the same place. The batch file is; start /wait msiexec /qb /norestart /i openofficeo…

    • 0 replies
    • 5.1k views
  4. Hi, I already have a BAT script to find PST files and rename their extension to .pstx. (This is so that USMT doesn't pick them up in a migration) for /f "delims=" %%i in ('dir /s /b /a-d c:\*.pst') do (ren "%%i" *.pstx) That works great. But I need this script to ingore any PST files that already reside in the "Outlook Files" folder in Documents. (So that USMT does pick them up in a migration) What command can I incorporate in this script to exclude any PST files in "Outlook Files" ? Any help would be much appreciated. We are using this to migrate users to HVD and we are almost there! thanks Jan

  5. Started by J03,

    Hi All, Can someone help me with a script (Powershell or VB) to populate the currently logged in username from Computers ? What I have ? A spreadsheet with Computer names. Eg: COMP001 COMP002 . . . COMP00n What I am looking for ? A script that reads Computer names from the spreadsheet and finds the currently logged in users on these computer and export the details to another spreadsheet in a something similar format. COMP001 Adam COMP002 Brian I tried some scripts which I got from different forums out there but I am not getting what I am trying to achieve. Thanks, Joe

  6. Started by njjudel2,

    Hi!!! I am new at SCCM and scripts. I hope someone out here can help!!! I would like to create a script or batch file to create shortcuts on my desktop .. I rolled out my os (windows 7) and applications using SCCM. In my rollout, the msi files don't create shortcuts of applications (word, excel, etc.). Anyone know how too....Thanks in advance!!!

  7. Started by conorofarrell,

    Hi I am looking for a good way to run a script in powershell, to detect my site from an XML. We are currently using MDT to do this, but we cannot be completely automated due to the fact that we often build our machines on a central site and ship them out. This this end, I am putting together an XML file to pull the default settings as below. I'm happy with the 2nd (locale)section and how I can use it, I'm not sure how to approach the first section, pulling the gateway out and assigning the 3 letter site code. We have a lot of subnets of each site, so if I can list all the subnets, then assign the site code, that's how I would do it. My XML file: <?xml version="…

  8. I'm trying to do a very basic operation - that is - delete a shortcut that we do not want on the desktop. The file is located at C:\Users\Desktop\Username\File.lnk. When I try to do this scriptomatically, I get access denied. What do I need to do to accomplish this by script? Thanks, Tobias.

  9. Started by Damien,

    Hi, Can some one please tell me an application to create VB script easily? Thanks

  10. Started by ecstrim,

    Hi all, I am trying to export everything from the production SCCM environment, using PowerShell. Collections, Applications, Packages and Task Sequence export works just fine, but the Driver Packages is giving me some trouble. I am using the following cmdlet, expecting to get the driver package with all the driver files in it Export-CMDriverPackage -Name $my_name -ExportFilePath $my_export_path -WithContent $true –Verbose –ForceWildcardHandling Any idea?

  11. Started by gatorcb,

    We are trying to migrate from 2007 to 2012. Our collections won't migrate because we are using queries that reference a 3rd party product in 2007 that's not installed in 2012. Here's what we have 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.SystemGroupName = "DOM\\APP-AdobeApproval" or SMS_R_System.ESDmemberof = "DOM\\APP-AdobeApproval" Since we have over 1000 collections and are still using ESD, we'd like to have a script return the above data to a file. Then we break that file up into smaller sections (…

  12. I am looking to automate a prcoess as follows.. Input AD username Retrieve network location of AD User Roaming Profile Retrieve network location of home directory Copy certain items from roaming profile to home directory Delete network roaming profile This is purely so helpdesk staff can delete a profile using a tool rather than having to browse to a server and delete manually... I am guessing I can perform this via VBS but am looking for some pointers, I don't have any vbs experience but a starting point would be nice..! Thanks

  13. Here is script...... Copy-Item "\\fileserver\SCCM\Resources\Laserfiche\Laserfiche.url" -Destination "C:\Users\Public\Desktop" Shortcut never appears.

  14. Hey Just want to streamline this code a little, it does what I need it to do but think it can be smoother. So I query all installed apps on a x64 Win 7 box, creates an array, I check if the array contains the program I'm looking for and if true do nothing else install program. Is using IF the best way, cleanest way? I'm integrating it into the app deployment toolkit as there are a number of applications I have to install that required multiple components and want to make sure it checks if needed or not (during some testing it failed when the application was already installed). Code just looks messy. (Write-host is only there for testing to make sure it does wh…

    • 0 replies
    • 4.4k views
  15. Started by Pavan Kumar,

    Hi Everyone, I am working on script that will do pre-check to verify if machine can be upgraded to windows 10. I checked couple of websites and videos that says setup will do pre-check with appraiser.sdb file for compatibility and decided whether machine can be upgraded. i am trying to access sbd file but couldnt do it. Can some please help me. Thanks, Pavan

    • 4 replies
    • 4.4k views

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.