This script walks the Domain Namespace (DFSN) and lists all the Folder Targets.
Continue reading…
Powershell
Powershell – Get-RandomPassword
Get a random password function in powershell, it gets a random password of specified length containing numbers, uppercase letters, # lowercase letters and special characters. Minimum length required is 4 characters # since password must contain all four types of characters.
Continue reading…
Powershell – IIS Set Connection String in web.config [Solution]
IIS Set Connection String in web.config using the Web-Administration powershell module So in the web.config file for “MyApplication” application under “Default Web Site”, I have a connection string called “MyChartsConnection”, that I want to change the connection string as I am modifying it for Production use , changing server name and username password, plus some […]
Continue reading…
Disaster Recovery – Get A List Of All Automatic Services Not Started
The following script contacts all the windows servers in the domain and returns a list of stopped services that are set to Automatic to a CSV file.
Continue reading…
Powershell – List Users Logged Into A Range Of Computers
So this script get a list of users logged into computers. It uses my personal favourite RDS PowerShell module but works on PCs. Note: some firewall rule(s) inbound may be required.
Continue reading…
Powershell – Check That SCCM User Environment Is Setup
SCCM is a bit fiddly it has its “own” powershell console that is a tad inconvenient. Also a lot of assumptions are made that the user is all good to go with SCCM cmdlets and that is usually far from the truth. The following script is does few prerequisite checks to ensure it is all […]
Continue reading…
Powershell – SCCM Message Status Error 10025 – Find Windows Updates Content That Client Cannot Download
SCCM Message Status Error 10025 – this script finds the Windows Update that the SCCM Client is having trouble downloading
Continue reading…
Powershell – List Users in Local Administrators Group
The following script lists all users in the local administrators group for all windows servers in the domain
Continue reading…
Powershell – SCCM 2102 R2 BADMIF File From what Computer
SCCM 2012 R2 – If you look at a badmif file you can tell which computer it came from. This powershell script reads all the badmif files and tells you what computer are generating them on what date
Continue reading…
Powershell – Manage User Profiles
To Delete user profiles with PowerShell you can use Remove-CIMInstance. But with great power comes great responsibility..
Continue reading…