scripting
need to script something ? do it here
124 topics in this forum
-
I need to install Symantec Endpoint Protection, what would the command line be like in powershell where I can call a .ps1 script in a completely hidden and silent way? I did a previous TS that copies the setup64.exe from SEP to "C:\TEMP\" I don't have much knowledge on powerhsell as would the script that would install it silently? the argument for installing it via Batch File is / s. However, the CMD window appears during Windows logon, and Powershell can do all of this without any windows appearing, and I wanted powershell to wait for the installation to finish (I researched this and think the parameter is -WaitProcess but I don't know where how to put it) and…
-
-
- 6 replies
- 12.3k views
- 1 follower
-
-
This may very well overlap a few topics but I have a need for a PS script that I can assign to a Configuration Item and a Configuration Baseline. I have the PS scripts but need advice how to run the script as it fails due to the fact by default CM Clients run at the level of All Signed. I thought I could just add at line 1 Set-ExecutionPolicy ByPass within the remediation script as follows Set-ExecutionPolicy ByPass $MinDays = 14 $UIResourceMgr = New-Object -ComObject UIResource.UIResourceMgr $Cache = $UIResourceMgr.GetCacheInfo() $Cache.GetCacheElements()| where-object {[datetime]$_.LastReferenceTime -lt (get-date).adddays(-$mindays)}| foreach {$Cache…
-
- 0 replies
- 8.1k views
- 1 follower
-
-
I am trying to create a simple PowerShell script to protect a specific Task Sequence with a password. Any help is going to be appreciated. SCCM 2207. Thank you!
-
- 0 replies
- 1.9k views
- 1 follower
-
-
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
-
-
-
Hello, I had a question on PowerShell Version: 5.1.19041.1023 If you look at the attached screenshot you'll see what I'm curious about. I run this command in PowerShell ISE: Get-CimInstance -ClassName win32_computersystem -Property * | Get-Member -MemberType Method You see what it displays in the display window. But when I run WEBMTEST and I choose OPEN CLASS and then Win32_ComputerSystem you'll notice the METHODS don't match what you see in the ISE command. My question is why? Thank you.
-
- 0 replies
- 2.2k views
-
-
Hi Guys, Am not too good with batch script and PowerShell and am trying to amend an existing batch script to do a certain install but I keep getting "system error 55 has occurred" on the network drive path of the line, and also " error code 1605" for the install command part of the script I am trying to find a way to re write the scrip using PowerShell. the main action is to perform an install of an application which upgrades or updates the current application to new version on the local server. I want to re use the same script for other devices too. I hope the above makes some sense.
-
- 5 replies
- 5.8k views
-
-
Hi, How can I install a language packs on windows 10 1909 using PowerShell offline? These machines do not have access to Microsoft stores to download the language pack online. What files are needed from the FOD? how do I find which files belong to language pack and which files are for something else? I need around 16 different languages I already download the FOD but everything is in one folder. I try to install the Client_de cab but that doesnt install all other features like, keyboard, speech We have more then 4000 machine to do this on, I will be using sccm to do this but need to make sure all of the languages and script are avaiable locally …
-
- 18 replies
- 28.6k views
-
-
$a = "C:\Program Files (x86)\Google\Chrome\Application\80.0.3987.149\Installer\setup.exe --uninstall --system-level --verbose-logging" $a -replace '([^\\]*)$' Suppose my condition is like this How do I extract the desired folder name $b = $a -replace '([^\\]*)$' $b = google or $b =chrome or $b = Application
-
- 1 reply
- 3.6k views
-
-
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.1k views
-
-
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
-
- 0 replies
- 2.8k views
- 1 follower
-
-
Hi all, To do some reporting around app deployment for our classrooms, I'm WMI-querying class SMS_AppDeploymentAssetDetails. Unfortunately, it returns multiple records per device. Does anyone know how get back only the most recent record of a device? Thank you in advance! Regars, Sven
-
- 2 replies
- 3.6k views
- 1 follower
-
-
Hi all, I need some help and it might be something easy. I have no scripting skills and tried various methods on the internet but it's not working. All I want is for the TS to ask me what computer name I want for the deployment, some sort of popup.
-
- 3 replies
- 5.6k 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 WN I created a function to connect to the CMSite and load the cmdlet for ConfigurationManager. Could the function be improved in any way or is it as good it can be? is the logic best practice or? You can download it at : https://gallery.technet.microsoft.com/Connect-ConfigMgr64-db5e9d0a function Connect-ConfigMgr64 { $initParams = @{ } if ((Get-Module ConfigurationManager) -eq $null) { try { Import-Module "$($ENV:SMS_ADMIN_UI_PATH)\..\ConfigurationManager.psd1" @initParams -Scope Global } catch { $ModulePath = (Get-ItemProperty HKLM:\SOFTWARE\Wow6432Node\Microsoft\ConfigMgr10\Setup -Name "UI Installation Directory").'UI Installatio…
-
- 0 replies
- 5.5k views
- 1 follower
-
