Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

powershell

  1. W

    PENDING Pre cache applications Power settings

    Hi, I would be grateful for any insight as to what is possible when it comes to pre caching application content and waking machines client side from legacy sleep state S3. As WOL as wake packet or fast channel is unreliable despite ports being open which is a known fact. We are currently using...
  2. W

    PENDING MAC Address Passthrough

    Hi Is there any recommended planning or considerations when looking to enable MAC Address Passthrough on mass to laptop clients? Currently running almost entirely Lenovo devices with Lenovo docks that support MAC address pass through on even our older models so we are likely to be overall...
  3. S

    SOLVED WMIC software uninstall file in use prompt bypass

    Hi, I’m trying to uninstall Adobe products on a select group of user’s PCs using this script. I'm running the script on a collection in SCCM. “wmic product where “name like ‘Adobe Acrobat Reader%’” call uninstall /nointeractive” The script works, I’ve tried it (manually) on a few test PCs...
  4. AaronZ

    PENDING 2 MSIs and a Powershell not working

    I am tasked with deploying updated software for Epic. Here is the situation. MSI to install the main application 2nd MSI to install an update to the first one Powershell script to copy files from the source directory to the local computer. I have tried 2 different ways: Deployment with 3...
  5. D

    NEW Move applications to retired folder

    Hello We are trying to move applications with no deployments, not part of TS and also not added to any deployment type as dependency. I came up with below code, but what can i add to check if the application is added as dependency for naother app. $applications = Get-CMApplication |...
  6. D

    SOLVED Remove old applications to retired folder

    Hello Experts, We are working on automation script and I want to move old application with no deployments to retired folder. For example if i have google chrome 1.x and google chrome 2.x I want to check the deployment and move google chrome 1.x to retired folder. Is that possible. Thanks in...
  7. D

    SOLVED clean up old software update groups

    Hello Experts we are looking for a script to delete the deployments for old software update groups via powershell, it include other taks as well and run as schedule task. we want to delete deployments older thank 90 days and move the software update group to retired folder. pls let me know...
  8. S

    PENDING Task sequence script failing to change drive letter

    Running a server build task sequence in SCCM and encountering the following error when a configuration script runs to assign a different drive letter to one of the drives. The command being ran from the script: The error being logged: Sometimes the error does not even log, and the last line...
  9. I

    NEW push ps1 using cm

    Hi All i am new to sccm, i need to run a PowerShell script on few servers. lets say i have a folder1-inside folder1 i have folder2(this folder has files) and a PowerShell script. folder1-->folder2 & script.ps1 i have a collection of servers. i want to run script.ps1 on this collection. So i...
  10. R

    SOLVED Query SCCM applications to detect associated AD security groups

    Hi all, I am new to the forum, my name is Russ and I work as an SCCM/Group Policy administrator in the finance sector. I am after some assistance if possible, but not sure this is the correct area of the forum to raise this so apologies if in the wrong section. Long story short, we are...
  11. G

    NEW PowerShell Deployment Help

    So I am trying to deploy CrowdStrike to our environment using SCCM. I'm fairly new to both PowerShell and SCCM and haven't come across much help for what I am needing. The installer is an .exe and the vendor does not recommend repackaging it as a .msi. This is all they have for me to go on and...
  12. W

    NEW Copying files

    Hello all, i am running in to an issue and i am hoping that you guys can help me. I have a script that when i run it from a C:\temp works fine. It copies the .ico file to ProgramData folder and then script creates desktop shortcut with that icon. However when i deploy it via sccm .ico file does...
  13. E

    SOLVED clear ccm cache ps script

    Hello everyone : when executing this script on a local machine it clears the ccm cache : ## Initialize the CCM resource manager com object [__comobject]$CCMComObject = New-Object -ComObject 'UIResource.UIResourceMgr'## Get the CacheElementIDs to delete $CacheInfo =...
  14. 1

    NEW Powershell WMI Script and SCCM

    I have the following powershell script: ######################### $namespaces = @(gwmi -ns 'root\Microsoft\SqlServer' __NAMESPACE | ? {$_.name -match 'ComputerManagement' } | select name).Name foreach($space in $namespaces) { $wmi = $null $instance = Get-WmiObject -Namespace...
  15. L

    NEW Feature upgrade Windows 10 1809 to 1909 but retain all of the installed languages

    Hi, I need to do a feature upgrade from 1809 to 1909 but would like to keep language setting for a user. When I upgraded the german machine from 1809 to 1909 it only had usa english install, it was missing german language pack Then I try again using a custom action script with PostOOBE but...
  16. Gokul

    SOLVED DELETING COMPUTER RECORDS IN FROM SCCM CONSOLE USING POWERSHELL

    Good Day All Working in Big infra , its very hectic to delete the computer records one by one from console . It will ruin your day itself . So here i am showing bulk deleting of sccm clients using PS . Scripts will check the client availability in console , if its present it will remove the...
  17. O

    PENDING Powershell determine OS version

    Hi Guys, Please assist, i need to do the following via Powershell on SCCM Step 1. Determine if OS is 32bit or 64bit If 64 bit below steps need to happen -create folder on users c drive called SAPWorkDir - create the below registry entry · “HKEY_LOCAL_MACHINE\Software\Wow6432Node\SAP\SAP...
  18. A

    SOLVED can't copy file with powershell

    Hi, I Have 1706 sccm version and i want use a simple file copy. My powershell command : $path = "\\xxx\x$\xxx\xxx\xxx\license.xml" $destination = "C:\ProgramData\xxx" Copy-Item -path $path -Destination $destination On my computer it work perfectly but when i insert this command in script...
  19. A

    PENDING Sccm Query to check specific files on remote computers

    Hi all, I am looking for a sccm query to look for specific files on remote machines(Its All systems so big number of machines). The files are mixture of .exe, .txt, .dll (total of 10 files) and also have a registry key. Is there a way either to create a script or check via SCCM and output the...
  20. J

    SOLVED Problems running a Powershell script on a task sequence

    Hi, I've been having problems with an install for a looong time. I need to install the latest Salesforce plugin for outlook on my companies computer but many different versions are installed which I need to uninstall prior to installing the newer version. To do so, I have found a Powershell...
Back
Top