Skip to main content

Talking computer- Powershell.

Fun stuff with Powershell scripting :)
What happen when your computer start motiviating you to do better job ?

:) i am not gone crazy. You just need one command to put your powershell script in startup which talks .
Powershell -noninteractive -nologo "script path"

You can certainly download my script and change to whatever you like to hear from computer. Please find attached powershell script.

Note :- If you want to hear content in male voice just change line 5 to
"$PowerShellSpeak.SelectVoice('Microsoft David Desktop') but if you want hear your computer in female voice use "$PowerShellSpeak.SelectVoice('Microsoft Zira Desktop')"

Script:
add-type -assemblyname system.speech

$PowerShellSpeak = New-Object System.Speech.Synthesis.SpeechSynthesizer
#Intro-Chrous
$PowerShellSpeak.SelectVoice('Microsoft Zira Desktop')

$PowerShellSpeak.speak("Good Morning")
$PowerShellSpeak.speak(" The key to successful leadership today is influence. ")
$PowerShellSpeak.speak(".")

$PowerShellSpeak.speak("Your talent is God's gift to you. What you do with it is your gift back to God so   ...........   do something today which motivates you. ")
$PowerShellSpeak.speak("Remeber .....")
$PowerShellSpeak.speak("The secret of getting ahead is getting started  ")

$PowerShellSpeak.speak(" So .......... , ,   lets get started      .............    have a great day, Enjoy your day")

Comments

Popular posts from this blog

"kerberos: the specified credentials were rejected by the server", "unreachable": true" Ansible

Hello Friends, I was getting following Error while deploying my Ansible script, Basically my credential were getting rejected by server. SSH password: PLAY [Playbook_Name] ***************************************************************02:00:30 TASK [Gathering Facts] *********************************************************02:00:30 fatal: [Server_Inventory_Name]: UNREACHABLE! => {"changed": false, "msg": "kerberos: the specified credentials were rejected by the server", "unreachable": true} PLAY RECAP *********************************************************************02:00:30 Server_Inventory_Name    : ok=0    changed=0    unreachable=1   failed=0  It was resolved using one additional parameter in Inventory  i.e  "ansible_winrm_server_cert_vaildation:ignore"

NBSUTIL commands

Frustrated with syntax finding hence decided to post all NBSTLUTIL related commands so people will not face same problem. Common SLP Related Commands Show EMM Image list of Images that were backed up to an SLP STU [ -I / -U ] nbstlutil list nbstlutil list –lifecycle <name> nbstlutil list –backupid <id_value> nbstlutil list -image_state <value> nbstlutil list -copy_state <value> nbstlutil list -frag_state <value> nbstlutil list –mediaid <media_id>_–state 3 Activate /Inactivate SLP operations nbstlutil inactive –lifecycle <lifecycle name> nbstlutil inactive –backupid <backupid> nbstlutil active –lifecycle <lifecycle name> nbstlutil active –backupid <backupid> Cancel pending operations on selected image nbstlutil cancel -backupid <backupid> nbstlutil cancel -lifecycle <lifecycle> Show status on Incomplete copies of Lifecycle Managed images nbstlutil stlilist –lifecycle <lifecycle name> nbstlutil stlil...

Deduplication

Data Deduplication and growing Disk/Storage demand. IDC REPORT – Storage Purchase and expected. Source:   IDC Worldwide File-Based Storage 2011-2015 Forecast:   Foundation Solutions for Content Delivery, Archiving and Big Data, doc #231910, December 2011   Using DDPEval.exe we can use to evaluate savings with Deduplication without even installing or enabling deduplication. Yes I am talking about Windows 2012 deduplication. How it works? 1. Segment data into small variable sized chunks 2. Identify and remove duplicate chunks 3. Replace duplicate copies of each chunk with a reference to a single copy 4. Compress Chunks. DFS and Deduplication: Data Deduplication works fine with Distributed File System (DFS) Replication. Optimizing or unoptimizing a file will not trigger a replication because the file does not change. DFS Replication uses Remote Differential Compression (RDC), not the chunks in the chunk store, for over-the-wire savings....