Get the Last Boot Time Using PowerShell
Simple PS command to get a system’s LastBootUpTime using PowerShell. Use the following for getting LastBootUpTime for a remote system.
Simple PS command to get a system’s LastBootUpTime using PowerShell. Use the following for getting LastBootUpTime for a remote system.
When trying to connect to your ConfigMgr Site using PowerShell, sometimes the connection attempt may fail. I’ve found this to be the case more in automation scripts running in a Task Sequence than ones that run locally on the Site Server, but still, something had to be done. To ensure a successful connection, I came … Read more
The following script can be used to perform a simple PING test to a list of computers using PowerShell. Simply create the script (I call mine PingTest.ps1″) and in the same folder create a Computers.txt with a list of devices you want to ping. All of your core SCCM Site Systems is a good example. … Read more
For large Enterprise environments it is common to have 3 separate Domains and SCCM environments. One for DEV, one for UAT testing and then Production. Sometimes it can be helpful when writing scripts to check which environment we are functioning within and then use values for server names or Site Codes based on the environment. … Read more