scripting
need to script something ? do it here
124 topics in this forum
-
Here is script...... Copy-Item "\\fileserver\SCCM\Resources\Laserfiche\Laserfiche.url" -Destination "C:\Users\Public\Desktop" Shortcut never appears.
-
- 4 replies
- 4.5k views
- 2 followers
-
-
Hi..Need Help... got a requirement where a HTA Wizard needs to be prompted while OSD via SCCM. Selection 1 : Select Dept ( ex : HR/Accounts/Marketing) Selection 2: IF HR selected, an another dropdown to be displayed with Agency names assosiated ( ex : AM/PM/TA/AM) *In the same way every Dept has multiple Agencies. Depending on the above selection, the computer name needs to be set for ex : <HR><AM><SerialNumber> Let me know if there are any such sample scripts as such or any pointers or someone would have already worked on such scripts before
-
- 2 replies
- 3.2k views
- 1 follower
-
-
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?
-
- 7 replies
- 4.6k views
- 1 follower
-
-
Hi all, Having an issue re creating our build process in the new SCCM environment i've been building lately. During the deployment of an OS we have two visual basic scripts that run after the OS has been booted into for the first time that add the PC to the correct AD groups and starts the 802.1x service (i know there is probably other ways of doing this but i'd rather replicate than redesign). This works flawlwessly on our current live SCCM but in the new one, which is working with Windows 10 rather than 7, i cannot get it to run during the TS, i just receieve an incorrect function error, whereas if i run the script manually on the Windows 10 machine it works as exp…
-
- 3 replies
- 7.7k views
- 1 follower
-
-
I need help I'm new on SCCM. I need to rename a Hyper V virtual machine. i'm using this settings on customsetting.ini TS fails. task sequence error 0x80220005 when i use laptop or desktop works perfect but fails when deploying Hyper V VM [Settings] Priority=ByLaptop, ByDesktop, ByVM, Default Properties=MyCustomProperty [ByLaptop] subsection=Laptop-%IsLaptop% [Laptop-True] OSDComputerName=LT-%SerialNumber% MachineObjectOU=OU=Laptops,OU=USA,OU=Sites,DC=mydomain,DC=com [ByDesktop] subsection=Desktop-%IsDesktop% [Desktop-True] OSDComputerName=DT-%SerialNumber% MachineObjectOU=OU=Desktops,OU=USA,OU=Sites,DC=mydomain,DC=com [By…
-
- 1 reply
- 3k views
-
-
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…
-
- 1 reply
- 3.6k views
- 2 followers
-
-
Hello, I'm working on a Powershell script to install Autodesk products. I'm having issues with a step and hopefully someone can help. I've tried this many different ways and keep running into errors. Using double quotes (Start-Process "msiexec.exe" -ArgumentList ""/i $dirFiles\ABDS2017\Img\x64\RVT\RVT.msi INSTALLDIR="C:\Program Files\Autodesk\" ADSK_SETUP_EXE=1 /qb!"" -NoNewWindow -Wait -PassThru).ExitCode Error Cannot validate argument on parameter 'ArgumentList' Argument is null or empty. Using a variable to define InstallDir $RevitInstallDir = "C:\Program Files\Autodesk\" (Start-Process "msiexec.exe" -ArgumentList "/i $d…
-
- 1 reply
- 17k views
-
-
Please do you have a handy PowerShell script to - delete object from SCCM and Active directory simultaneously.
-
- 0 replies
- 2.6k views
- 1 follower
-
-
Please do you have a handy PowerShell script to - delete object from SCCM and Active directory simultaneously.
-
- 0 replies
- 2.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
-
-
On the page it reports various powershell scripts under the download section at the bottom of the guide, I'am unable to locate them could you please inform where they're are Thanks
-
- 3 replies
- 3.8k views
- 2 followers
-
-
Dear All we need patch or script to uninstall autodesk products
-
-
- 4 replies
- 4.3k views
- 2 followers
-
-
I'm trying to run a script against my computers with SCCM. It's a very simple powershell script (it has to be, I'm not much of a scripter), and it works perfectly from the command line. However, when I try to deploy it from SCCM it fails every time. I've tried writing directly to the share, I've tried mapping a drive, I've tried deploying it with admin rights and using the logged in user's rights. I'm hoping someone here can tell me what I'm doing wrong. The script is below. I know it works, but I don't know why I can't deploy it. # Write the value of the AutoAdminLogon key to $val $val = Get-ItemProperty -Path "hklm:\SOFTWARE\Microsoft\Windows…
-
- 7 replies
- 7.3k views
- 1 follower
-
-
Hello all Running SCCM 1606 Hoping I can get a push in the right direction. I'm looking to uninstall a program on a few hundred PC's. The package was deployed via SCCM , but the uninstall does not work so I dug up an PS script from online. The following PS Script works just fine if it's ran locally on the clients. $appVer = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "Some Application" } | Select-Object -Property DisplayName, UninstallStrin…
-
- 5 replies
- 5.4k views
- 2 followers
-
-
I have a software that is putting files in users %temp%-folder. As we have AppLocker preventing installations from ANY standard temp-folders, I need to change this How can I script change of users %temp% folder, to another location, temporary?
-
- 0 replies
- 2.5k views
- 1 follower
-
