Page 8 of 97 FirstFirst ... 6789101858 ... LastLast
  1.    26 Jan 2017 #70
    Join Date : Oct 2014
    Arnold, MD
    Posts : 29,695
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)

    I'll just stick with Good Morning y'all! And if there's more than one of ya, Good Morning all y'all!


      My ComputersSystem Spec
  2.    26 Jan 2017 #71
    Join Date : Jan 2017
    Turku
    Posts : 1,816
    Windows 10 Pro IP Build 16299.98 (Branch: RS3 Release)

    Kari, did you mean something like this???

    Click image for larger version. 

Name:	PS_Greeting.png 
Views:	24 
Size:	45.5 KB 
ID:	118578
      My ComputersSystem Spec
  3.    26 Jan 2017 #72
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 13,115
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by slicendice View Post
    Kari, did you mean something like this???
    Nice!

    Here's my default PS script. Somewhat shorter but does the same:

    Code:
    $Hour = Get-Date -Format "HH:mm"
    $Now = Get-Date -Format "HH:mm (h:mm tt)"
    If ($Hour -lt "06:00")
        {Write-Host "It's quite late" $env:username". The time is "$Now}
    ElseIf ($Hour -lt "12:00")
        {Write-Host "Good morning" $env:username". The time is "$Now}
    ElseIf ($Hour -lt "18:00")
        {Write-Host "Good afternoon" $env:username". The time is "$Now}
    ElseIf ($Hour -ge "18:00")
        {Write-Host "Good evening" $env:username". The time is "$Now}
    Write-Host
    Set-Location $env:USERPROFILE
      My ComputerSystem Spec
  4.    26 Jan 2017 #73
    Join Date : Jan 2017
    Turku
    Posts : 1,816
    Windows 10 Pro IP Build 16299.98 (Branch: RS3 Release)

    Yeah, I don't like to do string comparisons, I'd rather work with objects until I need to spit something out to the console. Easy to make mistakes in code when having to use literal strings, no IDE can help check the type and correctness of the value then.

    I just realized I use "magic numbers", those are bad too, will move those to variables too. :-)
      My ComputersSystem Spec
  5.    26 Jan 2017 #74
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 13,115
    Windows 10 Pro
    Thread Starter

    I must be totally honest: I know these last posts have been way off topic. However, as no new builds have been released and it's quiet, I like this, tossing ideas around and keep conversation going on

    Have to go now, MRI scan at neurological clinic at Hospital of University of Leipzig awaiting...
      My ComputerSystem Spec
  6.    26 Jan 2017 #75
    Join Date : Feb 2015
    3rd Rock
    Posts : 823
    WinX Pro x64 IP current

    I don't mind, I am learning.

    And though I was born and raised in the US, my parents are from India, so I have a bit of training in speaking and reading Hindi. So, for those of you that are complaining about (er, making the case for the complicated nature of) their native tongue(s), I feel your pain.

    As for the greeting in PS, Kari, way back in the day there was a nice menu system made for DOS that involved a lot of escape sequences to keep things like the current date and time and other text you wanted at the top line of the screen, in addition to modifying the command prompt to show whatever you wanted. I am going to see if I can find that to give me a nice little starting point to take on your challenge for this PS getting....
      My ComputersSystem Spec
  7.    26 Jan 2017 #76
    Join Date : Jan 2017
    Turku
    Posts : 1,816
    Windows 10 Pro IP Build 16299.98 (Branch: RS3 Release)

    Here's a PowerShell challenge for you guys!

    Recreate this Sudoku game, I wrote in C# for console years back, using only PowerShell:

    Name:  sudoku001.png
Views: 169
Size:  5.0 KBName:  sudoku002.png
Views: 170
Size:  13.3 KB

    EDIT: As this is way off topic, Moderators feel free to move this post to a new topic in an appropriate location. :-)
      My ComputersSystem Spec
  8.    26 Jan 2017 #77
    Join Date : Jan 2017
    Turku
    Posts : 1,816
    Windows 10 Pro IP Build 16299.98 (Branch: RS3 Release)

    I will challenge myself to rewrite this UUP thingie using PS. Making easy to import modules that the user just run from anywhere in the shell for conversion.
      My ComputersSystem Spec
  9.    26 Jan 2017 #78
    Join Date : Dec 2015
    Posts : 6,409
    Windows10

    hi
    Quote Originally Posted by slicendice View Post
    Gyllenstierna is a Swedish name, not Finnish. Swedish and Finnish can't even be remotely compared. Try comparing Finnish to Hungarian or Turkish, you get much more similarities as they are sibling languages just like Swedish, Norwegian Danish, Dutch and Afrikaans are.
    I can assure you he was Finnish and his name was spelt pretty much like I said as I visited him at Neste Oy in Finland (been taken over now).
      My ComputerSystem Spec
  10.    26 Jan 2017 #79
    Join Date : Jan 2017
    Turku
    Posts : 1,816
    Windows 10 Pro IP Build 16299.98 (Branch: RS3 Release)

    I am Finnish too, but my surname is not Finnish ;-)
      My ComputersSystem Spec

 
Page 8 of 97 FirstFirst ... 6789101858 ... LastLast


Similar Threads
Tutorial Category
Installation & Upgrade ESD to ISO - Create Bootable ISO from Windows 10 ESD File
As Microsoft has changed the upgrade method from ESD based upgrade to a UUP based, the method told in this tutorial does not work anymore with 15xxx and later builds. Please see UUP to ISO tutorial for a working method: UUP to ISO - Create...
Tutorials
Solved How to create a Windows 10 bootable install disk?
I've asked about this a long time ago. Several personal issue interfered with me getting computer work done. Now I'm starting a telecommuting job in a week, need to clean things up a bit. Just in case I have issues, I'd like to burn off a bootable...
Installation and Upgrade
Can I create Bootable USB for Win 10 from another computer?
Had tried to update the BIOS on my son's Alienware Aurora R4 so that we could install an upgraded graphics card (980 Ti). Used the Dell Support site - and was upgrading from Bios 7 to Bios 9 - would eventually go up to current version 11 before...
General Support
Solved How do I create a bootable USB drive with an ISO?
Tried looking this up online, but couldn't find any specific information. I'm running on Windows 10 Home, and I have a Windows 10 ISO I want to put in a flash drive so it's bootable. How do I do this?
Installation and Upgrade
Solved An Alternative to Create Bootable ISO from Windows 10 install.esd File
Here's an alternative in addition to Kari's Tutorial: ESD to ISO - Create Bootable ISO from Windows 10 ESD File - Windows 10 Forums https://www.youtube.com/watch?v=lJ8SCzhbycA NOTE: It is better to create an ISO contaning install.wim so if you...
Installation and Upgrade
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 15:08.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums