That said, from what you are saying; is my ‘failure’ was omitting the /M which specifies the ‘searchmask’. And because of that omission, it didn’t have the comparative variable, and deleted everything.
There were two things that tripped you up.
The lack of /M to just find *.tmp files
Using del *.tmp as the command
First forfiles is a for-loop that executes whatever command you want for each file it finds.
As @JasGot mentioned you will get one hit for each file it will find.
With /D -15 you are specifying that you only want to find files older than 15 days.
With /S you are telling forfiles to look in all subdirectories as well. You may or may not want that.
With /M you can specify a filter which matching filenames you want to search for. Without /Mit will find all the files regardless if it's named 123.tmp or installation.txt
Your initial command would find all files in all subdirectories regardless if it what name it had. That's why you needed /M.
Secondly, forfiles will execute whatever command you want for each and every file it finds.
Since your command was del *.tmp it would delete all tmp files every time it found a file.
What you really wanted was to just delete the file it found.
The @file will have the name of the file so del @file would only delete the file that was found.
By default, installing MicroSIP using Chocolatey causes the install to go to an inappropriate data folder location and is only available for the admin installing user, rather than for the end users of the Windows system. Does anyone have any experience or ideas in changing the installation location so that system users can actually use MicroSIP when installed and maintained using choco?
I'm not even sure this will work but try the following commands and skip step 4.
After uninstalling the KMS license, maybe running cscript slmgr.vbs /ato all you need to activate your Windows 10 upgrade license.
This doesn't play in. AD doesn't have any licensing. It is included in Windows Server and has no licenses or requirements of its own. If you can use server, you can use it, if you can't, you can't.
Microsoft Active Directory does have licensing.
What do you mean? There's no case where it gets licensed. You license Windows Server and AD is part of it, there's no license for AD itself. Any situation where you'd use AD you already have to have Windows Server license, and nothing extra is ever needed.
Well yeah, in order to use Microsoft Active Directory you still need a Windows Server which yes has to have a CAL (Per user or per device) for using same for SQL, RDS, Sharepoint and Exchange (onprem). So you were right :)
Yeah, you can't use AD without a license, but there's no license for AD :)
I have postponed the laptop/desktop updates in WSUS for a week or so until this stuff is fixed. I don't want to mess with colleagues that complain they are not able to search and find something anymore :)