scripting
need to script something ? do it here
124 topics in this forum
-
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
-
- 2 replies
- 4.4k views
- 1 follower
-
-
Hi All, I am trying to build an enviornemnt an dusing Hyrdation scripts from deploymentresearch.com ( thanks to Johan Arwidmark and team). The below mentioned script works fine with local SQL server deployment but i want it to work with my remote SQL server instance. Can any please advice as to what all changes I have to do to make this script work. Appreciate your help in advance.
-
- 1 reply
- 4.3k views
- 1 follower
-
-
How do you it through TS? thanks for any help
-
- 2 replies
- 4.3k views
-
-
Dear All we need patch or script to uninstall autodesk products
-
-
- 4 replies
- 4.3k views
- 2 followers
-
-
After the earlier version of office is installed, it has a gray status that cannot be modified. I want to create a desktop shortcut to prevent users from modifying information like this. How should I create a desktop shortcut with PowerShell, and the target and starting position are in a gray status that cannot be modified?
-
- 0 replies
- 4.3k views
-
-
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
-
-
Looking to rename but have no idea how to package this. My script is below and think I'd have to bypass execution policy. Rename-Computer -NewName "PC0001" -DomainCredential Domain01\Admin01 -Restart Just not sure how to create a package for something like this.. Thanks for any replies.
-
- 2 replies
- 4.2k views
-
-
Can someone show me a sample of script that has an "if exist" statement that checks if the network printer is connected to the current PC. I have this on part of my script that removes a network printer. But, I would like to add an "if exist" statement that checks and then removes if it does exist. ******* Dim DelPrint, UNCpath UNCpath = "\\server\network_printer1" Set DelPrint = WScript.CreateObject("WScript.Network") DelPrint.RemovePrinterConnection UNCpath, true, true ******* Many thanks,
-
- 0 replies
- 4.2k views
-
-
I have the package created with the folder and files I need copied but I cant get a VB script to work that will do it. any ideas on how I could do that? Any help is appreciated, Thanks
-
- 3 replies
- 4.1k views
-
-
Hi, I thought I would advertise my book here as I need all the shout-outs I can get! The book is entitled: ConfigMgr - An Administrator's Guide to Deploying Applications using PowerShell I think it's pretty good, but then again, I'm probably biased. You can get it here: https://leanpub.com/configmgr-DeployUsingPS Sorry about this advert - I hate adverts too. Sometimes, you just...gotta.
-
- 1 reply
- 4.1k views
-
-
Hi all I have a unique situation, here is what i would like to do, unfortunatley not too skilled with PS. Every time a message ID 10800 is generated (10800 Informational Advanced Client The SMS Advanced client was installed. The current version is %1.) i would like to check for the left 3 characters of the computer and based on that add it to a specific collection. the collection is a direct membership with OSDAllowed = False, so no one can deploy to that system by mistake. Any help on how to do this greatly appreciated. Update: I actually had to use 10804, which is when the client is assigned. I am sure there is a way for a nicer and cleaner code :-( <> …
-
- 0 replies
- 4.1k views
-
-
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
-
-
Hi, I have some cad programs that require .net 3.5 on many clients windows 10. I have tried many things running it from the cmd prompt in a task srquence and I am not successful. I have written a batch file that works when I run it on a local machine. The only thing is UAC prompts you to hit ok which when running on a local machine is fine. However when I run it as a batch file in a task sequence you can see that it appears to run with no errors. I guess it is waiting for UAC to say ok. Is there a way in the batch file to automate that to say ok in order if it to proceed. Or if there is another way to do this please share. I have a…
-
- 2 replies
- 4k views
- 1 follower
-
-
Hi, I am looking for a script to copy the Group Membership of one system to another in AD from a system which is not connected to domain, below is the script which i wrote but getting error " Could not find the Name or Insufficient Rights to see Name, at this stage "objTrans.Set ADS_NAME_TYPE_NT4, strDomain & "\" & strComputer2 & "$" " please help Basically what the script does is it will prompt for Old computer name for Source & new computer for destination & it will create a computer account & copy the group membership from source to destination computer. Option Explicit Dim strComputer1, strComputer2, strDomain, strOU, intAnswer, …
-
- 0 replies
- 3.9k views
-
-
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
-
