r/PowerShell • u/fourierswager • Jul 26 '18
Windows Admin Center (formerly Project Honolulu) Functions on GitHub
Windows Admin Center is a nice Web-based GUI that you can use to manage your servers in your Windows environment. The majority of information displayed on every page comes from PowerShell functions. You can view those PowerShell functions by clicking the the PowerShell icon in the top-right corner of any given page that you're on.
I grabbed all of those PowerShell Functions and placed them in a public GitHub repo so that folks can use them in other contexts (which is explicitly allowed by Microsoft).
https://github.com/pldmgg/WinAdminCenterPS
There are a lot of really useful functions as well as some...questionable ones. But overall, it's a really good collection.
Hope this can help some folks out!
Maybe Microsoft can publish all of these in their own GitHub repo so that they can be kept up to date :)
4
u/n0gear Jul 27 '18
Do you need to install something on a target machine or can they just be run from one source machine?
4
3
u/heishnod Jul 27 '18
Requires WMF 5 or higher on your target server and Windows 10 on a workstation. I just tried connecting to some older servers.
3
u/iisdmitch Jul 27 '18
So I have a couple of questions. I seem to have issues with connecting to machines. It doesn't find any PCs using FQDN or IP but I can find servers no problem however I can't connect to servers because it says I need WMF 5.0 or above which is supposedly built in to Win10, I am on 1709.
3
u/fourierswager Jul 28 '18
Not 100% on this but I'm pretty sure Windows Admin Center only manages Windows Server OSes, and those Windows Server OSes (as well as your localhost) have to have WMF 5.0 installed on them.
Does that match with what you're experiencing?
2
u/CoolyJr Jul 29 '18
Not to be harsh but you're incorrect, you can manage windows 10 as well just make sure you run "winrm qc" in an administrator CMD or powershell, answer y to both prompts and there you go.
1
2
u/iisdmitch Jul 28 '18
That makes sense. 2 of the servers I could access were running 2016, the other 2 were running 2012.
3
u/CoolyJr Jul 29 '18
I have a 2012 r2 and many windows 10 computers that I am managing through WAC. Just run "winrm qc" in an administrator CMD or powershell and answer yes to both prompts and you should be able to add them after that.
2
u/undercover921 Jul 26 '18
Can you manage BitLocker keys for Windows10 PCs. Meaning turn on BitLocker remotely or even see the keys of Windows10 PC. If the devices are on the network.
3
u/fourierswager Jul 27 '18
No, but you can use these cmdlets for that:
https://docs.microsoft.com/en-us/powershell/module/bitlocker/?view=win10-ps
And if you need to do it remotely, you can use:
Invoke-Command -ComputerName $RemoteHost -Credential $RemoteHostCreds -ScriptBlock {<BitlockerCmdlet>}0
1
u/music2myear Jul 26 '18
Have they worked out the security issues with Honolulu?
6
u/fourierswager Jul 26 '18 edited Jul 26 '18
I wasn't aware there were any security issues...Although I can take a guess they have something to do with how they execute certain operations on remote machines.
I noticed that in several functions, it seems like they temporarily create a .ps1 script on the remote machine's filesystem (with a plaintext password in it), then create a scheduled task that references it, then run the task, then immediately remove the .ps1 script and delete the scheduled task. Don't quote me on that though...I only really glanced at them (there's over 200).
Is that the kind of security issue you're aware of?
2
u/music2myear Jul 26 '18
I'm trying to find it, but one of the first posts I saw on Project Honolulu mentioned it opened some questionable ports. However, I'm not seeing that in a few quick searches now.
-1
u/fergie434 Jul 27 '18
I'm trying to find it, but one of the first posts I saw on Project Honolulu mentioned it opened some questionable ports. However, I'm not seeing that in a few quick searches now.
2
u/Arkios Jul 26 '18
Can you elaborate on the security issues?
1
u/music2myear Jul 26 '18
I'm trying to find it, but one of the first posts I saw on Project Honolulu mentioned it opened some questionable ports. However, I'm not seeing that in a few quick searches now.
2
u/UnlawfulCitizen Jul 26 '18
You mean the ones involving using winforms for emergency alerting?
1
u/music2myear Jul 26 '18
I'm trying to find it, but one of the first posts I saw on Project Honolulu mentioned it opened some questionable ports. However, I'm not seeing that in a few quick searches now.
2
1
u/FourtyTwoBlades Jul 27 '18
Great UI, now they need to make the horrid Azure Portal UI look like this!
1
u/joerod Jul 27 '18
This is awesome! I think I’ve created many of these myself at some point or another.
1
5
u/xsdc Jul 27 '18
I think we can all agree that this is the standout function in this list. I don't know how I got by without it. I find it very difficult to type the additional 4 characters it would take to do this natively. :P