Nothing really new just some quick PowerShell one liners
Force your output to upper-case
#or
Technically I needed this for a mac address so I could copy and paste into MDT (which strangely requires upper-case for a MAC address)
Force your output to upper-case
$allservices = Get-Service
$allservices.Name.ToUpper()
$allservices.Name.ToUpper()
#or
(Get-Service).Name.ToUpper()
Technically I needed this for a mac address so I could copy and paste into MDT (which strangely requires upper-case for a MAC address)
(Get-DhcpServerv4Lease -ComputerName DHCPServer01 -ScopeId 192.168.1.0).clientid.ToUpper()
No comments:
Post a Comment