Hey
Guys, What's up?
Today
we are going to automate and deploy the below tasks.
Stop
Services
Perform
Operations (rename folder)
Start
Services
How?
Hey
Guys, What's up?
Today
we are going to automate and deploy the below tasks.
Stop
Services
Perform
Operations (rename folder)
Start
Services
How?
Hello Guys,
As an SCCM administrator, we are receiving the requirement to
deploy applications, patches, application updates post OSD.
Sometimes we have to modify the OS-related settings like if a particular file is present on the machine, then run remediation script OR if a particular
setting is present on the machine, then change it with new settings.
In this scenario, we are going to change the Wireless Adaptor
settings related to Power Management.
Yes, I am talking about Wake on LAN settings WoL. Microsoft
has released Information about power management settings on a network
adapter. Click HERE
to read the Microsoft kb article. This article is important to learn more about
the PnPCapabilities values and how to use its combinations. In this article, MS
provided information on how to use the registry key if we are using this for
broad deployment purposes.
Ok, here we are focusing on the Wireless adaptor and will create a PowerShell script using the above-mentioned settings in the script.
We are using the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\DeviceNumber registry settings to update the wireless settings.
Today, again we are going to create one SQL query.....
Today we are going to pull the Operating System version with the build number. from SCCM SQL database.
For a single machine, you can run the command "Winver" from the run and you will get the below information
Hello Friends, Good evening and how are you?
Today someone asked me to create one SQL query to get the machine details like hostname, IP Address, RAM, total HDD size, Free Space, Manufacturer, Model, Last Heartbeat, Users name, email ID, Last logged on user name.
Also, We will fetch the domain details and CCM client active status.
Hello Guys, Hope you are doing well. Today we are going to automate the package distribution.
This script will help you to distribute multiple packages on multiple distribution points.
let's download the PowerShell code mentioned below and run it from any SMS Provider server.
Hello Friends,
Suppose, if I have 200 machines hostname and each hostname having 2-3 machines in the SCCM console and you want to delete each machine from the console. you will be irritated doing this job manually. the reason behind it, its time-consuming activity and repetitive task.
why you are not doing smart work? how?
Let's say we have a scenario like above and you have one PowerShell script in which you added all the machines hostname into it and just run the script and it deleted all the desired machines from the console while you finish a cup of tea 😉
Yes, We can create the PowerShell script like this using ConfigurationManager.psd1 SCCM PS module.
Import the PowerShell module first and then connect to the Primary Site Server. To get the hostname of the machine from a file, we have to create one input file named "hostnameinput.txt" in the same directory where we have created and kept the PowerShell script. Once you create the input text file paste all the machines hostname into the file and runs the below script with SCCM admin privileges.
Hello Friends,
If I have 200 machines MAC Addresses and each MAC address having 2-3 machines in the SCCM console and you want to delete each machine from the console. you will be irritated doing this job manually. the reason behind it, its time-consuming activity and repetitive task.
why you are not doing smart work? how?
Let's say we have a scenario like above and you have one PowerShell script in which you added all the MAC addresses into it and just run the script and it deleted all the desired machines from the console while you finish a cup of tea 😉
Yes, We can create the PowerShell script like this using ConfigurationManager.psd1 SCCM PS module.
Import the PowerShell module first and then connect to the Primary Site Server. To get the MAC Addresses from a file, we have to create one input file named "macaddressinpput.txt" in the script root directory where we have created and kept the PowerShell script. Once you create the input text file paste all the MAC Addresses into the file and runs the below script with SCCM admin privileges.
PowerShell is a more powerful tool to manage the System
Center Configuration Manager.
To connect the SCCM using PowerShell, you can use the below
PowerShell script.
When you execute any cmdlets or script by using the PowerShell console, your cmdlets or script will be runs in the primary site server.
Add the below line into the PS Script when you are importing the SCCM module first time on the machine.