Showing tag results for Scripting Guy!

Mar 27, 2013
Post comments count0
Post likes count0

PowerTip: Get the Last Boot Time with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to get the last boot time for your computer.  How can I find the last boot time for my computer by using Windows PowerShell?  In Windows PowerShell 3.0, use the Get-CimInstance cmdlet, and select the LastBootUptime property from the Win32_Operatingsystem WMI class: PS C:\> Get-CimInstanc...

Scripting Guy!Windows PowerShellPowerTip
Mar 27, 2013
Post comments count0
Post likes count0

Troubleshoot the InvokeMethodOnNull Error with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about troubleshooting the InvokeMethodOnNull error in a Windows PowerShell script.  Hey, Scripting Guy! Ed...thank you for all you do for those of us who are spread so thin we can't go deep on subjects like scripting. I have a question regarding a script you created in Use PowerShell to Create...

Scripting Guy!Windows PowerShellscripting techniques
Mar 26, 2013
Post comments count0
Post likes count0

PowerTip: Store PowerShell Credentials

Doctor Scripto
Doctor Scripto

  Summary: Store your Windows PowerShell credentials in a variable for later use.  How can I store alternate credentials for repeated use in my Windows PowerShell session? Use the Get-Credential cmdlet to prompt for a credential, and store the results in a variable: $credential = Get-Credential  

Scripting Guy!Windows PowerShellPowerTip
Mar 26, 2013
Post comments count0
Post likes count0

Decrypt PowerShell Secure String Password

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to easily decrypt the Windows PowerShell secure string password.  Hey, Scripting Guy! We have an FTP site that I have to use on a regular basis. I need an easy way to get a credential and use that credential with the FTP site so that I can download a file that changes on a daily basis. I f...

Scripting Guy!Windows PowerShellsecurity
Mar 25, 2013
Post comments count0
Post likes count0

PowerTip: Display Hidden Files by Using PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to display hidden files by using Windows PowerShell.  How can I use Windows PowerShell to display hidden files?  Use the Force parameter for Get-Childitem (or the aliases dir, ls or gci): dir -Force -File

Scripting Guy!Windows PowerShellPowerTip