I found the reason I could not see any user_sid or user_displayname data when running Get-DesktopVM.
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…
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 good to go for the novice SCCM Powershell user. The script is self documenting as to what checks I am doing. These check have been learnt the hard way. 🙂
For the novice:
All SCCM Cmdlets have to run from the $SCCMSiteCodePath Location
Assumption is that the Security group ($SecurityGroupthatHasSSCMRights in the code) does have the correct rights to run the powershell functions against SCCM
So these are the reasons I see for the Status Message error 1025
SCCM Message Status Error 10025 – this script finds the Windows Update that the SCCM Client is having trouble downloading
The following script lists all users in the local administrators group for all windows servers in the domain Continue reading…
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…
To Delete user profiles with PowerShell you can use Remove-CIMInstance. But with great power comes great responsibility.. Continue reading…
In-place upgrade from Windows Server 2008 R2 Standard to Enterprise or Datacenter
To upgrade to Windows Server 2008 R2 Enterprise or Datacenter from a downlevel edition, you would do the following