Skip to content

scripting

need to script something ? do it here

  1. 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
  2. Hey guys, Been having a little issue with a customer i'm working for these days. They are running windows 8.1 clients, and need some shortcuts pinned to the metro start screen, these include shortcuts to folders and shortcuts to network files/folders We have got a great way to do web addresses in SCCM 2012 R2, but unfortunatly that does not cover i.e. exe files on the network, or shared folders and so on. I have found several scripts for this, both VBS scripts and PS scripts that i have used in windows 8, but for some reason they do not work in windows 8.1 ( VBS: http://gallery.technet.microsoft.com/scriptcenter/How-to-pin-items-to-Start-ee960ad8 PS: Several …

  3. Hello Folks, I'm new to this forum. I believe that this is right place to post my query here. Here is problem with SCCM. I wrote a script that copy file from desktop to shared location. the script works perfectly fine when I run as administrator. Created package \ application for this script and deployed to my test machine. but It doesn't do anything while installing from my test machine even though I checked run with admin's right in SCCM. FYI: Method 2: Created bat file that calls my power shell script. No luck yet all! Method 3: Run the Powershell script by using coomand line i.e Powershell -ExecutionPolicy -Bypass -file "fi…

  4. Started by Eze,

    Please do you have a handy PowerShell script to - delete object from SCCM and Active directory simultaneously.

    • 0 replies
    • 2.3k views
  5. Started by Eze,

    Please do you have a handy PowerShell script to - delete object from SCCM and Active directory simultaneously.

  6. Is there a way to create multiple Deployment Types under one application. I am using Add-CMScriptDeploymentType and get an error on the second one. Add-CMScriptDeploymentType : ConfigMgr Error Object: instance of SMS_ExtendedStatus { Description = "The digest is not valid"; ErrorCode = 1078462235; File = "..\\sspconfigurationitem.cpp"; Line = 1980; Operation = "PutInstance"; ParameterInfo = ""; ProviderName = "ExtnProv"; SQLMessage = "[42000][3998][Microsoft] [SQL Server]Uncommittable transaction is detected at the end of the batch. The transaction is rolled back."; SQLSe…

    • 4 replies
    • 7.2k views
  7. Started by Polarman,

    Hi, I need help changing this script to start install from a share instead of files being downloaded and cached before installing... For use with SCCM 2012 $SPSSArgs = '"IBM SPSS Statistics 24.msi" AUTHCODE="mycodehere" INSTALLPYTHON="0" ENABLE_JAB="1"' $MSIexecArgs = "/qb ALLUSERS=2 /m MSIUQUPQ /norestart /i" Start-Process msiexec.exe -ArgumentList "$SPSSArgs $MSIexecArgs" -Wait Do I need to rebuild the whole script? Knut

  8. Hey Everyone Hope someone can help with this one. New to powershell but getting by pretty good until now. I need to take the content of about 3000 text files and the content of each text file written to a row in excel. Hope someone might be able to help with this as it is doing my head in.......I'm googled out........ Any help or advise would be much appreciated. Even if someone has done this is VBS would be good. Thanks Brendon.

    • 1 reply
    • 3.3k views
  9. Started by Polarman,

    I have a script installing "LabView" from "National Instruments". However the installer (setup.exe with parameters) is just starting a lot of other installers, and when I use SCCM and detection method the software goes to "installed" just after starting install, although it continues for another hour (!). That is because im checking if a file is present. How could I instead check for "when a process finish or exits then the software is installed"? Knut

  10. Started by Always,

    Hi WN im working on a script where i want to pass a param to the script. When I run it without any param it install the regedit changes. I want to use the same script for the clean up. like this: newdev.ps1 -uninstall then do this and this how do i get this to work?

    • 0 replies
    • 4k views
  11. I have written a series on the PowerShell Deployment Toolkit (PDT). However, recently there has been a new addition of a GUI element. Check out the PDT GUI article on my blog here: http://adinermie.wordpress.com/2014/06/14/my-experience-with-the-powershell-deployment-toolkit-pdt-part-4-pdt-gui-for-powershell-deployment-toolkit/ Or check out the beginning of the series here: http://adinermie.wordpress.com/2014/01/26/my-experience-with-the-powershell-deployment-toolkit-pdt-part-1-downloader-ps1/

    • 0 replies
    • 4.3k views
  12. I’m currently working on a user Onboarding script as the company can not afford a system to automate etc and want to check if you can help me on something which I cannot figure out? On a nutshell we have 4 different sites and each Location has its own OU for user accounts. We have departmental shares like IT, Accounts etc n want to add newly created to their respective department group and lastly distribution group based on location. Can you please help me a script for this if possible? I am able to create users but not able to add users based on departments also to the distribution group based on location Searched online could not find much Appreciate the help. Thank you

  13. I am a powershell noob so I am hoping someone can point me in the right direction. I have many different task sequences as part of an XP to Windows 7 migration and when I run across a model of PC that we didn't know we had I have to manually add the new driver package to all those existing task sequences. Anyone know of some usefull powershell commands that would add the new driver package into any existing task sequences?

    • 2 replies
    • 3.5k views
  14. Need help building one PowerShell script to run on Windows XP and Windows 7 If possible. I need the script to perform the following functions. Remove all temp files for all users Empty Recycle Bin for all users Empty Temp Direrctory Empty Temp Internet Files for all users Delete User Profile's 90+ days inactive Run Check Disk Clean up tool at the end. I have attached a script that was given to me but needs to modified for XP I think and add other items listed above. Disk_Cleaup_Tool.txt

  15. I have a script that shuts the PcaSvc (Program Compatibility Assistant Service) before installing another program. However, I need a script to detect that it's Stopped so I can use it for SCCM AppModel detection. I have this, but I'm getting erros......yes I'm a Powershell newbie...... $PcaSvc = Get-WmiObject win32_service | where Name -eq "PcaSvc" if ($PcaSvc.State -eq "Stopped") { $true } else { $false } Please assist...thanks!

    • 1 reply
    • 3.8k 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.