Friday, January 22, 2021

pushing and popping in Windows Server Core

This is yet another "daggone it, how DID I forget that????"

I would like to share this URL:

https://superuser.com/questions/282963/browse-an-unc-path-using-windows-cmd-without-mapping-it-to-a-network-drive


Whose answer was:

If you use pushd and popd instead of cd you won't get that UNC error.

pushd <UNC path> will create a temporary virtual drive and get into it.
popd will delete the temporary drive and get you back to the path you were when you entered pushd.

Tuesday, January 19, 2021

New checklist for standing up servers in the VirtualBox UCS domain

New checklist for standing up servers in the VirtualBox UCS domain

It's dev! Don't disable your firewalls in production! Don't run with scissors, either, kids.


 1.

Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 192.168.x.x

Rename-Computer "Servername" -restart

2.

Add-Computer –domainname "mydomain"  -restart

3.

sconfig, enable remote desktop

shut down

set 1st network adapter to bridged instead of NAT

enable bidrectional clipboard

enable 2nd network adapter

4.

log in via RDP and then

In Command Prompt as Adminsitrator

sc config vds start=auto

net start vds

In powershell as administrator

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

enable-psremoting

Install-WindowsFeature -Name Failover-Clustering -IncludeManagementTools -Restart


Monday, January 18, 2021

MLK Day: Groovelectric

This seems like an appropriate time to post this:


MLK I have a dream - Groovelectric style


It's originally from

http://www.groovelectric.com


Friday, January 15, 2021

Install the PowerShell A/D module

 From this page:

How to install the PowerShell Active Directory module


Enable Active Directory module for Windows PowerShell in Remote Server Administration Tools > Role Administration Tools > AD DS and AD LDS Tools.


Thursday, January 14, 2021

How do I know if a Windows feature is installed?

 Honestly, every time previously I've tried filtering for Windows Features, I've used some form of variables and/or the PowerShell where-object, and today, I learned the get-windowsfeature cmdlet takes wildcards.


 get-windowsfeature "*fs*"






Wednesday, January 13, 2021

Set the friendly name of a physical disk

I need to set the FriendlyName of a PhysicalDisk in PowerShell, but the uniqueID isn't shown.

Use this:

Get-PhysicalDisk | Select-Object SerialNumber,UniqueID